I had code similar to this:
#define STR "ABC"
// ...
char s[] = STR;
puts(s);
s[2] = '!';
puts(s);
And I tried to modernize it with constexpr:
constexpr char STR[] = "ABC"
// ...
char s[] = STR;
puts(s);
s[2] = '!';
puts(s);
But it no longer compiles.
How can I initialize a string on the stack from a constexpr constant without runtime penalty?