Boost logo

Boost :

Subject: Re: [boost] [containers] flat_multimap compile errorin trunk
From: Thorsten Ottosen (nesotto_at_[hidden])
Date: 2010-04-22 15:33:37


Peter Dimov skrev:
> Thorsten Ottosen:
>> + template< class Pair, class InternalPair >
>> + static Pair force_pair_copy( const InternalPair& p )
>> + {
>> + typedef typename Pair::first_type iter;
>> + return Pair( force_copy<iter>( p.first ), force_copy<iter>(
>> p.second ) );
>> + }
>
> Forcing p.second to Pair::first_type doesn't seem correct. It would work
> for pair<I, I>, of course.

yes, that is the type of pair being used in equal_range()

-Thorsten


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk