mirror of
https://github.com/boostorg/detail.git
synced 2025-07-29 20:07:15 +02:00
silenced warning about comma operator (C4913) for VC 8-9 with warning level 4
[SVN r45754]
This commit is contained in:
12
include/boost/detail/is_incrementable.hpp
Executable file → Normal file
12
include/boost/detail/is_incrementable.hpp
Executable file → Normal 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
|
||||
|
Reference in New Issue
Block a user