Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r85299 - trunk/boost/heap/detail
From: tim_at_[hidden]
Date: 2013-08-11 07:08:13


Author: timblechmann
Date: 2013-08-11 07:08:13 EDT (Sun, 11 Aug 2013)
New Revision: 85299
URL: http://svn.boost.org/trac/boost/changeset/85299

Log:
heap: destroy nodes via allocator

Text files modified:
   trunk/boost/heap/detail/heap_node.hpp | 2 +-
   1 files changed, 1 insertions(+), 1 deletions(-)

Modified: trunk/boost/heap/detail/heap_node.hpp
==============================================================================
--- trunk/boost/heap/detail/heap_node.hpp Sat Aug 10 19:04:49 2013 (r85298)
+++ trunk/boost/heap/detail/heap_node.hpp 2013-08-11 07:08:13 EDT (Sun, 11 Aug 2013) (r85299)
@@ -142,7 +142,7 @@
     {
         node_pointer n = static_cast<node_pointer>(base);
         n->clear_subtree(alloc_);
- n->~Node();
+ alloc_.destroy(n);
         alloc_.deallocate(n, 1);
     }
 


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk