220 23713 <n78m0f$5al$1@ger.gmane.org> article
Path: news.gmane.org!not-for-mail
From: Matthew Woehlke <mwoehlke.floss@gmail.com>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: Default tuple-like access
Date: Thu, 14 Jan 2016 12:30:54 -0500
Lines: 30
Approved: news@gmane.org
Message-ID: <n78m0f$5al$1@ger.gmane.org>
References: <569583AD.9050208@wanadoo.fr>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: plane.gmane.org
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
X-Trace: ger.gmane.org 1452792703 6329 80.91.229.3 (14 Jan 2016 17:31:43 GMT)
X-Complaints-To: usenet@ger.gmane.org
NNTP-Posting-Date: Thu, 14 Jan 2016 17:31:43 +0000 (UTC)
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBC37LBFWUIFBB4NW362AKGQE73YR6NA@isocpp.org Thu Jan 14 18:31:34 2016
Return-path: <std-proposals+bncBC37LBFWUIFBB4NW362AKGQE73YR6NA@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-wm0-f72.google.com ([74.125.82.72])
	by plane.gmane.org with esmtp (Exim 4.69)
	(envelope-from <std-proposals+bncBC37LBFWUIFBB4NW362AKGQE73YR6NA@isocpp.org>)
	id 1aJlkB-0001nh-19
	for gclcip-std-proposals@m.gmane.org; Thu, 14 Jan 2016 18:31:31 +0100
Original-Received: by mail-wm0-f72.google.com with SMTP id b14sf107467946wmb.2
        for <gclcip-std-proposals@m.gmane.org>; Thu, 14 Jan 2016 09:31:30 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=isocpp-org.20150623.gappssmtp.com; s=20150623;
        h=to:from:subject:date:lines:message-id:references:mime-version
         :content-type:user-agent:in-reply-to:x-original-sender
         :x-original-authentication-results:reply-to:precedence:mailing-list
         :list-id:x-spam-checked-in-group:list-post:list-help:list-archive
         :list-subscribe:list-unsubscribe;
        bh=EtS4viZc07hRa2lLCjNXf9uCZvWppQytq0U3pXnI+WU=;
        b=FmshcHoD+kTgFGJguA39iIo6NYUwvujj03PqT3AS9LMKBa3D9mqea2yK4cG28cwVU8
         ww+QrdXIIlI30bYDeT31VkIT5Vqp0/u/v+tLZ2H2Ge8oTEfT2Fu6Zaz+QfOdYMdsWbtS
         DIL+VE4gOiIqeZIL20WGG1QMe/2tCc867uSexUtnxYqssm+GgP5hmAgvqRl0E0toQFRg
         2k9cnJbA/nRUoV7sMn2e5kgF7aplguLHPatPmyRjisvtXjmGs1lsum8sN0Gr5aDIn+D3
         OaDJUkkngEqQLGLLivNHUC1V5e9sho3W4vniErCmTG4h3GM6XsxXEsWJx9lOOEOeoOoc
         AOp 
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20130820;
        h=x-gm-message-state:to:from:subject:date:lines:message-id:references
         :mime-version:content-type:user-agent:in-reply-to:x-original-sender
         :x-original-authentication-results:reply-to:precedence:mailing-list
         :list-id:x-spam-checked-in-group:list-post:list-help:list-archive
         :list-subscribe:list-unsubscribe;
        bh=EtS4viZc07hRa2lLCjNXf9uCZvWppQytq0U3pXnI+WU=;
        b=j3ltPeZEaad5fRpo7eH65hLxU+hVTuv4q6ac43CZxcPFE0hyBVTNSecJ3YTmhX4Yiv
         kppiOjAXi4z4w4Qv8dE9If/wWMsxMdsgPdLJRXNbEglLCLMA6H0n5+ny79h2D9I7Kc2W
         Mi26kdfnfYFKKCN9eXgfWap/S5hdFj17oJM/o+uRKYmP4fy12nQ6eL8w/P02GhYgWRtR
         cQVOBjw7CniDQ91HhiaUcUMkvZzCHBHt/7lrr0U8qhTD81ozqxPrhyhITEU/th0MrFf4
         m1YJusyvS5caBCYapUzsrKwTH8Vh7dd03H4gIQDniHjdtwj7qHCi+pVQo5WkxR3D9sE1
         
X-Gm-Message-State: ALoCoQnu4LNFKTLybbfh/+sX2UHPKfCzCtbYQB9o4vmeAZjXUzt6ESpigsETL1mWOvUjkdOCIEgw7SjLCErb79gqLyk2MAGlYA==
X-Received: by 10.25.17.105 with SMTP id g102mr631754lfi.7.1452792690521;
        Thu, 14 Jan 2016 09:31:30 -0800 (PST)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.25.134.212 with SMTP id i203ls83339lfd.23.gmail; Thu, 14 Jan
 2016 09:31:28 -0800 (PST)
X-Received: by 10.25.20.221 with SMTP id 90mr1389284lfu.98.1452792688549;
        Thu, 14 Jan 2016 09:31:28 -0800 (PST)
Original-Received: from plane.gmane.org (plane.gmane.org. [80.91.229.3])
        by mx.google.com with ESMTPS id z8si3620870lfc.219.2016.01.14.09.31.28
        for <std-proposals@isocpp.org>
        (version=TLS1 cipher=AES128-SHA bits=128/128);
        Thu, 14 Jan 2016 09:31:28 -0800 (PST)
Received-SPF: pass (google.com: domain of gclcip-std-proposals@m.gmane.org designates 80.91.229.3 as permitted sender) client-ip=80.91.229.3;
Original-Received: from list by plane.gmane.org with local (Exim 4.69)
	(envelope-from <gclcip-std-proposals@m.gmane.org>)
	id 1aJlk3-0001h4-Ew
	for std-proposals@isocpp.org; Thu, 14 Jan 2016 18:31:23 +0100
Original-Received: from tripoint.kitware.com ([66.194.253.20])
        by main.gmane.org with esmtp (Gmexim 0.1 (Debian))
        id 1AlnuQ-0007hv-00
        for <std-proposals@isocpp.org>; Thu, 14 Jan 2016 18:31:23 +0100
Original-Received: from mwoehlke.floss by tripoint.kitware.com with local (Gmexim 0.1 (Debian))
        id 1AlnuQ-0007hv-00
        for <std-proposals@isocpp.org>; Thu, 14 Jan 2016 18:31:23 +0100
X-Injected-Via-Gmane: http://gmane.org/
Original-Lines: 21
Original-X-Complaints-To: usenet@ger.gmane.org
X-Gmane-NNTP-Posting-Host: tripoint.kitware.com
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0
In-Reply-To: <569583AD.9050208@wanadoo.fr>
X-Original-Sender: mwoehlke.floss@gmail.com
X-Original-Authentication-Results: mx.google.com;       spf=pass (google.com:
 domain of gclcip-std-proposals@m.gmane.org designates 80.91.229.3 as
 permitted sender) smtp.mailfrom=gclcip-std-proposals@m.gmane.org;
       dmarc=fail (p=NONE dis=NONE) header.from=gmail.com
Precedence: list
Mailing-list: list std-proposals@isocpp.org; contact std-proposals+owners@isocpp.org
List-ID: <std-proposals.isocpp.org>
X-Spam-Checked-In-Group: std-proposals@isocpp.org
X-Google-Group-Id: 399137483710
List-Post: <https://groups.google.com/a/isocpp.org/group/std-proposals/post>, <mailto:std-proposals@isocpp.org>
List-Help: <https://support.google.com/a/isocpp.org/bin/topic.py?topic=25838>, <mailto:std-proposals+help@isocpp.org>
List-Archive: <https://groups.google.com/a/isocpp.org/group/std-proposals/>
List-Subscribe: <https://groups.google.com/a/isocpp.org/group/std-proposals/subscribe>,
 <mailto:std-proposals+subscribe@isocpp.org>
List-Unsubscribe: <mailto:googlegroups-manage+399137483710+unsubscribe@googlegroups.com>,
 <https://groups.google.com/a/isocpp.org/group/std-proposals/subscribe>
Xref: news.gmane.org gmane.comp.lang.c++.isocpp.proposals:23713
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/23713>

On 2016-01-12 17:52, Vicente J. Botet Escriba wrote:
> I've been working on a proposal (see attached document)
> 
>  Default tuple-like access

May not be relevant at this time, as you aren't proposing wording yet,
but I'd still like to see the default implementation of tuple_size
defined in terms of 'the largest value N for which all get<0..N>(C) are
well formed' :-). Also, that tuple_size is defined for all C where
get<0>(C) is well-formed (i.e. looser restrictions for implicit
tuple_size than for implicit get<N>).

Explicit conversion to std::pair / std::tuple is not necessary if we
have an unpacking operator :-).

What's with the swap / hash_value stuff at the end? Copy/paste detritus?

Thanks for working on this!

-- 
Matthew

-- 

--- 
You received this message because you are subscribed to the Google Groups "ISO C++ Standard - Future Proposals" group.
To unsubscribe from this group and stop receiving emails from it, send an email to std-proposals+unsubscribe@isocpp.org.
To post to this group, send email to std-proposals@isocpp.org.
Visit this group at https://groups.google.com/a/isocpp.org/group/std-proposals/.

.
