--- boost/ptr_container/ptr_map_adapter.hpp.orig 2008-10-09 03:16:01.000000000 -0400 +++ boost/ptr_container/ptr_map_adapter.hpp 2008-10-09 03:17:49.000000000 -0400 @@ -545,7 +545,7 @@ public: - std::pair insert( key_type& key, mapped_type x ) + std::pair insert( const key_type& key, mapped_type x ) { return insert_impl( key, x ); } @@ -794,7 +794,7 @@ insert( boost::begin(r), boost::end(r) ); } - iterator insert( key_type& key, mapped_type x ) // strong + iterator insert( const key_type& key, mapped_type x ) // strong { return insert_impl( key, x ); }