This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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).

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]