|
Boost : |
Subject: Re: [boost] [variant] Basic rvalue and C++11 features support
From: Joel de Guzman (djowel_at_[hidden])
Date: 2013-01-06 18:48:22
On 1/7/13 2:04 AM, Mathieu Champlon wrote:
> On 06/01/2013 01:40, Joel de Guzman wrote:
>> template <typename T>
>> recursive_wrapper<T>::~recursive_wrapper()
>> {
>> if (p_)
>> boost::checked_delete(p_); ,
>> }
>
> Hi,
>
> 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.
Regards,
-- Joel de Guzman http://www.boostpro.com http://boost-spirit.com
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk