This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: [PATCH] Add noexcept to various basic_string string operations
- From: Tim Song <t dot canens dot cpp at gmail dot com>
- To: Jonathan Wakely <jwakely at redhat dot com>
- Cc: "libstdc++" <libstdc++ at gcc dot gnu dot org>, gcc-patches <gcc-patches at gcc dot gnu dot org>
- Date: Tue, 6 Dec 2016 05:55:35 -0500
- Subject: Re: [PATCH] Add noexcept to various basic_string string operations
- Authentication-results: sourceware.org; auth=none
- References: <20161206104332.GA22444@redhat.com>
On Tue, Dec 6, 2016 at 5:43 AM, Jonathan Wakely <jwakely@redhat.com> wrote:
> None of these functions can throw, so we should mark them as such.
> I've reported this as a defect against C++17, because they should have
> been made noexcept after the application of https://wg21.link/p0254r2
Surely the const _CharT* variants are narrow contract? Or was there a
policy change here?