2
0
mirror of https://github.com/boostorg/foreach.git synced 2026-02-10 11:22:38 +00:00

intel compiler on linux doesn't do const rvalue detection

[SVN r37084]
This commit is contained in:
Eric Niebler
2007-02-26 20:42:46 +00:00
parent 1746e3f104
commit 8eb375b8dc

View File

@@ -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.