
12 Dec
2012
12 Dec
'12
1:26 p.m.
On Wed, Dec 12, 2012 at 2:21 PM, Yakov Galka <ybungalobill@gmail.com> 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