diff --git a/include/boost/type_traits/integral_constant.hpp b/include/boost/type_traits/integral_constant.hpp index 2592bcb95d..47699bed0f 100644 --- a/include/boost/type_traits/integral_constant.hpp +++ b/include/boost/type_traits/integral_constant.hpp @@ -61,7 +61,7 @@ namespace boost{ { static const char data[sizeof(long)] = { 0 }; static const void* pdata = data; - return *(reinterpret_cast*>(pdata)); + return *static_cast*>(pdata); } BOOST_CONSTEXPR operator T()const { return val; } }; @@ -81,7 +81,7 @@ namespace boost{ { static const char data[sizeof(long)] = { 0 }; static const void* pdata = data; - return *(reinterpret_cast*>(pdata)); + return *static_cast*>(pdata); } BOOST_CONSTEXPR operator bool()const { return val; } };