diff --git a/boost/any.hpp b/boost/any.hpp
index 152eaf2..415efc0 100644
|
a
|
b
|
|
| 19 | 19 | |
| 20 | 20 | #include "boost/config.hpp" |
| 21 | 21 | #include <boost/type_traits/remove_reference.hpp> |
| | 22 | #include <boost/type_traits/remove_cv.hpp> |
| 22 | 23 | #include <boost/type_traits/decay.hpp> |
| 23 | 24 | #include <boost/type_traits/add_reference.hpp> |
| 24 | 25 | #include <boost/type_traits/is_reference.hpp> |
| … |
… |
namespace boost
|
| 57 | 58 | |
| 58 | 59 | template<typename ValueType> |
| 59 | 60 | any(const ValueType & value) |
| 60 | | : content(new holder<BOOST_DEDUCED_TYPENAME decay<const ValueType>::type>(value)) |
| | 61 | : content(new holder<BOOST_DEDUCED_TYPENAME remove_cv<BOOST_DEDUCED_TYPENAME decay<const ValueType>::type>::type>(value)) |
| 61 | 62 | { |
| 62 | 63 | } |
| 63 | 64 | |
| … |
… |
namespace boost
|
| 253 | 254 | #else |
| 254 | 255 | operand->type() == typeid(ValueType) |
| 255 | 256 | #endif |
| 256 | | ? &static_cast<any::holder<ValueType> *>(operand->content)->held |
| | 257 | ? &static_cast<any::holder<BOOST_DEDUCED_TYPENAME remove_cv<ValueType>::type> *>(operand->content)->held |
| 257 | 258 | : 0; |
| 258 | 259 | } |
| 259 | 260 | |