From 96b53f28a8bf5002764021bbad796871fd5cf821 Mon Sep 17 00:00:00 2001 From: Jonathan Turkanis Date: Sun, 25 May 2008 23:36:55 +0000 Subject: [PATCH] silenced warning about comma operator (C4913) for VC 8-9 with warning level 4 [SVN r45754] --- include/boost/detail/is_incrementable.hpp | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) mode change 100755 => 100644 include/boost/detail/is_incrementable.hpp diff --git a/include/boost/detail/is_incrementable.hpp b/include/boost/detail/is_incrementable.hpp old mode 100755 new mode 100644 index cb7d7a7..1c8fd57 --- a/include/boost/detail/is_incrementable.hpp +++ b/include/boost/detail/is_incrementable.hpp @@ -63,7 +63,12 @@ namespace is_incrementable_ 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 @@ namespace is_incrementable_ , value = sizeof(is_incrementable_::check(BOOST_comma(x++,0))) == 1 ); }; + +# if defined(BOOST_MSVC) +# pragma warning(pop) +# endif + } # undef BOOST_comma