[Bug libstdc++/82685] basic_string_view<char> operator""sv(const char*, size_t) should be noexcept

redi at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Oct 24 01:16:00 GMT 2017


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82685

--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> ---
N.B. the compiler already gives the right answer when asked:

#include <string_view>
using namespace std::literals::string_view_literals;
static_assert(noexcept(""sv"));

So the fact we don't say 'noexcept' doesn't actually matter.


More information about the Gcc-bugs mailing list