]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/boost/move/detail/force_ptr.hpp
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / boost / boost / move / detail / force_ptr.hpp
1 //////////////////////////////////////////////////////////////////////////////
2 //
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)
6 //
7 // See http://www.boost.org/libs/container for documentation.
8 //
9 //////////////////////////////////////////////////////////////////////////////
10 #ifndef BOOST_MOVE_DETAIL_FORCE_CAST_HPP
11 #define BOOST_MOVE_DETAIL_FORCE_CAST_HPP
12
13 #ifndef BOOST_CONFIG_HPP
14 # include <boost/config.hpp>
15 #endif
16
17 #if defined(BOOST_HAS_PRAGMA_ONCE)
18 # pragma once
19 #endif
20
21 #include <boost/move/detail/workaround.hpp>
22
23 namespace boost {
24 namespace move_detail {
25
26
27 template <typename T>
28 BOOST_MOVE_FORCEINLINE T force_ptr(const volatile void *p)
29 {
30 return static_cast<T>(const_cast<void*>(p));
31 }
32
33 } //namespace move_detail {
34 } //namespace boost {
35
36 #endif //#ifndef BOOST_MOVE_DETAIL_FORCE_CAST_HPP