4 Comments
User's avatar
Yacob Cohen-Arazi's avatar

Thanks for posting. This is something that we all need to keep in mind.

It was added to 14 for the ordered containers (map, set) and was added to the unordered ones in 20.

Expand full comment
Taras Tsugrii's avatar

yep and unfortunately it's easy to miss in case of implicit conversions. Making everything explicit is my top hope for future C++.

Expand full comment
Nicholas Broune's avatar

Strings are severely what? :)

Expand full comment
Taras Tsugrii's avatar

oops, looks like substack ate a few words. I meant to say that strings are severely overused. Sometimes I argue that they shouldn't even have native support in programming languages so that programmers have natural friction when trying to use them. But it's a long rent for a separate article.

Expand full comment