On Tue, Nov 26, 2019 at 11:34 AM Vinnie Falco via Boost < boost@lists.boost.org> wrote:
- You can add std::hash overloads.
I'm not seeing the value in these features. What's the use case? No one will be using static_string as the key for a container, since it wastes space.
I've used fixed sized strings not only because they are space efficient, but also because they are non-allocating. And because those types were being used in other places, it was also useful to have them as keys in hash maps.
Why do we need a string literal operator, to produce a string constant that takes up more space than necessary? And why are we "optimizing" the case where size==0? Is this something that anyone will notice or care about (aside from WG21 of course, which often concerns itself with not-relevant things).
I'm sure people said the same thing about array