where's Boost's shared_ptr destructor?

P

Phlip

Newsgroupies:

[Apologies for the marginal topicality; I need to cultivate a relationship
with the Boost mailing lists that rises above distracting trivia like
this.]

The purpose of a smart pointer is to delete its pointee when it destructs,
right?

When I grab Boost 1.33.0 and open shared_ptr.hpp and search for ~, I can't
find nothing. No destructor.

What is the purpose of the shared pointer template? To wrap pointers and
then leak them?
 
T

tmiceli

Take a look at the destructors for the data member types. They are
implicitly called when the shared_ptr object is destroyed.
 
P

Phlip

Take a look at the destructors for the data member types. They are
implicitly called when the shared_ptr object is destroyed.

Oooh, I was about to complain about the complementary evidence; my debugger
cannot seem to trace into them. But that is indeed a platform-specific
issue for the mailing list. It will now have to wait in line, behind my
other issues!

Boost is wonderful, everyone!! Boost rocks!!!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top