Ticket #2393: boost-1.36.0.ptr_map.patch

File boost-1.36.0.ptr_map.patch, 728 bytes (added by anonymous, 14 years ago)

ptr_map_adapter insert parameter patch

  • boost/ptr_container/ptr_map_adapter.hpp

    old new  
    545545       
    546546    public:
    547547       
    548         std::pair<iterator,bool> insert( key_type& key, mapped_type x )
     548        std::pair<iterator,bool> insert( const key_type& key, mapped_type x )
    549549        {
    550550            return insert_impl( key, x );
    551551        }
     
    794794            insert( boost::begin(r), boost::end(r) );
    795795        }
    796796
    797         iterator insert( key_type& key, mapped_type x ) // strong
     797        iterator insert( const key_type& key, mapped_type x ) // strong
    798798        {
    799799            return insert_impl( key, x );
    800800        }