3 ms·
This is one of these unexpected things that make C++ really annoying sometimes. It would have been better to pick just one behavior and use it in both cases. Fo
by captainmuon 12y ago
This is one of these unexpected things that make C++ really annoying sometimes. It would have been better to pick just one behavior and use it in both cases. For example, make it mutable (array allocation) in both cases, and if you really need to place the string in the RODATA block (to save memory for repeated immutable strings for example), you could have a compiler directive.
- tobinfricke 12y agoSo, you're suggesting that we take a standard language feature and replace it with an implementation-dependent one?