220 4553 <CAFk2RUaTOwE-LcbOYXMRbd4hsNpdDSxUq8wFWKw-yff1_cK7ag@mail.gmail.com> article
Path: news.gmane.org!not-for-mail
From: Ville Voutilainen <ville.voutilainen@gmail.com>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: Re: N3558 :A standardized representation of
 Asynchronous operation
Date: Fri, 24 May 2013 23:07:43 +0300
Lines: 55
Approved: news@gmane.org
Message-ID: <CAFk2RUaTOwE-LcbOYXMRbd4hsNpdDSxUq8wFWKw-yff1_cK7ag@mail.gmail.com>
References: <519F9E48.7050700@wanadoo.fr>
	<c959abc7-55a0-4a6a-9b20-9752cbe63af0@isocpp.org>
	<519FB94F.7090703@wanadoo.fr>
	<CAPXezF-CetHBMQBWNeNFmAVvn159g9iwaK60WLBN7mW8+ZAjHw@mail.gmail.com>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: plane.gmane.org
Mime-Version: 1.0
Content-Type: multipart/alternative; boundary=001a11c1cffc0e703104dd7c5ae0
X-Trace: ger.gmane.org 1369426067 29194 80.91.229.3 (24 May 2013 20:07:47 GMT)
X-Complaints-To: usenet@ger.gmane.org
NNTP-Posting-Date: Fri, 24 May 2013 20:07:47 +0000 (UTC)
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBC5JHI7A7ALRBEER76GAKGQEIBGXIKA@isocpp.org Fri May 24 22:07:47 2013
Return-path: <std-proposals+bncBC5JHI7A7ALRBEER76GAKGQEIBGXIKA@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-ie0-f200.google.com ([209.85.223.200])
	by plane.gmane.org with esmtp (Exim 4.69)
	(envelope-from <std-proposals+bncBC5JHI7A7ALRBEER76GAKGQEIBGXIKA@isocpp.org>)
	id 1UfyHB-0004zY-9x
	for gclcip-std-proposals@m.gmane.org; Fri, 24 May 2013 22:07:45 +0200
Original-Received: by mail-ie0-f200.google.com with SMTP id 10sf19426910ied.3
        for <gclcip-std-proposals@m.gmane.org>; Fri, 24 May 2013 13:07:44 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20120113;
        h=x-beenthere:mime-version:in-reply-to:references:date:message-id
         :subject:from:to:x-original-sender:x-original-authentication-results
         :reply-to:precedence:mailing-list:list-id:x-google-group-id
         :list-post:list-help:list-archive:list-subscribe:list-unsubscribe
         :content-type;
        bh=YobnKODVMsWhXAkf922Vl/EzhMQqvqzvmdLpQo4v1bI=;
        b=S4Y2S3POuy5vEFp++NouJ1XwPed5aKdyPxFXANeWJWN1fSNfzdhpWWLyNXUkQSomr+
         V0W+pg365GFPOa/Fn2Zb1rUb754M48gftquXVL1AbVWtDKivlPeuO8ToM5p1zDYDYynx
         d5+z5UbSc0JDYQJvWtmiMo612xezxKqLg4XKw2/c9dsGOLw0vlDZU3Iok8u5GYSbvnf4
         guXqNYFuJ60u6s1oZDROJ2pFfyn4Xc57Rgv3irsnLR6Q8piglxldA7lqh7RM/XZsmJQd
         ococuw/v+6t37tEzSzLEzIHJgyyPp6ei8bwNlsSeyn4FVGV4bpyFO1U5+xgvlNPR9Uu+
         Q45g==
X-Received: by 10.182.153.102 with SMTP id vf6mr5524793obb.13.1369426064337;
        Fri, 24 May 2013 13:07:44 -0700 (PDT)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.182.42.231 with SMTP id r7ls1109475obl.23.gmail; Fri, 24 May
 2013 13:07:43 -0700 (PDT)
X-Received: by 10.60.124.18 with SMTP id me18mr12937328oeb.100.1369426063564;
        Fri, 24 May 2013 13:07:43 -0700 (PDT)
Original-Received: from mail-oa0-f49.google.com (mail-oa0-f49.google.com [209.85.219.49])
        by mx.google.com with ESMTPS id zb4si11790998obb.170.2013.05.24.13.07.43
        for <std-proposals@isocpp.org>
        (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128);
        Fri, 24 May 2013 13:07:43 -0700 (PDT)
Received-SPF: pass (google.com: domain of ville.voutilainen@gmail.com designates 209.85.219.49 as permitted sender) client-ip=209.85.219.49;
Original-Received: by mail-oa0-f49.google.com with SMTP id k14so6599567oag.22
        for <std-proposals@isocpp.org>; Fri, 24 May 2013 13:07:43 -0700 (PDT)
X-Received: by 10.182.29.169 with SMTP id l9mr10538696obh.73.1369426063419;
 Fri, 24 May 2013 13:07:43 -0700 (PDT)
Original-Received: by 10.76.131.170 with HTTP; Fri, 24 May 2013 13:07:43 -0700 (PDT)
In-Reply-To: <CAPXezF-CetHBMQBWNeNFmAVvn159g9iwaK60WLBN7mW8+ZAjHw@mail.gmail.com>
X-Original-Sender: ville.voutilainen@gmail.com
X-Original-Authentication-Results: mx.google.com;       spf=pass (google.com:
 domain of ville.voutilainen@gmail.com designates 209.85.219.49 as permitted
 sender) smtp.mail=ville.voutilainen@gmail.com;       dkim=pass header.i=@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: <http://groups.google.com/a/isocpp.org/group/std-proposals/post?hl=en>,
 <mailto:std-proposals@isocpp.org>
List-Help: <http://support.google.com/a/isocpp.org/bin/topic.py?hl=en&topic=25838>,
 <mailto:std-proposals+help@isocpp.org>
List-Archive: <http://groups.google.com/a/isocpp.org/group/std-proposals/?hl=en>
List-Subscribe: <http://groups.google.com/a/isocpp.org/group/std-proposals/subscribe?hl=en>,
 <mailto:std-proposals+subscribe@isocpp.org>
List-Unsubscribe: <http://groups.google.com/a/isocpp.org/group/std-proposals/subscribe?hl=en>,
 <mailto:googlegroups-manage+399137483710+unsubscribe@googlegroups.com>
Xref: news.gmane.org gmane.comp.lang.c++.isocpp.proposals:4553
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/4553>

--001a11c1cffc0e703104dd7c5ae0
Content-Type: text/plain; charset=ISO-8859-1

On 24 May 2013 22:46, Fernando Cacciola <fernando.cacciola@gmail.com> wrote:

> I understand what this solves. The drawback is that we need to to iterate
> over the vector of futures when the when_any function could know about the
> index of the future on the vector.
>
>> Returning future<pair<size_t, vector<future<R>>>> would provide
>> efficiency and safety.
>>
>> What if you had more than one simultaneous result?
>
>
Then the size_t gives you the one that was noticed first, and the rest are
still in the vector?

-- 

--- 
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 http://groups.google.com/a/isocpp.org/group/std-proposals/?hl=en.



--001a11c1cffc0e703104dd7c5ae0
Content-Type: text/html; charset=ISO-8859-1

<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On 24 May 2013 22:46, Fernando Cacciola <span dir="ltr">&lt;<a href="mailto:fernando.cacciola@gmail.com" target="_blank">fernando.cacciola@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div class="im">I understand what this solves. The drawback is that we need to to
    iterate over the vector of futures when the when_any function could
    know about the index of the future on the vector. <br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div bgcolor="#FFFFFF" text="#000000">
    Returning future&lt;pair&lt;size_t,
    vector&lt;future&lt;R&gt;&gt;&gt;&gt; would provide efficiency and
    safety.<span><font color="#888888"><br>
    <br></font></span></div></blockquote></div><div>What if you had more than one simultaneous result?<span class="HOEnZb"><font color="#888888"><br></font></span></div></div><span class="HOEnZb"><font color="#888888"><br>
</font></span></div></div></blockquote><div><br></div><div>Then the size_t gives you the one that was noticed first, and the rest are still in the vector? <br></div></div><br></div></div>

<p></p>

-- <br />
&nbsp;<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 email to std-proposals+unsubscribe@isocpp.org.<br />
To post to this group, send email to std-proposals@isocpp.org.<br />
Visit this group at <a href="http://groups.google.com/a/isocpp.org/group/std-proposals/?hl=en">http://groups.google.com/a/isocpp.org/group/std-proposals/?hl=en</a>.<br />
&nbsp;<br />
&nbsp;<br />

--001a11c1cffc0e703104dd7c5ae0--

.
