diff --git a/include/boost/type_traits/integral_constant.hpp b/include/boost/type_traits/integral_constant.hpp index aa23eee..235c2e8 100644 --- a/include/boost/type_traits/integral_constant.hpp +++ b/include/boost/type_traits/integral_constant.hpp @@ -59,8 +59,8 @@ namespace boost{ // This helper function is just to disable type-punning // warnings from GCC: // - template - static T& dereference(T* p) { return *p; } + template + static U& dereference(U* p) { return *p; } operator const mpl::integral_c& ()const {