Ticket #8772: boost_1_54_0_variant.patch

File boost_1_54_0_variant.patch, 743 bytes (added by anonymous, 9 years ago)

Simple fix to disable specific variant optimizations relying on rvalue references.

  • boost/variant/variant.hpp

    diff -Naur org/boost/variant/variant.hpp mod/boost/variant/variant.hpp
    org mod  
    19301930   
    19311931    friend class assigner;
    19321932   
    1933 #ifndef BOOST_NO_CXX11_RVALUE_REFERENCES
     1933#if 0 // ifndef BOOST_NO_CXX11_RVALUE_REFERENCES
    19341934    // class move_assigner
    19351935    //
    19361936    // Internal visitor that "move assigns" the visited value to the given variant
     
    20922092        }
    20932093    }
    20942094
    2095 #ifndef BOOST_NO_CXX11_RVALUE_REFERENCES
     2095#if 0 // ifndef BOOST_NO_CXX11_RVALUE_REFERENCES
    20962096    void variant_assign(variant&& rhs)
    20972097    {
    20982098        // If the contained types are EXACTLY the same...