1 //////////////////////////////////////////////////////////////////////////////
3 // (C) Copyright Ion Gaztanaga 2014-2015. Distributed under the Boost
4 // Software License, Version 1.0. (See accompanying file
5 // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
7 // See http://www.boost.org/libs/container for documentation.
9 //////////////////////////////////////////////////////////////////////////////
10 #ifndef BOOST_MOVE_DETAIL_FORCE_CAST_HPP
11 #define BOOST_MOVE_DETAIL_FORCE_CAST_HPP
13 #ifndef BOOST_CONFIG_HPP
14 # include <boost/config.hpp>
17 #if defined(BOOST_HAS_PRAGMA_ONCE)
21 #include <boost/move/detail/workaround.hpp>
24 namespace move_detail {
28 BOOST_MOVE_FORCEINLINE T force_ptr(const volatile void *p)
30 return static_cast<T>(const_cast<void*>(p));
33 } //namespace move_detail {
36 #endif //#ifndef BOOST_MOVE_DETAIL_FORCE_CAST_HPP