Boost logo

Boost :

From: Bjorn.Karlsson_at_[hidden]
Date: 2002-06-18 04:47:01


> From: Dirk Gerrits [mailto:dirkg_at_[hidden]]
> Bjorn.Karlsson_at_[hidden] wrote:
> > From: Victor A. Wagner, Jr. [mailto:vawjr_at_[hidden]]
> > >I'm puzzled. Why does this create a dependency on auto_ptr<> ?
> >
> > In <scoped_ptr.hpp>:
> >
> > #include <memory>
> > ...
> > scoped_ptr(std::auto_ptr<T> ptr)
>
> Ok but why is this bad? shared_ptr.hpp includes <memory> as well.
>

It's bad because it introduces a dependency, without adding significant
value (IMHO).

Bjorn



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