Re: [boost] [fixed_string][review] Review of fixed_string
- everything should ideally be constexpr. The problem here is that constexpr requires initializing all elements, and this will heavily penalize runtime uses of f.ex. fixed_string<512>. On compilers with __builtin_is_constant_evaluated (gcc 9, clang 9) we should use that; otherwise, it might be worth it to create a specialization for N < some suitable upper limit.
Wait, I have an idea.
template
participants (2)
-
Krystian Stasiowski
-
Peter Dimov