|
Boost : |
From: Thorsten Ottosen (nesotto_at_[hidden])
Date: 2007-08-13 11:10:03
Sam Lievesley skrev:
> Hi,
>
> I think I've found a bug when trying to use boost::ptr_set that stops my code from compiling
[snip]
> This function should be:
>
> size_type erase( const key_type& x ) // nothrow
> {
> iterator i( this->c_private().find( const_cast<key_type*>(&x) ) ); // nothrow
> if( i == this->end() ) // nothrow
> return 0u; // nothrow
> this->remove( i ); // nothrow
> return this->c_private().erase( const_cast<key_type*>(&x) ); // nothrow
> }
>
> It now compiles! As I'm not a boost developer I'd appreciate if someone responsible could verify the fix and submit it if its ok ;-)
I'll look into this. The fix might work for set, but I need to
investigate if map works also.
Thanks
-Thorsten
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk