From 4c87c9b49fb46fc5bf43f0eb66ff90d524555019 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ion=20Gazta=C3=B1aga?= Date: Thu, 22 Aug 2024 11:31:18 +0200 Subject: [PATCH] Fix WConversion warning for DetectMember_* --- include/boost/intrusive/detail/function_detector.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {