From 3f4d17c5e784bc2cc4cef02ca0782c55f7fbe1e2 Mon Sep 17 00:00:00 2001 From: Daniel James Date: Tue, 12 Nov 2013 22:09:42 +0000 Subject: [PATCH] Only use Visual C++ pragma for appropriate versions. [SVN r86671] --- include/boost/functional/hash/hash.hpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/boost/functional/hash/hash.hpp b/include/boost/functional/hash/hash.hpp index 593fde0..e1aa245 100644 --- a/include/boost/functional/hash/hash.hpp +++ b/include/boost/functional/hash/hash.hpp @@ -26,11 +26,15 @@ #if defined(BOOST_MSVC) #pragma warning(push) + +#if BOOST_MSVC >= 1400 #pragma warning(disable:6295) // Ill-defined for-loop : 'unsigned int' values // are always of range '0' to '4294967295'. // Loop executes infinitely. #endif +#endif + namespace boost { namespace hash_detail