diff --git a/include/boost/intrusive/detail/function_detector.hpp b/include/boost/intrusive/detail/function_detector.hpp index 5ecaeaf..b5e72ba 100644 --- a/include/boost/intrusive/detail/function_detector.hpp +++ b/include/boost/intrusive/detail/function_detector.hpp @@ -78,7 +78,7 @@ namespace function_detector { template \ static NotFoundType Test( ... ); \ public : \ - static const int check = NotFound + (sizeof(Test(0, 0)) - sizeof(NotFoundType));\ + static const int check = NotFound + int(sizeof(Test(0, 0)) - sizeof(NotFoundType));\ };\ }}} //namespace boost::intrusive::function_detector {