boostorg / container

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

insert_or_assign not work with hint #98

Closed tower120 closed 5 years ago

tower120 commented 5 years ago

The following code doesn't compiles :

https://wandbox.org/permlink/GltFoHe4IcVW9oBd

#include <boost/container/flat_map.hpp>

int main() {
    boost::container::flat_map<int, int> map;    
    map.insert_or_assign(map.begin(), 1,1);
    return 0;
}
igaztanaga commented 5 years ago

Many thanks for the report!