Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r67278 - trunk/boost
From: d.frey_at_[hidden]
Date: 2010-12-16 12:30:48


Author: daniel_frey
Date: 2010-12-16 12:30:46 EST (Thu, 16 Dec 2010)
New Revision: 67278
URL: http://svn.boost.org/trac/boost/changeset/67278

Log:
Limit warning suppression to old versions of VC++, fixes #4432
Text files modified:
   trunk/boost/operators.hpp | 4 +++-
   1 files changed, 3 insertions(+), 1 deletions(-)

Modified: trunk/boost/operators.hpp
==============================================================================
--- trunk/boost/operators.hpp (original)
+++ trunk/boost/operators.hpp 2010-12-16 12:30:46 EST (Thu, 16 Dec 2010)
@@ -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
 


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk