summaryrefslogtreecommitdiff
path: root/boost/multi_index/detail/seq_index_node.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'boost/multi_index/detail/seq_index_node.hpp')
-rw-r--r--boost/multi_index/detail/seq_index_node.hpp15
1 files changed, 10 insertions, 5 deletions
diff --git a/boost/multi_index/detail/seq_index_node.hpp b/boost/multi_index/detail/seq_index_node.hpp
index 5cb467650f..85b345af93 100644
--- a/boost/multi_index/detail/seq_index_node.hpp
+++ b/boost/multi_index/detail/seq_index_node.hpp
@@ -1,4 +1,4 @@
-/* Copyright 2003-2013 Joaquin M Lopez Munoz.
+/* Copyright 2003-2015 Joaquin M Lopez Munoz.
* Distributed under the Boost Software License, Version 1.0.
* (See accompanying file LICENSE_1_0.txt or copy at
* http://www.boost.org/LICENSE_1_0.txt)
@@ -16,6 +16,7 @@
#include <boost/config.hpp> /* keep it first to prevent nasty warns in MSVC */
#include <algorithm>
#include <boost/detail/allocator_utilities.hpp>
+#include <boost/multi_index/detail/raw_ptr.hpp>
namespace boost{
@@ -176,14 +177,18 @@ public:
static sequenced_index_node* from_impl(impl_pointer x)
{
- return static_cast<sequenced_index_node*>(
- static_cast<trampoline*>(&*x));
+ return
+ static_cast<sequenced_index_node*>(
+ static_cast<trampoline*>(
+ raw_ptr<impl_type*>(x)));
}
static const sequenced_index_node* from_impl(const_impl_pointer x)
{
- return static_cast<const sequenced_index_node*>(
- static_cast<const trampoline*>(&*x));
+ return
+ static_cast<const sequenced_index_node*>(
+ static_cast<const trampoline*>(
+ raw_ptr<const impl_type*>(x)));
}
/* interoperability with bidir_node_iterator */