Boost logo

Boost-Commit :

From: technews_at_[hidden]
Date: 2008-05-25 19:36:55


Author: turkanis
Date: 2008-05-25 19:36:55 EDT (Sun, 25 May 2008)
New Revision: 45754
URL: http://svn.boost.org/trac/boost/changeset/45754

Log:
silenced warning about comma operator (C4913) for VC 8-9 with warning level 4
Text files modified:
   trunk/boost/detail/is_incrementable.hpp | 12 +++++++++++-
   1 files changed, 11 insertions(+), 1 deletions(-)

Modified: trunk/boost/detail/is_incrementable.hpp
==============================================================================
--- trunk/boost/detail/is_incrementable.hpp (original)
+++ trunk/boost/detail/is_incrementable.hpp 2008-05-25 19:36:55 EDT (Sun, 25 May 2008)
@@ -63,7 +63,12 @@
   tag operator,(tag,int);
 # define BOOST_comma(a,b) (a,b)
 # endif
-
+
+# if defined(BOOST_MSVC)
+# pragma warning(push)
+# pragma warning(disable:4913) // Warning about operator,
+# endif
+
   // two check overloads help us identify which operator++ was picked
   char (& check(tag) )[2];
   
@@ -92,6 +97,11 @@
         , value = sizeof(is_incrementable_::check(BOOST_comma(x++,0))) == 1
       );
   };
+
+# if defined(BOOST_MSVC)
+# pragma warning(pop)
+# endif
+
 }
 
 # undef BOOST_comma


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