
6 Jan
2013
6 Jan
'13
11:48 p.m.
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