|
|
|
|
|
by a_t48
1312 days ago
|
|
C++ still has this problem - std::unordered_map<std::string, std::string>` and `std::unordered_map<std::string, const std::string>` are basically unrelated types - you can't const-cast the templated const away. (I may be misunderstanding here) |
|
That seems like a good thing. If you're handed a map to const values you can't just go "imma gunna mutate them anyway".