From 636283d7c2bf68d0b259ceca9d5a1d27b9363df5 Mon Sep 17 00:00:00 2001 From: Daniel Frey Date: Thu, 16 Dec 2010 17:30:46 +0000 Subject: [PATCH] Limit warning suppression to old versions of VC++, fixes #4432 [SVN r67278] --- include/boost/operators.hpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/boost/operators.hpp b/include/boost/operators.hpp index 4b47ba4..b524cee 100644 --- a/include/boost/operators.hpp +++ b/include/boost/operators.hpp @@ -8,6 +8,8 @@ // See http://www.boost.org/libs/utility/operators.htm for documentation. // Revision History +// 16 Dec 10 Limit warning suppression for 4284 to older versions of VC++ +// (Matthew Bradbury, fixes #4432) // 07 Aug 08 Added "euclidean" spelling. (Daniel Frey) // 03 Apr 08 Make sure "convertible to bool" is sufficient // for T::operator<, etc. (Daniel Frey) @@ -88,7 +90,7 @@ # pragma set woff 1234 #endif -#if defined(BOOST_MSVC) +#if BOOST_WORKAROUND(BOOST_MSVC, < 1600) # pragma warning( disable : 4284 ) // complaint about return type of #endif // operator-> not begin a UDT