Only disable C4351 on msvc-12.0 and earlier (refs #96)

This commit is contained in:
Peter Dimov
2022-10-26 15:52:18 +03:00
parent 9a6d79b841
commit 7ae6b317f3

View File

@ -48,7 +48,7 @@ class std_category;
#pragma GCC diagnostic ignored "-Wnon-virtual-dtor"
#endif
#if defined(BOOST_MSVC)
#if defined(BOOST_MSVC) && BOOST_MSVC < 1900
#pragma warning(push)
#pragma warning(disable: 4351) // new behavior: elements of array will be default initialized
#endif
@ -183,7 +183,7 @@ public:
#endif
};
#if defined(BOOST_MSVC)
#if defined(BOOST_MSVC) && BOOST_MSVC < 1900
#pragma warning(pop)
#endif