220 32505 <CAFk2RUYeKYjhmX9fVwDaV7zJRLxAmJx=hSsgPWLMFJD+wTW3MQ@mail.gmail.com> article
Path: news.gmane.org!.POSTED!not-for-mail
From: Ville Voutilainen <ville.voutilainen@gmail.com>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: Re: Allow Structured Binding Outside of Variable Declaration
Date: Wed, 17 May 2017 01:49:09 +0300
Lines: 27
Approved: news@gmane.org
Message-ID: <CAFk2RUYeKYjhmX9fVwDaV7zJRLxAmJx=hSsgPWLMFJD+wTW3MQ@mail.gmail.com>
References: <e02d79e8-7d80-4614-bd25-e73fb43dad9d@isocpp.org>
 <10b21241-b683-44d5-82ce-90681b2643a4@isocpp.org> <CAFk2RUbf5skMEcsLd_hUiZrib2bGCvyrJbgsx9LV-rXaj=fBZw@mail.gmail.com>
 <CAFk2RUbgg7UMc_mFGKQZF7-PVVbEDsdoZoXL46oyxr+PLRTfvw@mail.gmail.com>
 <08ff73f1-6989-393e-ee4e-8158af2e7bed@honermann.net> <CAFk2RUaBhq7KVukgRMvqBMuBiBwZmCf+xZpD9jRtBberFoU2Rg@mail.gmail.com>
 <c70b0cd6-fa3e-d215-3fef-06eb231ed3cd@honermann.net> <CAFk2RUbiUZ4n_mXdBUTGEZSsh5C=Mf0hKbKu76PKzCCWnZfrgA@mail.gmail.com>
 <d184a83a-4f99-a8d2-6bba-1b8aeedd797c@honermann.net> <20170516164245.GA16348@fukushima.lysator.liu.se>
 <ffcb4ca3-5fb8-41b4-8b38-cfd287148cd5@honermann.net> <CAFk2RUY1AYOen-Rb8n6yzc1jsOiydbUCUDqLdKMPyiyiHnnO4w@mail.gmail.com>
 <c0bf3a06-53e5-3411-0967-b167da5d0dcd@honermann.net> <CAFk2RUYaNuKM=xhLTP_ZE97KvRUAJybUhaoFAmT+V_-7P3t1Mg@mail.gmail.com>
 <CAGsORuBgzhCGGPYAWjSDg40xhGnV_ghcVTAvn3xaBFz52vs7xw@mail.gmail.com>
 <CAFk2RUahRzietkqHtmPrRNSmEorfKF8TfiHGNAB_JDMhC4PU+g@mail.gmail.com> <CAGsORuDWRidpKi6nj5Bm8m+hHTy7PVKzzZFq_=vaA7XMdb3odw@mail.gmail.com>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: blaine.gmane.org
Mime-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
X-Trace: blaine.gmane.org 1494974954 15097 195.159.176.226 (16 May 2017 22:49:14 GMT)
X-Complaints-To: usenet@blaine.gmane.org
NNTP-Posting-Date: Tue, 16 May 2017 22:49:14 +0000 (UTC)
To: "ISO C++ Standard - Future Proposals" <std-proposals@isocpp.org>
Original-X-From: std-proposals+bncBC5JHI7A7ALRBZUD53EAKGQEK7ACXMY@isocpp.org Wed May 17 00:49:10 2017
Return-path: <std-proposals+bncBC5JHI7A7ALRBZUD53EAKGQEK7ACXMY@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-yw0-f198.google.com ([209.85.161.198])
	by blaine.gmane.org with esmtp (Exim 4.84_2)
	(envelope-from <std-proposals+bncBC5JHI7A7ALRBZUD53EAKGQEK7ACXMY@isocpp.org>)
	id 1dAlH7-0003es-Pe
	for gclcip-std-proposals@m.gmane.org; Wed, 17 May 2017 00:49:05 +0200
Original-Received: by mail-yw0-f198.google.com with SMTP id b68sf91603089ywe.0
        for <gclcip-std-proposals@m.gmane.org>; Tue, 16 May 2017 15:49:11 -0700 (PDT)
ARC-Seal: i=2; a=rsa-sha256; t=1494974951; cv=pass;
        d=google.com; s=arc-20160816;
        b=Ak/ooLPHsL9dGoTK/YwuR9Op1AeufOWCC6Pkj5tPhnEvn1/Cb2233uMmltBmL86IMD
         cfNl/TA1+WLaGVlrmyXBYmtQr6wAnzi81kH0gLYbxiGmsZIyH+UR4449AwBz13ZiDKF9
         Vy5CdFlqV1FkcPmQSio6zmjbQEyuR91kM9Yh7PixswFSOkVd120pgeOhrntF2e8FHMgm
         eJUtp9WjnbpaW1at8/2ysIYGYE3xg/QAjPN2nKMkDm5o/NEPIBT8bR1Zfm79CWNezPRP
         SwQHllSX8vBTrZvjilW5EaEzQJyQUAsywjB67Xi7tmrYylmClvdxxvrdLV2mDAz+RQWr
         Acbw==
ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816;
        h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post
         :list-id:mailing-list:precedence:reply-to:to:subject:message-id:date
         :from:references:in-reply-to:mime-version:arc-authentication-results
         :arc-message-signature:dkim-signature:arc-authentication-results;
        bh=hrXxyOTy+OYASqfCJCbPbDsfXwoK7djsZnA0iZw+wT8=;
        b=qPBz5fFkJpAZGyGqp/U5Ei+auEYdwCsG4OgKMXSMnBFlbkmR5mWwiWie8jw/E8lmkJ
         hsS/C90ntcem9FSlilzv/QrfWSoKPQo93j0BayArsohsCA2ozu/9/vB3tzBEghMxW4tS
         xtLvSCzkFINw9o9iiHsP6oikGkys6PKVjCYBx1hSMpNgEmSX8CVUxvKGlUj886t8zimV
         d5uKpNPW34GzmNRu6ZIPaORHZt65KTm2Faz7SBmAKFYgW5KR+RG2yoSMMNbwNBFaG46U
         pXc4IK5FZviLMs22A4FPjQbqdv7DAVGUSmmgvDYC44NgHeCy+XC5cHd58iUj270ZyIfm
         UJvA==
ARC-Authentication-Results: i=2; mx.google.com;
       dkim=pass header.i=@gmail.com;
       spf=pass (google.com: domain of ville.voutilainen@gmail.com designates 2607:f8b0:4003:c06::231 as permitted sender) smtp.mailfrom=ville.voutilainen@gmail.com;
       dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com
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
         :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=hrXxyOTy+OYASqfCJCbPbDsfXwoK7djsZnA0iZw+wT8=;
        b=BMHh2X7Rljnaq2zrDa1fyO24UrRf+nvnEYaoGwjOhSEAU4ZAcxjHaD22hFO5LNL6X0
         WRszVAKEdmMZ41PsX9krkjtLkvJN9WUzT9+WX8sG6z6LlZBxcAxI8JS+VfqvP1lQbnYo
         Bnxe+1ZGL0N38zCjo45kDrrVfLNJSLlPeJWpR691oqZ+fz676RvYEDwOLqp88ltjZ3gd
         CGGQ+5wAqb8ZAAsLMswhXTSoZGt2Zy/qYr3wlhNV0hzTRpd5gS6XXlkxubNYBtXgWF56
         AyDRhXwub38HaLaN73nI0IKoqGyn6vngzVs+hzg/YdM3QCk6HMX08+XlI27FZLSqj3Fp
         zRzg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20161025;
        h=x-gm-message-state:mime-version:in-reply-to:references:from:date
         :message-id:subject: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=hrXxyOTy+OYASqfCJCbPbDsfXwoK7djsZnA0iZw+wT8=;
        b=MiRW3WVYK0rbgbNOogY+o8Yfp4M4h04JIOwmLVfFOI5FuUEGCFDe9CR2ny0Q2cOIpv
         2vKPsvRzSNeeLmNhdvzOkThE+LrDp24EEJrT+u9EdRGYI02u/mcfx4wH59FOpsfN7EXt
         CLzLlZt2ucL8N+81WpZ+ZCmFPlcZMcEEgGa1aauc3sxaOLVaWuJsEAproaJAbRFqi4SY
         W7tfk7CQQIGV9s+7pAizcBiCZt/4IInLW5Kaf8HJql2ZrewUXgJTgpQjBxR3giV9nKAM
         2HMJOSNNezDUOH3IKXYxVaKOuZegu3qTb6CiPRT9Q6C3YK7QVxdBl0PeOnAs18aDp0tt
         rhuw==
X-Gm-Message-State: AODbwcApKQdCvgPPdYMC2zefXYRFhZad5G05zr1ja70iwaflp9rWkwXQ
	TJ/xJgJQACIfE2G+
X-Received: by 10.129.153.195 with SMTP id q186mr153278ywg.171.1494974951174;
        Tue, 16 May 2017 15:49:11 -0700 (PDT)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.157.31.39 with SMTP id x36ls2481357otd.25.gmail; Tue, 16 May
 2017 15:49:10 -0700 (PDT)
X-Received: by 10.157.20.250 with SMTP id r55mr251759otr.28.1494974950305;
        Tue, 16 May 2017 15:49:10 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; t=1494974950; cv=none;
        d=google.com; s=arc-20160816;
        b=U62xhCMcCKj4Ws85fp+LdIonehyDkuexC1xyfQFPO7M2rlBcTV66vDB7VZhpJqy1SC
         l1CVlWWBXarImVUwA5qEtAs8PuYJsnj9EQajt0inyQc8zJ0eDqWSkt2YnSLRDVx5Gi1q
         xdjHmlpRI2gLU14ljrzQdq5wj7biPHbYqFL4DBR48LOQDJryssDn4ZcFH5n5Fp7E603O
         YmcHfpDuHMnjgasked+M5qkSAdg+XICnCPQenvyk46DvNa91DK9E9uE7rxdhiAFafjZ8
         sCp9amUSnpmNsvZJnjemhJceHZkU4LQ9XtJ/dGetxD/3hIB+5QI0CUdgnVRTqPc8ticG
         sjyA==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816;
        h=to:subject:message-id:date:from:references:in-reply-to:mime-version
         :dkim-signature:arc-authentication-results;
        bh=lem8PDTQiHeFxoA1g1fQkGvPJwmZT8EOf1nintGyKsQ=;
        b=KNlIA2h6jrgdVsWy7VU79c0uqRs5JGQve1jYMVR+viou28S+b6J81WmJmaP9sCpiQt
         TEYwLr/JoIZHgD6EZOnh8R+v+91JJiAZ0HLTdeom5cwkl61iXnNuuB372jE8c8ze8x2r
         3BtylCYuDbWxRZ1OHENhGc4PViGpL6af8ooVJGayAahZsak6jrIjgtW5cO4j4Po52bKU
         hx1i7XNlQ8JC3ardTUuluYGoixe0m5aDxW/rds/lUePwUywpnf0CbUpRrFfEXEvFevFe
         MZ6yQGi8bAeJtt3NQGV3uo4Xu0outNiNCuLg15Ekn/lyVjXeSORhoM295ujG8v4qmoon
         BKMA==
ARC-Authentication-Results: i=1; mx.google.com;
       dkim=pass header.i=@gmail.com;
       spf=pass (google.com: domain of ville.voutilainen@gmail.com designates 2607:f8b0:4003:c06::231 as permitted sender) smtp.mailfrom=ville.voutilainen@gmail.com;
       dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com
Original-Received: from mail-oi0-x231.google.com (mail-oi0-x231.google.com. [2607:f8b0:4003:c06::231])
        by mx.google.com with ESMTPS id u19si75881otg.260.2017.05.16.15.49.10
        for <std-proposals@isocpp.org>
        (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
        Tue, 16 May 2017 15:49:10 -0700 (PDT)
Received-SPF: pass (google.com: domain of ville.voutilainen@gmail.com designates 2607:f8b0:4003:c06::231 as permitted sender) client-ip=2607:f8b0:4003:c06::231;
Original-Received: by mail-oi0-x231.google.com with SMTP id h4so44019231oib.3
        for <std-proposals@isocpp.org>; Tue, 16 May 2017 15:49:10 -0700 (PDT)
X-Received: by 10.157.68.199 with SMTP id p7mr255812otg.15.1494974949956; Tue,
 16 May 2017 15:49:09 -0700 (PDT)
Original-Received: by 10.157.17.253 with HTTP; Tue, 16 May 2017 15:49:09 -0700 (PDT)
In-Reply-To: <CAGsORuDWRidpKi6nj5Bm8m+hHTy7PVKzzZFq_=vaA7XMdb3odw@mail.gmail.com>
X-Original-Sender: ville.voutilainen@gmail.com
X-Original-Authentication-Results: mx.google.com;       dkim=pass
 header.i=@gmail.com;       spf=pass (google.com: domain of
 ville.voutilainen@gmail.com designates 2607:f8b0:4003:c06::231 as permitted
 sender) smtp.mailfrom=ville.voutilainen@gmail.com;       dmarc=pass (p=NONE
 sp=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-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:32505
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/32505>

On 17 May 2017 at 01:43, Zhihao Yuan <zy@miator.net> wrote:
>> > How about this
>> >
>> >   for (TupleLike<A, B> [x, y] : something) { ... }
>> >
>> > Where TupleLike is a concept.
>>
>> How does that help me specify the concrete types of the bindings?
>
>
> It does type-check, as same as you putting
>
>   static_assert(is_same_v<decltype(x), A>);
>
> in the loop.
>
> But it doesn't change the type object of the
> underlying object, or the type of the bindings.

I need to use some weird concept to check that the type of x is A?

-- 
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.
To view this discussion on the web visit https://groups.google.com/a/isocpp.org/d/msgid/std-proposals/CAFk2RUYeKYjhmX9fVwDaV7zJRLxAmJx%3DhSsgPWLMFJD%2BwTW3MQ%40mail.gmail.com.

.
