Subject: Re: [boost] Heads up - string_ref landing
From: Gottlob Frege (gottlobfrege_at_[hidden])
Date: 2012-11-23 17:55:22
On Fri, Nov 23, 2012 at 7:17 AM, Olaf van der Spek <ml_at_[hidden]> wrote:
> On Fri, Nov 23, 2012 at 1:07 PM, Yakov Galka <ybungalobill_at_[hidden]>
> > Important point! Current wording does not require the string_ref to point
> > to a null terminated string. This (a) enables working with substrings,
> > 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.
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.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk