[lug] g++ on FC2, turning off false warning

Zan Lynx zlynx at acm.org
Mon Jul 11 10:47:45 MDT 2005


On Mon, 2005-07-11 at 10:37 -0600, Lee Woodworth wrote:
> D. Stimits wrote:
> > I'm not finding an answer to this, I'm not quite sure how to even look
> > it up. I'm using g++ 3.3.3 on Fedora Core 2, and I have a C++ class
> > where all members are private, even the destructor and
> > constructors...this is intentional, it is NOT an error. g++ demands to
> Do you mean private or protected? I'm not sure that even friend classes
> can access private members.

A class with everything marked private is generally useless, but I
*have* seen them used to force compiler errors for invalid function or
template arguments.
-- 
Zan Lynx <zlynx at acm.org>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://lists.lug.boulder.co.us/pipermail/lug/attachments/20050711/b1d9045b/attachment.pgp>


More information about the LUG mailing list