|
Boost : |
Subject: Re: [boost] Heads up - string_ref landing
From: Olaf van der Spek (ml_at_[hidden])
Date: 2012-11-23 07:17:20
On Fri, Nov 23, 2012 at 1:07 PM, Yakov Galka <ybungalobill_at_[hidden]> 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
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk