[Boost-bugs] [Boost C++ Libraries] #10135: [container] flat_map::insert() is ambiguous if used with pair that requires conversion

Subject: [Boost-bugs] [Boost C++ Libraries] #10135: [container] flat_map::insert() is ambiguous if used with pair that requires conversion
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2014-06-19 20:13:57


#10135: [container] flat_map::insert() is ambiguous if used with pair that requires
conversion
----------------------------------------------+------------------------
 Reporter: Sebastian Karlsson <sebastian@…> | Owner: igaztanaga
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: container
  Version: Boost 1.55.0 | Severity: Problem
 Keywords: |
----------------------------------------------+------------------------
 The following is a no go it seems:

 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/10135>
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