Boost logo

Boost Users :

From: Pablo Aguilar (pablo.aguilar_at_[hidden])
Date: 2005-01-03 17:29:43


I'm currently playing around with Apache's Xerces XML library, and found
myself needing to ->release some pointers. shared_ptr + mem_fn works great:

shared_ptr<DOMBuilder> db(
   , mem_fn(&DOMBuilder::release)

But for the objects I'm using, I don't need a shared_ptr, but just a
scoped_ptr. So I'm wondering about the rationale behind not giving
scoped_ptr a custom deleter? Is it that shared_ptr's overhead is negligible
(when not being shared I mean)?


Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at