|
Boost : |
Subject: Re: [boost] [containers] flat_multimap compile errorin trunk
From: Peter Dimov (pdimov_at_[hidden])
Date: 2010-04-22 14:16:33
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.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk