From 7fb9412ea8b0b9d2b63a865cf194742382ca00bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thorsten=20J=C3=B8rgen=20Ottosen?= Date: Tue, 30 Jun 2009 20:04:45 +0000 Subject: [PATCH] removed warning on vc++ for using std::equal [SVN r54541] --- include/boost/array.hpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/include/boost/array.hpp b/include/boost/array.hpp index 8ef73c4..d58b93a 100644 --- a/include/boost/array.hpp +++ b/include/boost/array.hpp @@ -24,6 +24,13 @@ #ifndef BOOST_ARRAY_HPP #define BOOST_ARRAY_HPP +#include + +#if BOOST_WORKAROUND(BOOST_MSVC, >= 1400) +# pragma warning(push) +# pragma warning(disable:4996) // 'std::equal': Function call with parameters that may be unsafe +#endif + #include #include #include @@ -320,4 +327,9 @@ namespace boost { } /* namespace boost */ + +#if BOOST_WORKAROUND(BOOST_MSVC, >= 1400) +# pragma warning(pop) +#endif + #endif /*BOOST_ARRAY_HPP*/