diff options
Diffstat (limited to 'boost/multi_index/detail/archive_constructed.hpp')
-rw-r--r-- | boost/multi_index/detail/archive_constructed.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/boost/multi_index/detail/archive_constructed.hpp b/boost/multi_index/detail/archive_constructed.hpp index 0cf7991e86..c3891bb32a 100644 --- a/boost/multi_index/detail/archive_constructed.hpp +++ b/boost/multi_index/detail/archive_constructed.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) @@ -64,7 +64,7 @@ struct archive_constructed:private noncopyable (&get())->~T(); } - T& get(){return *static_cast<T*>(static_cast<void*>(&space));} + T& get(){return *reinterpret_cast<T*>(&space);} private: typename aligned_storage<sizeof(T),alignment_of<T>::value>::type space; |