[libcxx] [llvm] [clang] [clang-tools-extra] [libc++][span] P2821R5: span.at() (PR #74994)
Mark de Wever via cfe-commits
cfe-commits at lists.llvm.org
Sun Dec 10 12:02:12 PST 2023
================
@@ -552,6 +578,10 @@ public:
private:
pointer __data_;
size_type __size_;
+
+# if _LIBCPP_STD_VER >= 26
+ _LIBCPP_NORETURN _LIBCPP_HIDE_FROM_ABI void __throw_out_of_range() const { std::__throw_out_of_range("span"); }
----------------
mordante wrote:
Either remove the helper function and call `std::__throw_out_of_range("span");` directly or move it in the `std` namespace. We now add functions that are called once and use indirection for it.
https://github.com/llvm/llvm-project/pull/74994
More information about the cfe-commits
mailing list