Generic smart pointers

Dominik Seifert <[email protected]>
Newsgroups gmane.comp.graphics.crystalspace.devel
Message-ID <[email protected]>
Hi,

Smart pointers work well and nicely for CS-objects. But what about library objects?

Since we can neither us C++11 nor Boost, it would be great to have a generic containing smart pointer class for objects of classes and structs that we do not define ourselves.
Of course, we can create a new class for every object that we want to use a smart pointer for and implement the inc/decref methods ourselves, but would that kind of development overhead and copy&pasting really be worth it?

Or maybe is there already something that has the functionality of std::shared_ptr?

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/

_______________________________________________
Crystal-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/crystal-develop
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.