Skip to content

Commit 0b8f3cc

Browse files
authored
[libc++] Fix no-localisation CI failure on <complex> (#145213)
1 parent 90828e0 commit 0b8f3cc

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

libcxx/include/complex

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,7 @@ template<class T> complex<T> tanh (const complex<T>&);
260260
# include <__cxx03/complex>
261261
#else
262262
# include <__config>
263+
# include <__cstddef/size_t.h>
263264
# include <__fwd/complex.h>
264265
# include <__fwd/tuple.h>
265266
# include <__tuple/tuple_element.h>

libcxx/test/std/numerics/complex.number/complex.tuple/tuple_element.compile.pass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
#include <complex>
1717
#include <concepts>
1818

19-
template <size_t I, typename C>
19+
template <std::size_t I, typename C>
2020
concept HasTupleElement = requires { std::tuple_element<I, C>{}; };
2121

2222
struct SomeObject {};

libcxx/test/std/numerics/complex.number/complex.tuple/tuple_size.compile.pass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ void test() {
2828
using C = std::complex<T>;
2929

3030
static_assert(HasTupleSize<C>);
31-
static_assert(std::same_as<typename std::tuple_size<C>::value_type, size_t>);
31+
static_assert(std::same_as<typename std::tuple_size<C>::value_type, std::size_t>);
3232
static_assert(std::tuple_size<C>() == 2);
3333
}
3434

0 commit comments

Comments
 (0)