forked from boostorg/container_hash
Avoid some warnings when compiling the test with Visual C++.
[SVN r40004]
This commit is contained in:
1 parent
a93b6e3fea
commit
74a03d1655
5 files changed
+56
-3
No files matched your search
@@ -17,6 +17,10 @@
|
||||
#include <boost/limits.hpp>
|
||||
|
||||
#include <iostream>
|
||||
#if defined(BOOST_MSVC)
|
||||
#pragma warning(push)
|
||||
#pragma warning(disable:4127) // conditional expression is constant
|
||||
#endif
|
||||
|
||||
template <class T>
|
||||
void float_tests(char const* name, T* = 0)
|
||||
@@ -198,3 +202,6 @@ void float_tests(char const* name, T* = 0)
|
||||
#endif
|
||||
}
|
||||
|
||||
#if defined(BOOST_MSVC)
|
||||
#pragma warning(pop)
|
||||
#endif
|
||||
Reference in new issue
Block a user