silenced warning about comma operator (C4913) for VC 8-9 with warning level 4

[SVN r45754]
This commit is contained in:
Jonathan Turkanis
2008-05-25 23:36:55 +00:00
parent 7e259580c1
commit 96b53f28a8

12
include/boost/detail/is_incrementable.hpp Executable file → Normal file
View File

@ -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