Opened 8 years ago
Closed 8 years ago
#10135 closed Bugs (duplicate)
[container] flat_map::insert() is ambiguous if used with pair that requires conversion
Reported by: | Owned by: | Ion Gaztañaga | |
---|---|---|---|
Milestone: | To Be Determined | Component: | container |
Version: | Boost 1.55.0 | Severity: | Problem |
Keywords: | Cc: |
Description
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<>.
Note:
See TracTickets
for help on using tickets.
Thanks for the report. This is related to bug #10071, merging both issues.