summaryrefslogtreecommitdiff
path: root/boost/container/node_handle.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'boost/container/node_handle.hpp')
-rw-r--r--boost/container/node_handle.hpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/boost/container/node_handle.hpp b/boost/container/node_handle.hpp
index 300b4713ad..c46313cc4f 100644
--- a/boost/container/node_handle.hpp
+++ b/boost/container/node_handle.hpp
@@ -131,6 +131,9 @@ class node_handle
nallocator_type &node_alloc()
{ return *static_cast<nallocator_type*>(m_nalloc_storage.address()); }
+ const nallocator_type &node_alloc() const
+ { return *static_cast<const nallocator_type*>(m_nalloc_storage.address()); }
+
node_pointer release()
{
node_pointer p(m_ptr);
@@ -323,7 +326,7 @@ class node_handle
if(was_nh_non_null){
if(was_this_non_null){
- if(ator_traits::propagate_on_container_swap){
+ if(ator_traits::propagate_on_container_swap::value){
::boost::adl_move_swap(this->node_alloc(), nh.node_alloc());
}
}