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 {