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: Sebastian Karlsson <sebastian@…> 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<>.

Change History (1)

comment:1 by Ion Gaztañaga, 8 years ago

Resolution: duplicate
Status: newclosed

Thanks for the report. This is related to bug #10071, merging both issues.

Note: See TracTickets for help on using tickets.