From 02cbd79e4728319e0887ad7783297853b527bb13 Mon Sep 17 00:00:00 2001 From: Ville Voutilainen Date: Sat, 10 Oct 2020 13:57:17 +0300 Subject: [PATCH] libstdc++: Fix variant build on 32-bit targets [PR95904] libstdc++-v3/ChangeLog: * include/std/variant (__check_visitor_result): Use size_t for indexes. (__check_visitor_results): Likewise. --- libstdc++-v3/include/std/variant | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libstdc++-v3/include/std/variant b/libstdc++-v3/include/std/variant index b32e564fd41..a29c5bf513b 100644 --- a/libstdc++-v3/include/std/variant +++ b/libstdc++-v3/include/std/variant @@ -1714,7 +1714,7 @@ namespace __variant template constexpr inline bool __same_types = (is_same_v<_Tp, _Types> && ...); - template + template decltype(auto) __check_visitor_result(_Visitor&& __vis, _Variant&& __variant) { @@ -1722,7 +1722,7 @@ namespace __variant std::get<_Idx>(std::forward<_Variant>(__variant))); } - template + template constexpr bool __check_visitor_results(std::index_sequence<_Idxs...>) { return __same_types( -- 2.30.2