Subject: Re: [boost] [variant] Basic rvalue and C++11 features support
From: Alec Ross (alec_at_[hidden])
Date: 2013-01-07 03:30:47
In message <50EA0D46.8080100_at_[hidden]>, Joel de Guzman
>On 1/7/13 2:04 AM, Mathieu Champlon wrote:
>> On 06/01/2013 01:40, Joel de Guzman wrote:
>>> template <typename T>
>>> if (p_)
>>> boost::checked_delete(p_); ,
>> Maybe I missed something but why would you test for p_ in the destructor ?
>> Isn't boost::checked_delete< T >( 0 ) valid ?
>You are right. The check is not needed.
But is there an expected performance benefit?
-- Alec Ross
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk