Boost logo

Boost Users :

Subject: [Boost-users] how to delete references to objects from a container...
From: rv_nath (rv_nath_at_[hidden])
Date: 2009-12-09 08:21:41

Hi forum members,

I want to use boost's shared_ptr class for the connection pool class that i
am writing. However, i have a requirement to delete the connection object
(which is going to be the shared-ptr) explicitly based on certain checks
like validity and expiry etc. If I store the shared_ptr, I want to know how
to delete this explicitly from the stl container.

According to my understanding shared_ptrs cannot be 'delete'd. So, how to
achieve this...?

Thanx in advance and regards,

View this message in context:
Sent from the Boost - Users mailing list archive at

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