4 ms·
...but unlike std::basic_string<T>, there is not template parameter for std::basic_fixed_string and there is no typedef of it as std::fixed_string. I suppose i
by gridlockd 7y ago
...but unlike std::basic_string<T>, there is not template parameter for std::basic_fixed_string and there is no typedef of it as std::fixed_string.
I suppose it opens up the possibility of adding std::basic_fixed_string<T> later and then have std::basic_fixed_string just be a specialization?
- gpderetta 7y agocppreference doesn't have it yet, but as far as I can tell from P0259R0, basic_fixed_string is a template, both parameterized on the char type and the size N, and I can't see how it could be otherwise. And no, if it weren't a template, it would not be possible to make it a template in the future as it would be a breaking change.