From bf8898c95f8103f4cfdecde1733f7ec456fe5a81 Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Thu, 16 Dec 2021 04:24:49 +0200 Subject: [PATCH] Disable C5243 in function_base.hpp (closes #41) --- include/boost/function/function_base.hpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/include/boost/function/function_base.hpp b/include/boost/function/function_base.hpp index bd0e548..1418532 100644 --- a/include/boost/function/function_base.hpp +++ b/include/boost/function/function_base.hpp @@ -86,12 +86,21 @@ namespace boost { typedef void (*func_ptr_t)(); mutable func_ptr_t func_ptr; +#if defined(BOOST_MSVC) && BOOST_MSVC >= 1929 +# pragma warning(push) +# pragma warning(disable: 5243) +#endif + // For bound member pointers struct bound_memfunc_ptr_t { void (X::*memfunc_ptr)(int); void* obj_ptr; } bound_memfunc_ptr; +#if defined(BOOST_MSVC) && BOOST_MSVC >= 1929 +# pragma warning(pop) +#endif + // For references to function objects. We explicitly keep // track of the cv-qualifiers on the object referenced. struct obj_ref_t {