diff options
Diffstat (limited to 'boost/multi_index/detail/index_node_base.hpp')
-rw-r--r-- | boost/multi_index/detail/index_node_base.hpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/boost/multi_index/detail/index_node_base.hpp b/boost/multi_index/detail/index_node_base.hpp index 150eb75e79..e6fabe62bb 100644 --- a/boost/multi_index/detail/index_node_base.hpp +++ b/boost/multi_index/detail/index_node_base.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) @@ -51,14 +51,12 @@ struct index_node_base:private pod_value_holder<Value> value_type& value() { - return *static_cast<value_type*>( - static_cast<void*>(&this->space)); + return *reinterpret_cast<value_type*>(&this->space); } const value_type& value()const { - return *static_cast<const value_type*>( - static_cast<const void*>(&this->space)); + return *reinterpret_cast<const value_type*>(&this->space); } static index_node_base* from_value(const value_type* p) |