|
Boost : |
Subject: Re: [boost] Heads up - string_ref landing
From: Olaf van der Spek (ml_at_[hidden])
Date: 2012-12-12 08:26:17
On Wed, Dec 12, 2012 at 2:21 PM, Yakov Galka <ybungalobill_at_[hidden]> wrote:
> I wrote !!begin(), not !!*begin(). In other works string_ref can *actually
> be a null pointer*, or at least I haven't seen anyone saying the contrary.
begin() isn't guaranteed to return a pointer and !! doesn't work on an
iterator (in general).
>> > std::string does not have a 'null' state.
>>
>> It's the state represented by empty().
>>
>
> I am not sure it is so certainly accepted by all.
I'm sure it's not accepted by some.
-- Olaf
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk