Ticket #3977: nvp_const_ref.patch

File nvp_const_ref.patch, 631 bytes (added by kondo@…, 13 years ago)

patch file to resolve this problem

  • boost/serialization/nvp.hpp

     
    9898    return nvp<T>(name, t);
    9999}
    100100
     101template<class T>
     102inline
     103#ifndef BOOST_NO_FUNCTION_TEMPLATE_ORDERING
     104const
     105#endif
     106nvp<const T> make_nvp(const char * name, const T & t){
     107    return nvp<const T>(name, t);
     108}
     109
    101110// to maintain efficiency and portability, we want to assign
    102111// specific serialization traits to all instances of this wrappers.
    103112// we can't strait forward method below as it depends upon