123456789101112131415161718192021222324252627282930313233343536373839404142 |
- #ifndef BOOST_VARIANT_DETAIL_CAST_STORAGE_HPP
- #define BOOST_VARIANT_DETAIL_CAST_STORAGE_HPP
- #include <boost/config.hpp>
- namespace boost {
- namespace detail { namespace variant {
- template <typename T>
- inline T& cast_storage(void* storage)
- {
- return *static_cast<T*>(storage);
- }
- template <typename T>
- inline const T& cast_storage(const void* storage)
- {
- return *static_cast<const T*>(storage);
- }
- }}
- }
- #endif
|