
10 Feb
2006
10 Feb
'06
1:50 p.m.
"Pavel Vozenilek" <pavel_vozenilek@hotmail.com> writes:
Rather than yet another underdocumented shared pointer with subtly different name it should be:
boost::shared_ptr<void, shmem::deleter> p = segment.allocate(1024);
One of the coolest things about shared_ptr is that the deleter is not part of the type. There is no deleter template parameter.. That would be: boost::shared_ptr<void> p = segment.allocate(1024, shmem::deleter()); -- Dave Abrahams Boost Consulting www.boost-consulting.com