diff --git a/include/boost/functional/detail/hash_float.hpp b/include/boost/functional/detail/hash_float.hpp index d005e7d..298d0c0 100644 --- a/include/boost/functional/detail/hash_float.hpp +++ b/include/boost/functional/detail/hash_float.hpp @@ -14,6 +14,14 @@ # pragma once #endif +#if defined(BOOST_MSVC) +#pragma warning(push) +#if BOOST_MSVC >= 1400 +#pragma warning(disable:6294) // Ill-defined for-loop: initial condition does + // not satisfy test. Loop body not executed +#endif +#endif + #include #include #include @@ -181,4 +189,8 @@ namespace boost } } +#if defined(BOOST_MSVC) +#pragma warning(pop) +#endif + #endif