This is the mail archive of the gcc@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]
Other format: [Raw text]

remove C++ warning about all private c/dtors and no friends?


This warning gives a false positive for a class like

class A 
{
  A();
  ~A();

public:
  A* make_A ();
}

and furthermore, seems kind of useless.  Surely that's the sort of
situation that will be caught quickly during normal development.  Would
anyone object to tearing out this warning?

Jason


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