220 23742 <n7b7r1$uum$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: Fri, 15 Jan 2016 11:47:28 -0500
Lines: 36
Approved: news@gmane.org
Message-ID: <n7b7r1$uum$1@ger.gmane.org>
References: <569583AD.9050208@wanadoo.fr> <n78m0f$5al$1@ger.gmane.org> <5697E783.2020509@wanadoo.fr> <n78ptj$dt3$1@ger.gmane.org> <20160114221625.4931665.26873.3290@gmail.com> <n7b1oe$k1p$1@ger.gmane.org> <20160115161833.28475478.30124.3317@gmail.com>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: plane.gmane.org
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
X-Trace: ger.gmane.org 1452876488 32198 80.91.229.3 (15 Jan 2016 16:48:08 GMT)
X-Complaints-To: usenet@ger.gmane.org
NNTP-Posting-Date: Fri, 15 Jan 2016 16:48:08 +0000 (UTC)
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBC37LBFWUIFBBNWF4S2AKGQE26ZSZ6A@isocpp.org Fri Jan 15 17:47:58 2016
Return-path: <std-proposals+bncBC37LBFWUIFBBNWF4S2AKGQE26ZSZ6A@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-lf0-f69.google.com ([209.85.215.69])
	by plane.gmane.org with esmtp (Exim 4.69)
	(envelope-from <std-proposals+bncBC37LBFWUIFBBNWF4S2AKGQE26ZSZ6A@isocpp.org>)
	id 1aK7XU-0007gt-Dg
	for gclcip-std-proposals@m.gmane.org; Fri, 15 Jan 2016 17:47:52 +0100
Original-Received: by mail-lf0-f69.google.com with SMTP id k69sf65640081lfg.3
        for <gclcip-std-proposals@m.gmane.org>; Fri, 15 Jan 2016 08:47:52 -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:content-transfer-encoding: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=ZGoqWzaDL0b14FWSJfpWSt+Pj59lvTfdhyFaKINZWrM=;
        b=uxxDRysySdRUzWQb1HooHf+AGf9vSSRQ2JG2+vQbxLE2EPMyG+rYSmMO12dc+XC4z6
         yf0mpv+F5T2KugHIvXspRPzML7DlaFFJgT7ibmfDEAR1rknMNIStVxZfXnKfbfUVLJkX
         B89OG812BlNDJHQIi1F99zR4coLqvywpXGa5RMdHVogX4OB5mtx7P3/ggr1T9EDu+hw5
         hkHeazB7bFNbsvkgA6/pcWgJQ6vV54mqQmOffXZqHoBKJYVnLM8fW74RmXU00dguzdeq
         qa7LqTsKuzN7u81v6udgA0rdCXowmkrX/7RTCqegkmgQpzw51g0rEr8 
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:content-transfer-encoding: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=ZGoqWzaDL0b14FWSJfpWSt+Pj59lvTfdhyFaKINZWrM=;
        b=lanVwvO0ump0jXQoJPTmC3CncpT3sq3bSF5/d7WZ9/v9EYKK0qySc5vepnRFBvvaMj
         TfFqUgX8EPHEDQpLIby1oIBLMaGcG7MGyQREK1mbPH2hKmXW54KN1bq1xOeHPrGB3Bs/
         KJi4CVZtp8EB8tU3RFR8OlOYRtfndOvQNJuYabvcqylz83kUceejFc+/68AdtoVxZv3z
         xrrIcQPBHbXrKc7yF4H04UCYnk2QhCq8hkhPVQ9qym75BXBw7CKC0NY+q/Xd3iAlbahM
         CLyT2Bx+udej+TfpjYBxGysPHIcA5t45PTCz4iYfC5+UbwhmpBB 
X-Gm-Message-State: ALoCoQlDbH5UgAAbxhGu720xyCGNS9LqRlxvgXTw9FMQMlp8eL5qk+CsTLBjMmdHSXxI3imFIRPz6Hm75eD1JOphdozyCNo02A==
X-Received: by 10.25.131.150 with SMTP id f144mr1325400lfd.6.1452876471838;
        Fri, 15 Jan 2016 08:47:51 -0800 (PST)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.25.144.140 with SMTP id s134ls240386lfd.91.gmail; Fri, 15 Jan
 2016 08:47:50 -0800 (PST)
X-Received: by 10.112.139.164 with SMTP id qz4mr3569571lbb.41.1452876469984;
        Fri, 15 Jan 2016 08:47:49 -0800 (PST)
Original-Received: from plane.gmane.org (plane.gmane.org. [80.91.229.3])
        by mx.google.com with ESMTPS id ue7si6118868lbc.83.2016.01.15.08.47.49
        for <std-proposals@isocpp.org>
        (version=TLS1 cipher=AES128-SHA bits=128/128);
        Fri, 15 Jan 2016 08:47:49 -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 1aK7XE-0007Tb-Gi
	for std-proposals@isocpp.org; Fri, 15 Jan 2016 17:47:36 +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>; Fri, 15 Jan 2016 17:47:36 +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>; Fri, 15 Jan 2016 17:47:36 +0100
X-Injected-Via-Gmane: http://gmane.org/
Original-Lines: 22
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: <20160115161833.28475478.30124.3317@gmail.com>
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:23742
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/23742>

On 2016-01-15 11:18, Tony V E wrote:
> Yes I understand nothing precludes it. I wonder if there is value in=20
> it. Whether it has value might sway which way I'd like to see things
> implemented.
>=20
> For example, if it had value, then *always* (ie mandating)=20
> calculating size from get would be bad. =E2=80=8EOn the other hand, if we=
=20
> want to prevent that craziness, maybe we should mandate it.

IMHO *always* calculating is bad for reasons that Vicente already gave
:-). Ergo, I don't think we should mandate that. Perhaps we could
somehow enforce that get<O..N-1>(T) (N =3D=3D tuple_size<T>()) must work an=
d
get<N>(T) must not, but that seems complicated and excessive. I feel
like in this case it's sufficient to say "don't do that" if it would
break things.

As to whether or not it's interesting to have get<N>(T) work for one or
more values of N > tuple_size<T>(), I'm not strongly opinionated. It
doesn't sound inherently crazy to me, FWIW.

--=20
Matthew

--=20

---=20
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 e=
mail 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-propos=
als/.

.
