From 6c02c10d7ee86907e4ee20e8f16a7f17f5e6c06f Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Thu, 4 Apr 2002 13:21:55 +0000 Subject: [PATCH] Disabled warning 4121 (alignment sensitive to packing) on MSVC. [SVN r13365] --- include/boost/type_traits/alignment_traits.hpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/include/boost/type_traits/alignment_traits.hpp b/include/boost/type_traits/alignment_traits.hpp index a10ca23..ad16b47 100644 --- a/include/boost/type_traits/alignment_traits.hpp +++ b/include/boost/type_traits/alignment_traits.hpp @@ -22,6 +22,11 @@ #include #include +#ifdef BOOST_MSVC +# pragma warning(push) +# pragma warning(disable: 4121) // alignment is sensitive to packing +#endif + namespace boost{ template struct alignment_of; @@ -190,4 +195,8 @@ public: } // namespace boost +#ifdef BOOST_MSVC +# pragma warning(pop) +#endif + #endif // ALIGNMENT_TYPE_TRAITS_HPP