Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r86021 - trunk/boost
From: steveire_at_[hidden]
Date: 2013-09-29 20:17:35


Author: skelly
Date: 2013-09-29 20:17:35 EDT (Sun, 29 Sep 2013)
New Revision: 86021
URL: http://svn.boost.org/trac/boost/changeset/86021

Log:
Foreach: Remove obsolete MSVC version checks.

Text files modified:
   trunk/boost/foreach.hpp | 9 ++-------
   1 files changed, 2 insertions(+), 7 deletions(-)

Modified: trunk/boost/foreach.hpp
==============================================================================
--- trunk/boost/foreach.hpp Sun Sep 29 20:17:24 2013 (r86020)
+++ trunk/boost/foreach.hpp 2013-09-29 20:17:35 EDT (Sun, 29 Sep 2013) (r86021)
@@ -32,7 +32,7 @@
 
 // Some compilers let us detect even const-qualified rvalues at compile-time
 #if !defined(BOOST_NO_CXX11_RVALUE_REFERENCES) \
- || BOOST_WORKAROUND(BOOST_MSVC, >= 1310) && !defined(_PREFAST_) \
+ || defined(BOOST_MSVC) && !defined(_PREFAST_) \
  || (BOOST_WORKAROUND(__GNUC__, == 4) && (__GNUC_MINOR__ <= 5) && !defined(BOOST_INTEL) && \
                                                                   !defined(BOOST_CLANG)) \
  || (BOOST_WORKAROUND(__GNUC__, == 3) && (__GNUC_MINOR__ >= 4) && !defined(BOOST_INTEL) && \
@@ -42,8 +42,7 @@
 // Some compilers allow temporaries to be bound to non-const references.
 // These compilers make it impossible to for BOOST_FOREACH to detect
 // temporaries and avoid reevaluation of the collection expression.
-# if BOOST_WORKAROUND(BOOST_MSVC, <= 1300) \
- || BOOST_WORKAROUND(__BORLANDC__, < 0x593) \
+# if BOOST_WORKAROUND(__BORLANDC__, < 0x593) \
   || (BOOST_WORKAROUND(BOOST_INTEL_CXX_VERSION, <= 700) && defined(_MSC_VER)) \
   || BOOST_WORKAROUND(__SUNPRO_CC, < 0x5100) \
   || BOOST_WORKAROUND(__DECCXX_VER, <= 60590042)
@@ -349,9 +348,7 @@
     //
     // To treat the container as an array, use boost::as_array() in <boost/range/as_array.hpp>,
     // as in BOOST_FOREACH( char ch, boost::as_array("hello") ) ...
- #if !defined(BOOST_MSVC) || BOOST_MSVC > 1300
     BOOST_MPL_ASSERT_MSG( (!is_char_array<T>::value), IS_THIS_AN_ARRAY_OR_A_NULL_TERMINATED_STRING, (T&) );
- #endif
 
     // If the type is a pointer to a null terminated string (as opposed
     // to an array type), there is no ambiguity.
@@ -380,9 +377,7 @@
     //
     // To treat the container as an array, use boost::as_array() in <boost/range/as_array.hpp>,
     // as in BOOST_FOREACH( char ch, boost::as_array("hello") ) ...
- #if !defined(BOOST_MSVC) || BOOST_MSVC > 1300
     BOOST_MPL_ASSERT_MSG( (!is_char_array<T>::value), IS_THIS_AN_ARRAY_OR_A_NULL_TERMINATED_STRING, (T&) );
- #endif
 
     // If the type is a pointer to a null terminated string (as opposed
     // to an array type), there is no ambiguity.


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