sparse-map icon indicating copy to clipboard operation
sparse-map copied to clipboard

Range iteration is always const

Open glebm opened this issue 3 years ago • 0 comments

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.

glebm avatar Aug 11 '22 06:08 glebm