Ticket #3977: nvp_const_ref_ptr_special.patch

File nvp_const_ref_ptr_special.patch, 637 bytes (added by kondo@…, 13 years ago)

improved patch file

  • 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<T * const> make_nvp(const char * name, T * const & t){
     107    return nvp<T * const>(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