id,summary,reporter,owner,description,type,status,milestone,component,version,severity,resolution,keywords,cc 5336,ptr_map_adapter::insert leaks on exception,olafvdspek@…,Thorsten Ottosen,"If enforce_null_policy() throws, x is lost. {{{ std::pair insert_impl( const key_type& key, mapped_type x ) // strong { this->enforce_null_policy( x, ""Null pointer in ptr_map_adapter::insert()"" ); auto_type ptr( x ); // nothrow std::pair res = this->base().insert( std::make_pair( key, x ) ); // strong, commit if( res.second ) // nothrow ptr.release(); // nothrow return std::make_pair( iterator( res.first ), res.second ); // nothrow } }}}",Bugs,closed,Boost 1.47.0,ptr_container,Boost 1.46.0,Problem,invalid,,