Boost logo

Boost :

From: Gennadiy Rozental (gennadiy.rozental_at_[hidden])
Date: 2005-01-13 09:13:04


> namespace Detail
> {
> template <class T, class Parent>
> class Sealed
> {
> friend T;
> friend Parent;
> };
> }
>
> template <class T>
> class Sealed : public virtual Detail::Sealed<T, Sealed>
> {
> friend T;
> };

This wouldn'e compile. You couldn't declare template parameter as a friend.

Gennadiy


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