From bc4529db7db4a406dc7a8f4ceca763d888f17cca Mon Sep 17 00:00:00 2001 From: "Nicolas \"Pixel\" Noble" Date: Sat, 4 Jan 2025 15:56:34 -0800 Subject: [PATCH] Fixing eastl's variant. --- third_party/EASTL/include/EASTL/variant.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/third_party/EASTL/include/EASTL/variant.h b/third_party/EASTL/include/EASTL/variant.h index 6e7792831..5ee54e8ac 100644 --- a/third_party/EASTL/include/EASTL/variant.h +++ b/third_party/EASTL/include/EASTL/variant.h @@ -637,10 +637,10 @@ namespace eastl /////////////////////////////////////////////////////////////////////////// // 20.7.4, value access // - template > + template > EA_CONSTEXPR bool holds_alternative(const variant& v) EA_NOEXCEPT { - // ssize_t template parameter because the value can be negative + // EASTL_SSIZE_T template parameter because the value can be negative return I == variant_npos ? false : (v.index() == I); } @@ -858,7 +858,7 @@ namespace eastl // template >, - ssize_t I = meta::get_type_index_v, Types...>, + EASTL_SSIZE_T I = meta::get_type_index_v, Types...>, typename = enable_if_t, variant> && eastl::is_assignable_v && eastl::is_constructible_v>> EA_CPP14_CONSTEXPR variant& operator=(T&& t)