Boost logo

Boost :

From: Peter Dimov (pdimov_at_[hidden])
Date: 2002-09-23 10:51:32


From: "Howard Hinnant" <hinnant_at_[hidden]>
> On Monday, September 23, 2002, at 09:45 AM, Alexander Terekhov wrote:
>
> > void foo(int n)
> > {
> > const move_array<char> p(new char[n])
> > ostrstream os(p.get(), n);
> > ...
> > }
> >
> > Or am I just missing something?
>
> Perhaps we are all missing template typedef's:
>
> template <typename T> typedef const move_ptr<T> scoped_ptr<T>;

No, scoped_ptr has reset(), const auto_ptr does not. :-)


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