From 90c3c8e6082ac02ace28abc81234d5d2487112b7 Mon Sep 17 00:00:00 2001 From: John Maddock Date: Fri, 12 Mar 2010 16:57:29 +0000 Subject: [PATCH] Fixes #4000. [SVN r60525] --- include/boost/type_traits/is_empty.hpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/include/boost/type_traits/is_empty.hpp b/include/boost/type_traits/is_empty.hpp index c8eb791..45c4e9e 100644 --- a/include/boost/type_traits/is_empty.hpp +++ b/include/boost/type_traits/is_empty.hpp @@ -36,6 +36,12 @@ namespace boost { namespace detail { #ifndef BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION + +#ifdef BOOST_MSVC +#pragma warning(push) +#pragma warning(disable:4624) // destructor could not be generated +#endif + template struct empty_helper_t1 : public T { @@ -47,6 +53,10 @@ private: empty_helper_t1& operator=(const empty_helper_t1&); }; +#ifdef BOOST_MSVC +#pragma warning(pop) +#endif + struct empty_helper_t2 { int i[256]; }; #if !BOOST_WORKAROUND(__BORLANDC__, < 0x600)