|
Boost : |
From: Howard Hinnant (hinnant_at_[hidden])
Date: 2002-09-23 09:37:39
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>;
:-)
-Howard
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk