Boost logo

Boost :

From: Gabriel Dos Reis (gdr_at_[hidden])
Date: 2002-09-22 03:05:35

"Peter Dimov" <pdimov_at_[hidden]> writes:

| > A fairly painless step in that direction would be to use
| > std::allocator instead of std::operator new to allocate
| > handles.
| I think that it might prove somewhat painful, as shared_ptr allocates
| objects of different types (counted_base_impl<P, D>) and a std::allocator<T>
| can only allocate T.

I can't follow. typename std::allocator<T>::template rebind<U>::other
can allocate U.

-- Gaby

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