[libc++] Fix no-localisation CI failure on <complex> (#145213)

This commit is contained in:
Hui 2025-06-24 18:56:17 +01:00 committed by GitHub
parent 90828e00a0
commit 0b8f3cc6b7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 3 additions and 2 deletions

View File

@ -260,6 +260,7 @@ template<class T> complex<T> tanh (const complex<T>&);
# include <__cxx03/complex>
#else
# include <__config>
# include <__cstddef/size_t.h>
# include <__fwd/complex.h>
# include <__fwd/tuple.h>
# include <__tuple/tuple_element.h>

View File

@ -16,7 +16,7 @@
#include <complex>
#include <concepts>
template <size_t I, typename C>
template <std::size_t I, typename C>
concept HasTupleElement = requires { std::tuple_element<I, C>{}; };
struct SomeObject {};

View File

@ -28,7 +28,7 @@ void test() {
using C = std::complex<T>;
static_assert(HasTupleSize<C>);
static_assert(std::same_as<typename std::tuple_size<C>::value_type, size_t>);
static_assert(std::same_as<typename std::tuple_size<C>::value_type, std::size_t>);
static_assert(std::tuple_size<C>() == 2);
}