Ticket #5279: foreach.patch

File foreach.patch, 953 bytes (added by mimomorin@…, 12 years ago)

Disables compile-time const rvalue detection in gcc 4.6 (and newer versions)

  • boost-trunk/boost/foreach.hpp

     
    3131
    3232// Some compilers let us detect even const-qualified rvalues at compile-time
    3333#if BOOST_WORKAROUND(BOOST_MSVC, >= 1310) && !defined(_PREFAST_)                                 \
    34  || (BOOST_WORKAROUND(__GNUC__, >= 4) && !defined(BOOST_INTEL) && !defined(BOOST_CLANG))         \
     34 || (BOOST_WORKAROUND(__GNUC__, == 4) && (__GNUC_MINOR__ <= 5) && !defined(BOOST_INTEL) &&       \
     35                                                                  !defined(BOOST_CLANG))         \
    3536 || (BOOST_WORKAROUND(__GNUC__, == 3) && (__GNUC_MINOR__ >= 4) && !defined(BOOST_INTEL) &&       \
    3637                                                                  !defined(BOOST_CLANG))
    3738# define BOOST_FOREACH_COMPILE_TIME_CONST_RVALUE_DETECTION