This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: annoying warning: class Foo only defines private ctor/dtor


Yotam Medini <yotam@avanticorp.com> writes:

> I suggest to add a condition for issuing warnings:
>   warning: `class Foo' only defines a private destructor and has no friends
>   warning: `class Foo' only defines private constructors and has no friends
> that the class also does not have public static methods.

Fixed in the latest snapshot.

-- 
Alexandre Oliva
mailto:oliva@dcc.unicamp.br mailto:aoliva@acm.org
http://www.dcc.unicamp.br/~oliva
Universidade Estadual de Campinas, SP, Brasil



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]