|
Boost : |
From: Gavin Lambert (boost_at_[hidden])
Date: 2019-11-27 00:15:51
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).
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk