Boost logo

Boost :

Subject: [boost] C++03 unique_ptr emulation
From: Howard Hinnant (hinnant_at_[hidden])
Date: 2009-01-02 16:25:43

I've put up a new version of an C++03 emulated unique_ptr here:

This is a "boost-ized" emulation (uses boost tools and is in boost
namespace), though I have reason to believe it may not work well on VC+
+05 unless the /Za option is used (I've tested only on gcc 4.0).

I'm aware of Ion's interprocess version (
), and thank Ion for his support over the years. This new version is
not meant to replace Ion's version. It is simply my current best shot
at emulating the unique_ptr behavior as specified in the C++0X CD1
draft. Booster's are welcome to take parts of this implementation and
use them in places like interprocess/unique_ptr. Or to just use this
unique_ptr directly. It consists of only one header: unique_ptr.hpp,
and requires only boost headers, not boost cpp files.

Basic documentation is included at the link.


Boost list run by bdawes at, gregod at, cpdaniel at, john at