Subject: Re: [Boost-bugs] [Boost C++ Libraries] #10071: [container] flat_map::insert() is ambiguous if used with initializer lists
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2014-06-23 20:58:44
#10071: [container] flat_map::insert() is ambiguous if used with initializer lists
-----------------------------------------------+------------------------
Reporter: Sebastian Karlsson <sebastian@â¦> | Owner: igaztanaga
Type: Bugs | Status: new
Milestone: To Be Determined | Component: container
Version: Boost 1.55.0 | Severity: Problem
Resolution: | Keywords:
-----------------------------------------------+------------------------
Comment (by igaztanaga):
Merging issue #10135. Copying the issue text:
[container] flat_map::insert() is ambiguous if used with pair that
requires conversion
Reported by: Sebastian Karlsson
Version: Boost 1.55.0
The following is a no go it seems:
{{{
#!cpp
boost::container::flat_map< int, int > fm; fm.insert( std::make_pair( 0u,
0 ) );
}}}
Because the pair has to be converted, but it can be converted to either
std::pair<> or container::container_details::pair<>.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/10071#comment:1> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:16 UTC