$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
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:
http://home.roadrunner.com/~hinnant/unique_ptr03.html
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 (http://www.boost.org/doc/libs/1_35_0/doc/html/interprocess/interprocess_smart_ptr.html#interprocess.interprocess_smart_ptr.unique_ptr 
), 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.
-Howard