This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: Make string_view operations involving CharT* *not* noexcept and consistent beween string_view and string_view.tcc.
- From: Jonathan Wakely <jwakely dot gcc at gmail dot com>
- To: "libstdc++ at gcc dot gnu dot org" <libstdc++ at gcc dot gnu dot org>
- Cc: Ed Smith-Rowland <3dw4rd at verizon dot net>
- Date: Sun, 30 Mar 2014 22:10:36 +0100
- Subject: Re: Make string_view operations involving CharT* *not* noexcept and consistent beween string_view and string_view.tcc.
- Authentication-results: sourceware.org; auth=none
- References: <533716DC dot 10109 at verizon dot net> <alpine dot DEB dot 2 dot 10 dot 1403292141510 dot 3604 at laptop-mg dot saclay dot inria dot fr>
On 29 March 2014 21:18, Marc Glisse wrote:
> I notice that the default constructor and basic_string_view(nullptr,n) have
> _M_str point to a special array. What would break with using 0?
IIRC in Issaquah we changed the string_view spec to remove the
guarantee that data() never returns nullptr, so the special array is
no longer needed.