
23 Nov
2012
23 Nov
'12
11:25 p.m.
AMDG On 11/23/2012 02:55 PM, Gottlob Frege wrote:
On Fri, Nov 23, 2012 at 7:17 AM, Olaf van der Spek <ml@vdspek.org> wrote:
A string_ref that's not required to be null-terminated is far more useful.
It does (to me at least) raise the question of whether string_ref is the correct name, as it is missing what might be seen as a fundamental aspect of strings - null termination.
fundamental? hardly. std::string is not guaranteed to be null terminated. Besides, if you want a null-terminated string without ownership, const char* works just fine. In Christ, Steven Watanabe