News for hackers. Stuff that matters.
Re:Just how constexpr is C++20’s std:string? by rewmie on Saturday September 09, 2023 @03:53AM (#37443182)
> I find that there's no use case for a constexpr std::string. Maybe I'm just not imaginative enough.

Putting together strings through string interpolation involving somewhat expensive operations is a common usecase. Given the choice, it's preferable to not have to compute them each and every single time a function is invoked.

There are no comments on this comment yet.