
23 Nov
2012
23 Nov
'12
12:17 p.m.
On Fri, Nov 23, 2012 at 1:07 PM, Yakov Galka <ybungalobill@gmail.com> wrote:
Important point! Current wording does not require the string_ref to point to a null terminated string. This (a) enables working with substrings, (b) makes it unclear how it is better than iterator_range, and (c) does not solve the problem for the fstream::fopen(const char*/std::string&) case.
Do you really think that trading (c) for (a) is a good idea?
Yes, I do. If you'd like to have a zstring_ref, you should write one. ;) A string_ref that's not required to be null-terminated is far more useful. -- Olaf