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

D. Stimits stimits at comcast.net
Mon Jul 11 19:52:13 MDT 2005


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.
>  
>
I'm quoting from the compiler warning. The compiler suggests that it 
would not issue such a warning if there were friend classes.

In another reply though, you'll see the issue has become unimportant.

D.  Stimits, stimits AT comcast DOT net



More information about the LUG mailing list