27 Nov
2019
27 Nov
'19
12:15 a.m.
On 27/11/2019 06:46, Peter Dimov wrote:
Vinnie Falco wrote:
In which use-cases do you anticipate the need for a constexpr static_string?
When manipulating strings at compile time? Such as s1 += s2?
Wouldn't that use case be better served with an immutable string and operator+? At compile time, you can maintain the invariant length() == capacity(), which this type cannot do (and is not intended for).