
On Fri, Nov 23, 2012 at 7:17 AM, Olaf van der Spek <ml@vdspek.org> wrote:
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
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. Tony