Ticket #5475: revert_to_cxx_03.patch

File revert_to_cxx_03.patch, 1000 bytes (added by Michel Morin <mimomorin@…>, 11 years ago)

Patch that implements A of comment 23 (against trunk before applying the previous patch).

  • boost/foreach.hpp

     
    3333// Some compilers support rvalue references and auto type deduction.
    3434// With these C++0x features, temporary collections can be bound to
    3535// rvalue references and their lifetime is extended. No copy/move is needed.
    36 #if !defined(BOOST_NO_DECLTYPE) && !defined(BOOST_NO_RVALUE_REFERENCES)
     36#if !defined(BOOST_NO_DECLTYPE) && !defined(BOOST_NO_RVALUE_REFERENCES)                          \
     37 && !(BOOST_WORKAROUND(__GNUC__, == 4) && (__GNUC_MINOR__ == 4) && !defined(BOOST_INTEL) &&      \
     38                                                                   !defined(BOOST_CLANG))
    3739# define BOOST_FOREACH_USE_RVALUE_REFERENCE_BINDING
    3840// Some compilers let us detect even const-qualified rvalues at compile-time
    3941#elif !defined(BOOST_NO_RVALUE_REFERENCES)                                                       \