On Sunday, Aug 31, 2003, at 13:51 America/Denver, Peter Dimov wrote:
Gregory Colvin wrote:
[...]
Two small corrections:
shared_ptr currently uses std::allocator to allocate counts regardless.
No, it uses plain new/delete by default. It is possible to get it to use
std::allocator via a #define.
OK. Anyway, the std::allocator interface is adequate for shared_ptr.
[...]
versus standard Allocator
Allocator::pointer p = allocator.allocate(sizeof T); allocator.construct(p,T()); ... allocator.destroy(p); allocator.deallocate(sizeof T);
allocate(1) and deallocate(p, 1) if I'm not mistaken.
You are not. I shouldn't post uncompiled code late at night.
_______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost