public inbox for libstdc++-cvs@sourceware.org
help / color / mirror / Atom feed
From: Ville Voutilainen <ville@gcc.gnu.org>
To: gcc-cvs@gcc.gnu.org, libstdc++-cvs@gcc.gnu.org
Subject: [gcc r11-3763] libstdc++: Fix variant build on 32-bit targets [PR95904]
Date: Sat, 10 Oct 2020 11:04:26 +0000 (GMT)	[thread overview]
Message-ID: <20201010110426.7EE133857C52@sourceware.org> (raw)

https://gcc.gnu.org/g:02cbd79e4728319e0887ad7783297853b527bb13

commit r11-3763-g02cbd79e4728319e0887ad7783297853b527bb13
Author: Ville Voutilainen <ville.voutilainen@gmail.com>
Date:   Sat Oct 10 13:57:17 2020 +0300

    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.

Diff:
---
 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<typename _Tp, typename... _Types>
      constexpr inline bool __same_types = (is_same_v<_Tp, _Types> && ...);
 
-  template <unsigned long int _Idx, typename _Visitor, typename _Variant>
+  template <size_t _Idx, typename _Visitor, typename _Variant>
     decltype(auto)
     __check_visitor_result(_Visitor&& __vis, _Variant&& __variant)
     {
@@ -1722,7 +1722,7 @@ namespace __variant
 			   std::get<_Idx>(std::forward<_Variant>(__variant)));
     }
 
-  template <typename _Visitor, typename _Variant, unsigned long int... _Idxs>
+  template <typename _Visitor, typename _Variant, size_t... _Idxs>
     constexpr bool __check_visitor_results(std::index_sequence<_Idxs...>)
     {
       return __same_types<decltype(__check_visitor_result<_Idxs>(


                 reply	other threads:[~2020-10-10 11:04 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20201010110426.7EE133857C52@sourceware.org \
    --to=ville@gcc.gnu.org \
    --cc=gcc-cvs@gcc.gnu.org \
    --cc=libstdc++-cvs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).