From 454fc7501e17cddf4ec009c44fee852b6d5552c1 Mon Sep 17 00:00:00 2001 From: joaquintides Date: Sat, 18 Mar 2023 10:15:43 +0100 Subject: [PATCH] extended shutting down VS C4324 warning --- .../boost/unordered/detail/foa/concurrent_table.hpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/include/boost/unordered/detail/foa/concurrent_table.hpp b/include/boost/unordered/detail/foa/concurrent_table.hpp index 255b89d7..465cc6c2 100644 --- a/include/boost/unordered/detail/foa/concurrent_table.hpp +++ b/include/boost/unordered/detail/foa/concurrent_table.hpp @@ -43,6 +43,11 @@ namespace unordered{ namespace detail{ namespace foa{ +#if defined(BOOST_MSVC) +#pragma warning(push) +#pragma warning(disable:4324) /* padded structure due to alignas */ +#endif + template struct alignas(64) cacheline_protected:T { @@ -102,11 +107,6 @@ private: /* copied from boost/multi_index/detail/scoped_bilock.hpp */ -#if defined(BOOST_MSVC) -#pragma warning(push) -#pragma warning(disable:4324) /* padded structure due to alignas */ -#endif - template class scoped_bilock {