Boost logo

Boost :

From: John Max Skaller (skaller_at_[hidden])
Date: 2001-05-29 12:35:12


md656 wrote:
>
> > > The following example will fail for any smart pointer
> > > class with an inline dispatch on the internal pointer:
> > >
> > > class Y { smart_ptr<X> x; };
> > > class X { smart_ptr<Y> y; };
> > >
> > > Is there a way to turn off this non-conforming behaviour?
> >
> > What's non-conforming about it? The above code should certainly fail.
>
> Why should this code fail?

Because I forgot to tell the compiler that the X in <X> was
a typename.

-- 
John (Max) Skaller, mailto:skaller_at_[hidden]
10/1 Toxteth Rd Glebe NSW 2037 Australia voice: 61-2-9660-0850
checkout Vyper http://Vyper.sourceforge.net
download Interscript http://Interscript.sourceforge.net

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