
19 Nov
2012
19 Nov
'12
12:49 p.m.
On Mon, Nov 19, 2012 at 4:42 AM, Yanchenko Maxim <maximyanchenko@yandex.ru> wrote:
Mathias, it's not just compile-time size (which is good to have as well, btw). What about literals with a zero character inside, like "foo\0bar"?
What about them? Such literals aren't proper null-terminated strings, are they?
I believe string_ref should be able to handle the case, in order to be useful.
For such literals the (const char*, size_t) constructor should be used. -- Olaf