$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
From: Thorsten Ottosen (thorsten.ottosen_at_[hidden])
Date: 2008-05-02 04:39:03
Sergei Politov skrev:
> Hi,
>
> I have found some differences in documentation for ptr_multimap, and its real
> implementation.
> In code:
> template< class U >
> iterator insert( key_type& key, std::auto_ptr<U> x )
> {
> return insert( key, x.release() );
> }
>
> In documentation:
> template< class U >
> iterator insert( const key_type&, std::auto_ptr<U> x );
>
> The difference is in first argument of this function.
>
> I don't known which way is right to submit the bug report.
>
> Could somebody please help me?
Hi Sergei,
The documentation is right. The reason is that when you have an
auto_ptr<U> object, there is less need (it's not bullet proof) to
require a mutable key for exeption-safety reasons.
I've updated trunk.
Thanks
-Thorsten