Sign in to follow this  

A Smart Pointer That Works With STL?

This topic is 4689 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

It is reference-counted. Which means that the object is automatically deleted when the last reference goes away. Its functionality is a superset of auto_ptr's.

Share this post


Link to post
Share on other sites
O so i got it downloaded but it appears to be a complete pain in the ass to get running with all the make files and stuff, according the the 'getting started' part of the website.

Anyone got any advice.

ace

Share this post


Link to post
Share on other sites
Quote:
Original post by ace_lovegrove
Anyone got any advice.


Only a few elements of the Boost library need to be compiled. If all you need are the shared pointers, just copy the 'boost' directory under your compiler's 'include' directory.

If you want further advice, you'll have to give me some information about your system (namely, what compiler you're using).

I still strongly suggest that you do read the "getting started" page carefully. You're a programmer, so RTFM. [grin]

Share this post


Link to post
Share on other sites
Just to throw in something else, I'm a bigger fan of Loki's SmartPtr than boost's smart pointer set. I don't think there's anything particularly better about Loki's default SmartPtr vs. boost::shared_ptr, but I prefer the added flexibility I get with SmartPtr.

Share this post


Link to post
Share on other sites

This topic is 4689 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this