From 8eb375b8dc142a3caa9b2f7e97fb4dbf458cfa6c Mon Sep 17 00:00:00 2001 From: Eric Niebler Date: Mon, 26 Feb 2007 20:42:46 +0000 Subject: [PATCH] intel compiler on linux doesn't do const rvalue detection [SVN r37084] --- include/boost/foreach.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/boost/foreach.hpp b/include/boost/foreach.hpp index 48fd8a7..b9018f8 100755 --- a/include/boost/foreach.hpp +++ b/include/boost/foreach.hpp @@ -29,8 +29,8 @@ // Some compilers let us detect even const-qualified rvalues at compile-time #if BOOST_WORKAROUND(BOOST_MSVC, >= 1310) \ - || BOOST_WORKAROUND(__GNUC__, >= 4) \ - || (BOOST_WORKAROUND(__GNUC__, == 3) && (__GNUC_MINOR__ >= 4)) + || (BOOST_WORKAROUND(__GNUC__, >= 4) && !defined(BOOST_INTEL)) \ + || (BOOST_WORKAROUND(__GNUC__, == 3) && (__GNUC_MINOR__ >= 4) && !defined(BOOST_INTEL)) # define BOOST_FOREACH_COMPILE_TIME_CONST_RVALUE_DETECTION #else // Some compilers allow temporaries to be bound to non-const references.