Opened 11 years ago

Closed 10 years ago

#6769 closed Bugs (fixed)

flat_multimap::equal_range() does not compile

Reported by: Dimitre Piskyulev <dpiskyulev@…> Owned by: Ion Gaztañaga
Milestone: To Be Determined Component: container
Version: Boost 1.49.0 Severity: Problem
Keywords: Cc:

Description

Invoking equal_range() on flat_multimap generates a compile error.

Reproducible with MS VC 10 and gcc 4.6

Replacing force_copy() with force() seems to fix it. (like it is for flat_map)

See attached file for small program that generates the error.

Attachments (1)

flat_map.cpp (661 bytes ) - added by Dimitre Piskyulev <dpiskyulev@…> 11 years ago.

Download all attachments as: .zip

Change History (5)

by Dimitre Piskyulev <dpiskyulev@…>, 11 years ago

Attachment: flat_map.cpp added

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

Sorry, but I could not reproduce your problem in VC10 or GCC 4.6

comment:2 by anonymous, 10 years ago

did you try the attached program? you have to uncomment one of the typedefs, fails for flat containers. it did fail for me both on VC10 and gcc4.6 (ubuntu 10.10), boost 1.49.0

comment:3 by anonymous, 10 years ago

fresh ubuntu 12.04, stock gcc (4.6.3) and boost 1.50.0, issue is gone

comment:4 by Ion Gaztañaga, 10 years ago

Resolution: fixed
Status: newclosed

Thanks for the report. Glad to know it was already fixed in Boost 1.50

Note: See TracTickets for help on using tickets.