From a4172b431999ec5f5f4cd0884b7c9d145661d949 Mon Sep 17 00:00:00 2001 From: Glen Fernandes Date: Mon, 1 Nov 2021 06:31:51 -0400 Subject: [PATCH] MSVC warning workaround for empty_value --- include/boost/core/empty_value.hpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/include/boost/core/empty_value.hpp b/include/boost/core/empty_value.hpp index 2ac2331..9dfd442 100644 --- a/include/boost/core/empty_value.hpp +++ b/include/boost/core/empty_value.hpp @@ -25,6 +25,11 @@ Distributed under the Boost Software License, Version 1.0. #endif #endif +#if defined(_MSC_VER) +#pragma warning(push) +#pragma warning(disable:4510) +#endif + namespace boost { template @@ -143,4 +148,8 @@ BOOST_INLINE_CONSTEXPR empty_init_t empty_init = empty_init_t(); } /* boost */ +#if defined(_MSC_VER) +#pragma warning(pop) +#endif + #endif