|
Boost : |
From: Greg Colvin (gcolvin_at_[hidden])
Date: 2001-05-29 10:05:05
From: md656 <md656_at_[hidden]>
> > > 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 this fails too?
class Y { X* x; };
class X { Y* y; };
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk