123456789101112131415161718192021222324252627282930313233343536373839 |
- #ifndef BOOST_FORCE_CAST_MJM012402_HPP
- #define BOOST_FORCE_CAST_MJM012402_HPP
- #include <boost/thread/detail/config.hpp>
- namespace boost {
- namespace detail {
- namespace thread {
- template<class Return_Type, class Argument_Type>
- inline Return_Type &force_cast(Argument_Type &rSrc)
- {
- return(*reinterpret_cast<Return_Type *>(&rSrc));
- }
- template<class Return_Type, class Argument_Type>
- inline const Return_Type &force_cast(const Argument_Type &rSrc)
- {
- return(*reinterpret_cast<const Return_Type *>(&rSrc));
- }
- }
- }
- }
- #endif
|