Boost logo

Boost :

From: Greg Colvin (gcolvin_at_[hidden])
Date: 2000-10-02 17:19:52

From: Howard Hinnant <hinnant_at_[hidden]>
> Greg Colvin wrote on 10/2/2000 4:26 PM
> >I just tried that, but discovered in testing that it would incorrectly
> >convert from Derived[] to Base[].
> Not that there's anything wrong with auto_array_ptr, but you can still do
> it with parametrization on the deleter function. Just consider the
> deleter function to be an allocator, and then mess around with the rebind
> member template such that the one for delete[] doesn't work right.

Interesting. An auto_ptr with parameterized delete would be
more generally useful.

> #include <iostream>
> #include <memory>
> using std::auto_ptr;
> using std::_Array;

And what, pray tell, is std::_Array?

And since when does std::auto_ptr take a second template parameter?

Boost list run by bdawes at, gregod at, cpdaniel at, john at