Type access control -- now too strict

Chip Salzenberg chip@valinux.com
Sat Apr 1 00:00:00 GMT 2000


According to Alexandre Oliva:
> On Feb 23, 2000, Chip Salzenberg <chip@valinux.com> wrote:
> > Apparently it's now impossible to define static data of private type
> > if that private type has a constructor.
> >     class B { B(int) {} };
> [snip]
> > A::B A::b(1);
> 
> Particularly when the type's constructor is private :-)

Ah, but that should work anyway, because A is an implicit friend of B.
-- 
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


More information about the Libstdc++ mailing list