Skip to content

Range iteration is always const #21

@glebm

Description

@glebm
tsl::sparse_map<int, std::string> m;
for (auto &it : m) {
	std::string &value = it.second;
}

This fails with tsl but works with std::unordered_map.

This is documented in README.md but there doesn't seem to be anything making this impossible in principle.

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