boostorg / container

STL-like containers from Boost
http://www.boost.org/libs/container/
Boost Software License 1.0
100 stars 116 forks source link

With heterogeneous lookup, `equal_range` can result in a range with length greater than 1. #123

Closed JanEisenhauer closed 5 years ago

JanEisenhauer commented 5 years ago

Do we need tests?

igaztanaga commented 5 years ago

Can you please add a small test case that reproduces the reported error? Thanks

JanEisenhauer commented 5 years ago

Is it acceptable to have the struct with_lookup_by_first in both flat_set_test.cpp and flat_map_test.cpp?

igaztanaga commented 5 years ago

Many thanks, it seems that "count()" has the same problem. I'll apply a fix on top of your patch.