Boost logo

Boost :

From: Greg Colvin (gcolvin_at_[hidden])
Date: 2001-05-25 18:28:55

From: John Max Skaller <skaller_at_[hidden]>
> Greg Colvin wrote:
> >
> > Larry just did me the favor of putting updated copies of my simple
> > cyclic_ptr at:
> >
> >
> The following must be a bug, since the definitions
> following it are either private or public, depending on
> the condition.
> private:
> template<typename> friend struct recyclable_base;
> template<typename> friend struct cyclic_ptr;
> template<typename> friend struct weak_ptr;
> #endif

You are right -- I've only tested this on C++ compilers.

The fix is add a public: at the end of this snippet, or move
the snippet to then end of it's class.


Boost list run by bdawes at, gregod at, cpdaniel at, john at