This is the mail archive of the gcc-patches@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]

[PATCH] PR libstdc++/82685 add 'noexcept' to string_view literals


C++17 says these operators should be noexcept (and Clang-Tidy can't
figure out they don't throw otherwise). LFTS doesn't have these
literals, but we'd be able to make them noexcept anyway, just because
we like to do that.

	PR libstdc++/82685
	* include/experimental/string_view (operator""sv): Add noexcept.
	* include/std/string_view (operator""sv): Likewise.

Tested powerpc64le-linux, committed to trunk. I'll backport it too.


Attachment: patch.txt
Description: Text document


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