220 27705 <1893428.758yQJhokF@tjmaciei-mobl1> article
Path: news.gmane.org!.POSTED!not-for-mail
From: Thiago Macieira <thiago@macieira.org>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: Re: Extend the range-based for statement
Date: Mon, 08 Aug 2016 13:37:55 -0700
Lines: 20
Approved: news@gmane.org
Message-ID: <1893428.758yQJhokF@tjmaciei-mobl1>
References: <152c8499-aa2f-4e23-aeec-cd055f06a6da@isocpp.org> <57A8E703.5070402@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 1470688682 20716 195.159.176.226 (8 Aug 2016 20:38:02 GMT)
X-Complaints-To: usenet@blaine.gmane.org
NNTP-Posting-Date: Mon, 8 Aug 2016 20:38:02 +0000 (UTC)
User-Agent: KMail/5.2.3 (Linux/4.6.4-1-default; KDE/5.23.0; x86_64; ; )
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBCB4TK757YBRBJO3UO6QKGQETMGIPDA@isocpp.org Mon Aug 08 22:37:58 2016
Return-path: <std-proposals+bncBCB4TK757YBRBJO3UO6QKGQETMGIPDA@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-wm0-f70.google.com ([74.125.82.70])
	by blaine.gmane.org with esmtp (Exim 4.84_2)
	(envelope-from <std-proposals+bncBCB4TK757YBRBJO3UO6QKGQETMGIPDA@isocpp.org>)
	id 1bWrJ7-0005Go-K7
	for gclcip-std-proposals@m.gmane.org; Mon, 08 Aug 2016 22:37:57 +0200
Original-Received: by mail-wm0-f70.google.com with SMTP id u81sf2002223wmu.3
        for <gclcip-std-proposals@m.gmane.org>; Mon, 08 Aug 2016 13:37:58 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=isocpp-org.20150623.gappssmtp.com; s=20150623;
        h=from:to:subject:date:message-id:user-agent:in-reply-to:references
         :mime-version: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=DQ2qllq5m5h6IOuknjWFkca/gavmOZdsOWYrNbzmpaU=;
        b=SeaktUwd88nXNMVhhpUKs60xhH6xDOSW2W9O3H5uUjLWHDAx72RJZ873QaIULDU6gx
         h+wHGjgTvIkS4M9f+Gtz14TEBB8vN+plziB5L72A1D4cij/RJ3RgkBYI/7dPBdwbg5uV
         yXPZL9JjWZc8Fl+7MenvBpm4DCBi9/Y8Hqne9N19WGBIuuQ199e9KRMlbKsH3anrhcr9
         LiZbgNP18HaKXXWm+QgOPpih7PNxlZE5XfRCQ4GqUqdE1QRwlp/GV7sI7VjhbZbE3M6w
         Fy+R3pWya24nkoDtFaEo/Q78ZjsxBSa1jK5+/x1bWU0tuF3laBdKqvBWCwCK5JBRKilZ
         4nbw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20130820;
        h=x-gm-message-state:from:to:subject:date:message-id:user-agent
         :in-reply-to:references:mime-version: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=DQ2qllq5m5h6IOuknjWFkca/gavmOZdsOWYrNbzmpaU=;
        b=dW49Xjpvj5VWPY5QZIC/0z1MSxSGkR4DPgmNxWhp3n2guQXJG294xMrdzG6KpaI/Hh
         yJtXz4oHJkK791GYAG4g2rVSt4ohCjaf3xVnL1kfJ0jJ9X0Zg9Nl8wY/LVYDczgdATK/
         2jVCgBn638toSc4Kz4FqWvFzIhwDQ7e9ievIsWd93hl+QipRx9Nk7CG1s1c1DSFnse+J
         1FaelE2lQtbglpfGUxpkPUOxJHHJ16WvFSb1oERm8cFtdnw7serHIhk4EdpUsoK7NCsl
         m6eExyDDeQhUhNKDMRHqAjWbwL3EwOXes8rX2OIqHSzAchDbG+L3tPzadBAF7sLde63L
         1n9g==
X-Gm-Message-State: AEkoousoB/dHo6QRvnzO/uMYmOt832/jz44ZebV/dMk8aIln5ixwOn9H76ErtyrtN9oO2w==
X-Received: by 10.28.154.1 with SMTP id c1mr2814008wme.2.1470688678066;
        Mon, 08 Aug 2016 13:37:58 -0700 (PDT)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.28.137.4 with SMTP id l4ls2829757wmd.26.gmail; Mon, 08 Aug
 2016 13:37:57 -0700 (PDT)
X-Received: by 10.28.171.214 with SMTP id u205mr17021885wme.97.1470688677218;
        Mon, 08 Aug 2016 13:37:57 -0700 (PDT)
Original-Received: from gondolin.macieira.info (gondolin.macieira.info. [2a01:4f8:d13:f81:21c:14ff:fe01:12a3])
        by mx.google.com with ESMTP id x10si31698277wja.274.2016.08.08.13.37.57
        for <std-proposals@isocpp.org>;
        Mon, 08 Aug 2016 13:37:57 -0700 (PDT)
Received-SPF: pass (google.com: domain of thiago@macieira.org designates 2a01:4f8:d13:f81:21c:14ff:fe01:12a3 as permitted sender) client-ip=2a01:4f8:d13:f81:21c:14ff:fe01:12a3;
Original-Received: from tjmaciei-mobl1.localnet (jfdmzpr01-ext.jf.intel.com [134.134.139.70])
	by gondolin.macieira.info (Postfix) with ESMTPSA id CF39011A78B
	for <std-proposals@isocpp.org>; Mon,  8 Aug 2016 13:37:56 -0700 (PDT)
In-Reply-To: <57A8E703.5070402@gmail.com>
X-Original-Sender: thiago@macieira.org
X-Original-Authentication-Results: mx.google.com;       spf=pass (google.com:
 domain of thiago@macieira.org designates 2a01:4f8:d13:f81:21c:14ff:fe01:12a3
 as permitted sender) smtp.mailfrom=thiago@macieira.org
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:27705
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/27705>

On segunda-feira, 8 de agosto de 2016 16:09:39 PDT Matthew Woehlke wrote:
>   for(auto&& [x, y] : std::zip(long_list, std::pad(short_list, 0)))
> 
> (...where std::pad is a hypothetical function that returns elements of
> the input list until it runs out, then returns the filler element forever.)

This is an infinite loop:

	for (auto x : std::pad(short_list, 0))

-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
   Software Architect - Intel Open Source Technology Center

-- 
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/1893428.758yQJhokF%40tjmaciei-mobl1.

.
