Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

transparent operator like less<void> is not functionally usable with bimap #34

Open
schaumb opened this issue Sep 13, 2022 · 0 comments

Comments

@schaumb
Copy link

schaumb commented Sep 13, 2022

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)
@schaumb schaumb changed the title transparent operator like less<void> is not usable with bimap transparent operator like less<void> is not functionally usable with bimap Sep 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant