You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In tsl::sparse_map, iterator->first/second result is always const regardless of the underlying constness.
This is different from std::unordered_map, where iterator->first/second result is const only if the map is const.
This is documented in README.md but there doesn't seem to be anything making this impossible in principle.
The text was updated successfully, but these errors were encountered:
glebm
added a commit
to glebm/devilutionX
that referenced
this issue
Aug 11, 2022
A couple of minor changes are needed to work around constness issues
in tsl::sparse_map:
1. Tessil/sparse-map#20
2. Tessil/sparse-map#21
Memory savings example, Spanish translations map:
296 KiB -> 263 KiB (-33 KiB)
RG99 binary size: +36 KiB
In
tsl::sparse_map
,iterator->first/second
result is always const regardless of the underlying constness.This is different from
std::unordered_map
, whereiterator->first/second
result isconst
only if the map is const.This is documented in README.md but there doesn't seem to be anything making this impossible in principle.
The text was updated successfully, but these errors were encountered: