This is the mail archive of the libstdc++@sourceware.cygnus.com mailing list for the libstdc++ project.


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

Re: Type access control -- now too strict


According to Alexandre Oliva:
> Core Issue #45 suggests that the nested type should be a friend of the
> enclosing class, but not the converse.

On the one hand, I agree that the nested class is friend-*like*, in
that all of the enclosing types names are injected into its namespace.
(I think there are some differences ... but let's skip that for now.)

On the other hand, I am confounded at my inability to find any
evidence for my belief that enclosing classes are supposed to be
auto-friends of nested classes.  I guess I was wrong about that.

On the gripping hand, there is still a bug in G++!  If you make the
nested class a struct, the current G++ snapshot still fails.
-- 
Chip Salzenberg              - a.k.a. -              <chip@valinux.com>
"I wanted to play hopscotch with the impenetrable mystery of existence,
    but he stepped in a wormhole and had to go in early."  // MST3K

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