This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
remove C++ warning about all private c/dtors and no friends?
- From: Jason Merrill <jason at redhat dot com>
- To: Mark Mitchell <mark at codesourcery dot com>
- Cc: gcc at gcc dot gnu dot org, Jason Merrill <jason at redhat dot com>
- Date: Mon, 06 Jan 2003 14:09:03 -0500
- Subject: 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