Boost logo

Boost :

From: Dejan Jelovic (djelovic_at_[hidden])
Date: 2001-01-10 08:08:07


Is there any interest in adding my safe pointer classes to Boost?

These classes include a "regular" smart pointer and a weak smart pointer
which automatically gets set to NULL after all strong references are
destroyed. Together they make a closed system that pretty much eliminates
the need for native pointers and makes memory errors impossible.

I've posted slides explaining this at:
http://www.jelovic.com/articles/cpp_without_memory_errors_slides.htm

The thread safety aspect is explained here:
http://www.jelovic.com/articles/smart_pointer_thread_safety.htm

The code is unfortunately Windows specific (because of thread safety; it
requires atomic increment and decrement operations). Intel C++ can be used
to compile it.

I've created a version of the files that follows the Boost coding style and
includes the copyright info. It can be downloaded from:
www.jelovic.com/binaries/boost_safeptr.zip

Those interested in how these pointers can be used should look at demo.cpp
in the archive

Dejan


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk