From 19a2f5ea95ddd6ed7ac6d50af15c59f2552a3611 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ion=20Gazta=C3=B1aga?= Date: Thu, 22 Aug 2024 11:42:29 +0200 Subject: [PATCH] Fix WConversion warning for DetectMember_* --- include/boost/container/detail/function_detector.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/boost/container/detail/function_detector.hpp b/include/boost/container/detail/function_detector.hpp index 33134cb..6e43263 100644 --- a/include/boost/container/detail/function_detector.hpp +++ b/include/boost/container/detail/function_detector.hpp @@ -80,7 +80,7 @@ namespace function_detector { template \ static NotFoundType Test( ... ); \ public : \ - BOOST_STATIC_CONSTEXPR int check = NotFound + (sizeof(Test(0, 0)) - sizeof(NotFoundType));\ + BOOST_STATIC_CONSTEXPR int check = NotFound + int(sizeof(Test(0, 0)) - sizeof(NotFoundType));\ };\ }}} //namespace boost::container::function_detector {