Skip to content

[libc++] fix no-localisation ci failure on <complex> #145213

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions libcxx/include/complex
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 {};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down
Loading