Boost logo

Boost :

Subject: Re: [boost] Heads up - string_ref landing
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2012-11-23 18:25:05


AMDG

On 11/23/2012 02:55 PM, Gottlob Frege wrote:
> On Fri, Nov 23, 2012 at 7:17 AM, Olaf van der Spek <ml_at_[hidden]> wrote:
>
>> 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.
>

fundamental? hardly. std::string is not guaranteed to
be null terminated. Besides, if you want a null-terminated
string without ownership, const char* works just fine.

In Christ,
Steven Watanabe


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk