Boost logo

Boost :

Subject: Re: [boost] [block_ptr] & Java
From: Antony Polukhin (antoshkka_at_[hidden])
Date: 2013-08-31 04:14:33


2013/8/31 Vicente J. Botet Escriba <vicente.botet_at_[hidden]>

> 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

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