Skip to content

array_map<char, bool> compiles error. #12

Description

@jiangfeiyun

code:

tsl::array_map<char, bool> m;
m["abc"] = false;

compiles error:

array-hash/include/tsl/array_hash.h:1230:14: error: non-const lvalue reference to type 'bool' cannot bind to a temporary of type 'std::vector<bool>::reference' (aka '__bit_reference<std::vector<bool>>')
      return this->m_values[it_find.first.value()];

std::vector is specialized

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions