bimap
bimap copied to clipboard
transparent operator like `less<void>` is not functionally usable with bimap
The current implementation is not allow to use transparent comparator/hash operator functionality.
boost::bimap<int, boost::bimaps::set_of<const char*, std::less<>>> test;
std::string stg;
test.right.find(stg); // error
The compile error message is the following:
/opt/compiler-explorer/libs/boost_1_80_0/boost/bimap/container_adaptor/associative_container_adaptor.hpp:194:17: error: no matching function for call to object of type 'boost::bimaps::container_adaptor::detail::key_to_base_identity<const char *, const char *const>'
this->template functor<key_to_base>()(k)