Skip to content

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

@schaumb

Description

@schaumb

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions