aboutsummaryrefslogtreecommitdiff
path: root/lib/libcxx/src/string.cpp
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2023-01-26 13:23:03 -0700
committerAndrew Kelley <andrew@ziglang.org>2023-01-26 16:36:13 -0700
commit1eaf180dd04efcf65ef981b1e1064658b5ec09c3 (patch)
treec12e99871e9ba098bea523da0bde266d9afbd065 /lib/libcxx/src/string.cpp
parent85be0b8c6589f58d5667d0a8a8f94524d5de5ba6 (diff)
downloadzig-1eaf180dd04efcf65ef981b1e1064658b5ec09c3.tar.gz
zig-1eaf180dd04efcf65ef981b1e1064658b5ec09c3.zip
update libcxx to llvm 16
Diffstat (limited to 'lib/libcxx/src/string.cpp')
-rw-r--r--lib/libcxx/src/string.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libcxx/src/string.cpp b/lib/libcxx/src/string.cpp
index 8db129520e..db211b2242 100644
--- a/lib/libcxx/src/string.cpp
+++ b/lib/libcxx/src/string.cpp
@@ -85,7 +85,7 @@ template<typename V, typename S, typename F>
inline V as_integer_helper(const string& func, const S& str, size_t* idx, int base, F f) {
typename S::value_type* ptr = nullptr;
const typename S::value_type* const p = str.c_str();
- typename remove_reference<decltype(errno)>::type errno_save = errno;
+ __libcpp_remove_reference_t<decltype(errno)> errno_save = errno;
errno = 0;
V r = f(p, &ptr, base);
swap(errno, errno_save);
@@ -172,7 +172,7 @@ template<typename V, typename S, typename F>
inline V as_float_helper(const string& func, const S& str, size_t* idx, F f) {
typename S::value_type* ptr = nullptr;
const typename S::value_type* const p = str.c_str();
- typename remove_reference<decltype(errno)>::type errno_save = errno;
+ __libcpp_remove_reference_t<decltype(errno)> errno_save = errno;
errno = 0;
V r = f(p, &ptr);
swap(errno, errno_save);