Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r54541 - trunk/boost
From: nesotto_at_[hidden]
Date: 2009-06-30 16:04:46


Author: nesotto
Date: 2009-06-30 16:04:45 EDT (Tue, 30 Jun 2009)
New Revision: 54541
URL: http://svn.boost.org/trac/boost/changeset/54541

Log:
removed warning on vc++ for using std::equal
Text files modified:
   trunk/boost/array.hpp | 12 ++++++++++++
   1 files changed, 12 insertions(+), 0 deletions(-)

Modified: trunk/boost/array.hpp
==============================================================================
--- trunk/boost/array.hpp (original)
+++ trunk/boost/array.hpp 2009-06-30 16:04:45 EDT (Tue, 30 Jun 2009)
@@ -24,6 +24,13 @@
 #ifndef BOOST_ARRAY_HPP
 #define BOOST_ARRAY_HPP
 
+#include <boost/detail/workaround.hpp>
+
+#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 <cstddef>
 #include <stdexcept>
 #include <boost/assert.hpp>
@@ -320,4 +327,9 @@
 
 } /* namespace boost */
 
+
+#if BOOST_WORKAROUND(BOOST_MSVC, >= 1400)
+# pragma warning(pop)
+#endif
+
 #endif /*BOOST_ARRAY_HPP*/


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk