Boost logo

Boost :

Subject: [boost] [interest] rich-typed smart pointers
From: Julian Gonggrijp (j.gonggrijp_at_[hidden])
Date: 2013-10-02 14:34:08

Dear Boost members,

I have designed a smart pointer that relies on the type system to
offer safe and flexible automatic memory management at no runtime
cost. It combines single ownership as in std::unique_ptr and reliable
access from multiple places as in std::shared_ptr with some additional
features. I believe it to be about as safe and practically useful as a
smart pointer in C++11 could get.

Further explanation and a proof-of-concept implementation is available
over here:

There is no license yet, but you have my explicit permission to try
the library and the example programs at your own risk. :-)

Could this library be useful addition to Boost? I look forward to your

Thanks in advance,


PS: a possible minor seed for discussion is the current lack of an
implicit cast to bool. I agree with Jeff Flinn's argument why the
implicit cast may be desirable [1]. However, it interferes with the
comparison operators when one of the operands should be implicitly
cast to weak_ptr, as explained in [2]. I could repeat myself and write
comparison functions for all possible overloads, but this seems


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