123456789101112131415161718192021222324252627282930313233343536 |
- #ifndef BOOST_MOVE_DETAIL_FORCE_CAST_HPP
- #define BOOST_MOVE_DETAIL_FORCE_CAST_HPP
- #ifndef BOOST_CONFIG_HPP
- # include <boost/config.hpp>
- #endif
- #if defined(BOOST_HAS_PRAGMA_ONCE)
- # pragma once
- #endif
- #include <boost/move/detail/workaround.hpp>
- namespace boost {
- namespace move_detail {
- template <typename T>
- BOOST_MOVE_FORCEINLINE T force_ptr(const volatile void *p)
- {
- return static_cast<T>(const_cast<void*>(p));
- }
- }
- }
- #endif
|