Boost logo

Boost :

From: Gennadiy E. Rozental (rogeeff_at_[hidden])
Date: 2001-11-05 17:16:35


--- In boost_at_y..., Jens Maurer <Jens.Maurer_at_g...> wrote:
> "Gennadiy E. Rozental" wrote:
> > Jens Maurer <Jens.Maurer_at_g...> wrote:
> > > Instead of "friend Owner" it should say "friend class Owner"
> > > (twice).
>
> > No. See http://groups.yahoo.com/group/boost/message/19531
>
> "friend Owner" is definitely wrong. Note that 7.1.5.3p1 says that
> the class-key is compulsory. Note further that "friend class Owner"
> is indeed ill-formed according to 7.1.5.3p2.
> There appears to be no way to declare the friendship the code
> wants to declare.
>
> See also core issue 68.
>
> Jens Maurer

That what I thought, but I seems to work on many compilers. ;-)(.

Gennadiy.

P.S. Does anybody know conformable alternative?


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk