Avoid some warnings when compiling the test with Visual C++.

[SVN r40004]
This commit is contained in:
Daniel James committed 2007-10-14 07:38:49 +00:00
1 parent a93b6e3fea
commit 74a03d1655
5 files changed
+56 -3

No files matched your search

+7
View File
@@ -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