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

pavel.kryukov at phystech dot edu gcc-bugzilla@gcc.gnu.org
Tue Oct 24 17:56:00 GMT 2017


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

--- Comment #9 from Pavel I. Kryukov <pavel.kryukov at phystech dot edu> ---
Ok, no problem.

> 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"));

JFYI, Clang gives a wrong answer to that
(https://bugs.llvm.org/show_bug.cgi?id=15481).


More information about the Gcc-bugs mailing list