2013/8/31 Vicente J. Botet Escriba
Le 31/08/13 07:48, Antony Polukhin a écrit :
It still can be usable for types with trivial destructor. (However it is
hard to imagine any smart ptr with trivial destructor, so making a cycle of trivial types with smart pointers seems impossible.). Can we see the implementation of block pointer?
Hi, block_ptr in on the review schedule since a long time. See https://svn.boost.org/svn/boost/sandbox/block_ptr/
Looks promising and inteesting. But not 100% ready. For example this singleton is not thread safe in C++98/C++03: static mutex & static_mutex() /**< Main global mutex used for thread safety */ { static mutex mutex_; return mutex_; } Also use BOOST_NOEXCEPT_OR_NOTHROW instead of throw(), BOOST_NOEXCEPT instead of /* newer throws*/. Mark noexcept destructors, copy, move constructors, assignment operators with BOOST_NOEXCEPT where appropriate, Please add notes about the issue mentioned by Dave (correct destruction order for objects participating in a cycle) If nobody minds, I can become the release manager for this library. However I'll have enough time for this only at the beginning of this winter. -- Best regards, Antony Polukhin