220 24333 <CA+wfc18LVMDXhRYhkw0PxeOmPiOoqVteF7V+40EdOOYb2K1snA@mail.gmail.com> article
Path: news.gmane.org!not-for-mail
From: Oliver Kowalke <oliver.kowalke@gmail.com>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: Re: [tuple] extracting tuples out of a tuple
Date: Fri, 12 Feb 2016 17:30:59 +0100
Lines: 61
Approved: news@gmane.org
Message-ID: <CA+wfc18LVMDXhRYhkw0PxeOmPiOoqVteF7V+40EdOOYb2K1snA@mail.gmail.com>
References: <CA+wfc1-FFqOJ9OSme_SpJAmGz+cshbMDVi_dLrF1ztbzkTN-WQ@mail.gmail.com>
 <n9ksdc$4so$1@ger.gmane.org>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: plane.gmane.org
Mime-Version: 1.0
Content-Type: multipart/alternative; boundary=089e011602f864ab29052b9532ce
X-Trace: ger.gmane.org 1455294687 28833 80.91.229.3 (12 Feb 2016 16:31:27 GMT)
X-Complaints-To: usenet@ger.gmane.org
NNTP-Posting-Date: Fri, 12 Feb 2016 16:31:27 +0000 (UTC)
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBCLZHP5J7MHRBWER7C2QKGQE3BJR3FA@isocpp.org Fri Feb 12 17:31:24 2016
Return-path: <std-proposals+bncBCLZHP5J7MHRBWER7C2QKGQE3BJR3FA@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-ob0-f198.google.com ([209.85.214.198])
	by plane.gmane.org with esmtp (Exim 4.69)
	(envelope-from <std-proposals+bncBCLZHP5J7MHRBWER7C2QKGQE3BJR3FA@isocpp.org>)
	id 1aUGcu-0003Hc-8H
	for gclcip-std-proposals@m.gmane.org; Fri, 12 Feb 2016 17:31:24 +0100
Original-Received: by mail-ob0-f198.google.com with SMTP id x5sf194128563obg.2
        for <gclcip-std-proposals@m.gmane.org>; Fri, 12 Feb 2016 08:31:23 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=isocpp-org.20150623.gappssmtp.com; s=20150623;
        h=mime-version:in-reply-to:references:from:date:message-id:subject:to
         :content-type: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=U2s6Xzpltb6o19gE16Ph+hqcCT4iHpUQad3XOQafRww=;
        b=hqxgUYyQsZOGsgYGbYHIociZGf2E9LMl5AAjmhBLXY+bnfxSk27zDHUQWYBvJ3DlnG
         BjJJFNWStaAGH8AwpDl3H3PPyWqjyx6CYyAOsB1KICECY/hOH++a675kVpT5VE+v0rxu
         q4fcZ+6uUbCt0j2ymPMsjpXvix2fGLQx1KC2Ohb3g5+2Uww8kBSNciTc0uB3HJQ04cZe
         oh1TFVzW6uXhteK1D7Z4BWy9081P0az6MbKl4UpAD6vRSLeg4M/Pm5HxlzGCVDluxqje
         8cMN191m3cCwPhW7zMCObmZgDGiGOUmBFh9Gs472xZrma6As0FDcFlsQm2W5ghD+7ZwN
         cDNg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20130820;
        h=x-gm-message-state:mime-version:in-reply-to:references:from:date
         :message-id:subject:to:content-type: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=U2s6Xzpltb6o19gE16Ph+hqcCT4iHpUQad3XOQafRww=;
        b=bhxZD0PUXXSOpqByvYJ7tYFN6wOCrgKHLoPokLPl5To8mbwZCP397v9SxY/PIiHZlI
         rNttc3IrjtSNA5FVCmiEMhYwCN/EKbBIoWVuurydSxXSmGDn230Jmn3rHJbYlHKNiK+0
         +lr5x+DQ1ivNqgGczYKeN6fMJhbVK0AjCo7+ajwHTopIljX4nJdY8JbnbhTZ5u1wjcuO
         ol3vBgmb38Bj1cigPBaT1kzmcU/Rz4JhXmWNzI6VGQA1bo2oqP4++k1rsJgC5zZL9NPf
         k9mNSw2Xyf0xxKYqDlEHWgzOhJfI29Y3s/V3gteiQexd1KvebTHqv/R2QD9TPFmpQHjg
         +MJQ==
X-Gm-Message-State: AG10YOQNMSsdqrAg2WwpoXOQZuaePMaBIfVZhMIIcv6MH853FyxjJudGe7BcH4vVkP8AWw==
X-Received: by 10.50.13.101 with SMTP id g5mr4308351igc.6.1455294683449;
        Fri, 12 Feb 2016 08:31:23 -0800 (PST)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.182.241.101 with SMTP id wh5ls824846obc.3.gmail; Fri, 12 Feb
 2016 08:31:19 -0800 (PST)
X-Received: by 10.202.78.21 with SMTP id c21mr1793137oib.136.1455294679763;
        Fri, 12 Feb 2016 08:31:19 -0800 (PST)
Original-Received: from mail-ob0-x22d.google.com (mail-ob0-x22d.google.com. [2607:f8b0:4003:c01::22d])
        by mx.google.com with ESMTPS id v129si4041254oia.108.2016.02.12.08.31.19
        for <std-proposals@isocpp.org>
        (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
        Fri, 12 Feb 2016 08:31:19 -0800 (PST)
Received-SPF: pass (google.com: domain of oliver.kowalke@gmail.com designates 2607:f8b0:4003:c01::22d as permitted sender) client-ip=2607:f8b0:4003:c01::22d;
Original-Received: by mail-ob0-x22d.google.com with SMTP id xk3so127806043obc.2
        for <std-proposals@isocpp.org>; Fri, 12 Feb 2016 08:31:19 -0800 (PST)
X-Received: by 10.182.103.167 with SMTP id fx7mr1995180obb.36.1455294679130;
 Fri, 12 Feb 2016 08:31:19 -0800 (PST)
Original-Received: by 10.76.26.82 with HTTP; Fri, 12 Feb 2016 08:30:59 -0800 (PST)
In-Reply-To: <n9ksdc$4so$1@ger.gmane.org>
X-Original-Sender: oliver.kowalke@gmail.com
X-Original-Authentication-Results: mx.google.com;       spf=pass (google.com:
 domain of oliver.kowalke@gmail.com designates 2607:f8b0:4003:c01::22d as
 permitted sender) smtp.mailfrom=oliver.kowalke@gmail.com;       dkim=pass
 header.i=@gmail.com;       dmarc=pass (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:24333
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/24333>

--089e011602f864ab29052b9532ce
Content-Type: text/plain; charset=UTF-8

2016-02-12 16:06 GMT+01:00 Matthew Woehlke <mwoehlke.floss@gmail.com>:

>
> I'm not a fan of using magical references to do indirect assignment,
> i.e. any of your proposals, but especially `split`. All of these seem
> backwards, i.e. should be `tpl1 = head<3>(tpl);` instead.
>

I've had std::tie() in mind,

int i...;
X x...;
std::tie( i, x) = get_tuple();

-- 

--- 
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/.

--089e011602f864ab29052b9532ce
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div class=3D"gmail_extra"><div class=3D"gmail_quote">2016=
-02-12 16:06 GMT+01:00 Matthew Woehlke <span dir=3D"ltr">&lt;<a href=3D"mai=
lto:mwoehlke.floss@gmail.com" target=3D"_blank">mwoehlke.floss@gmail.com</a=
>&gt;</span>:<br><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8=
ex;border-left:1px #ccc solid;padding-left:1ex"><br>
I&#39;m not a fan of using magical references to do indirect assignment,<br=
>
i.e. any of your proposals, but especially `split`. All of these seem<br>
backwards, i.e. should be `tpl1 =3D head&lt;3&gt;(tpl);` instead.<br></bloc=
kquote></div><br></div><div class=3D"gmail_extra">I&#39;ve had std::tie() i=
n mind,<br><br></div><div class=3D"gmail_extra">int i...;<br>X x...;<br></d=
iv><div class=3D"gmail_extra">std::tie( i, x) =3D get_tuple();<br></div></d=
iv>

<p></p>

-- <br />
<br />
--- <br />
You received this message because you are subscribed to the Google Groups &=
quot;ISO C++ Standard - Future Proposals&quot; group.<br />
To unsubscribe from this group and stop receiving emails from it, send an e=
mail to <a href=3D"mailto:std-proposals+unsubscribe@isocpp.org">std-proposa=
ls+unsubscribe@isocpp.org</a>.<br />
To post to this group, send email to <a href=3D"mailto:std-proposals@isocpp=
..org">std-proposals@isocpp.org</a>.<br />
Visit this group at <a href=3D"https://groups.google.com/a/isocpp.org/group=
/std-proposals/">https://groups.google.com/a/isocpp.org/group/std-proposals=
/</a>.<br />

--089e011602f864ab29052b9532ce--

.
