220 3537 <f4744397-9f90-40b2-8df8-2ff01b8bb92d@isocpp.org> article
Path: news.gmane.org!not-for-mail
From: lcidfire@gmail.com
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: N3558: Add (fast) non-checking invocation operator to std::future
Date: Wed, 3 Apr 2013 07:17:06 -0700 (PDT)
Lines: 57
Approved: news@gmane.org
Message-ID: <f4744397-9f90-40b2-8df8-2ff01b8bb92d@isocpp.org>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: plane.gmane.org
Mime-Version: 1.0
Content-Type: multipart/alternative; 
	boundary="----=_Part_478_5916169.1364998626667"
X-Trace: ger.gmane.org 1364998634 14630 80.91.229.3 (3 Apr 2013 14:17:14 GMT)
X-Complaints-To: usenet@ger.gmane.org
NNTP-Posting-Date: Wed, 3 Apr 2013 14:17:14 +0000 (UTC)
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBDQNNZXYSYDRBZPT6CFAKGQEC5EVRCQ@isocpp.org Wed Apr 03 16:17:39 2013
Return-path: <std-proposals+bncBDQNNZXYSYDRBZPT6CFAKGQEC5EVRCQ@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-ye0-f200.google.com ([209.85.213.200])
	by plane.gmane.org with esmtp (Exim 4.69)
	(envelope-from <std-proposals+bncBDQNNZXYSYDRBZPT6CFAKGQEC5EVRCQ@isocpp.org>)
	id 1UNOVL-000596-1z
	for gclcip-std-proposals@m.gmane.org; Wed, 03 Apr 2013 16:17:35 +0200
Original-Received: by mail-ye0-f200.google.com with SMTP id r11sf2100296yen.11
        for <gclcip-std-proposals@m.gmane.org>; Wed, 03 Apr 2013 07:17:09 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20120113;
        h=x-received:x-beenthere:x-received:date:from:to:message-id:subject
         :mime-version:x-original-sender:reply-to:precedence:mailing-list
         :list-id:x-google-group-id:list-post:list-help:list-archive
         :list-subscribe:list-unsubscribe:content-type;
        bh=KWHUA8IG77jDfToCq6JEzzYtmBxgqqENKAJyoh5Y/Zg=;
        b=iT6n1zTGuJmfzMGr+HRm09dJgyB8XN+fjzrJLe0qGtTqumV9UKQKQzPh02OmtGwxIf
         xido/cf5kHIydUjboo/kUhtGCkTVX5fWxLv6g0EguLHteXQvK5AZJ5EyefQJK2qiV/1D
         VX3C045tMkhEgTl9cG7Sci5YKBY736Xp4zK6fnl3QQPYmFY7EkbOKafRwEp7ihltN/x1
         p8zc51OeWuyP66GDRpjk8cmSQq/ZT/Z4oDJXzytHLYcvhWRHR2EKky59HQdcX10gnD+o
         m2oYpgcmEucrGhe6l/RwP8DK4/oMU1BZtNQjy6ufBogFMsCDLgYuK44WusPal/kylj5i
         YURw==
X-Received: by 10.236.138.1 with SMTP id z1mr832450yhi.13.1364998629776;
        Wed, 03 Apr 2013 07:17:09 -0700 (PDT)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.49.35.241 with SMTP id l17ls917113qej.99.gmail; Wed, 03 Apr
 2013 07:17:07 -0700 (PDT)
X-Received: by 10.49.37.39 with SMTP id v7mr144591qej.27.1364998627492;
        Wed, 03 Apr 2013 07:17:07 -0700 (PDT)
X-Original-Sender: lcidfire@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:3537
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/3537>

------=_Part_478_5916169.1364998626667
Content-Type: text/plain; charset=ISO-8859-1

Since I am beginning to code using the N3558 extension I wonder whether 
std::future could use another retrieval operator.
When using containers one can choose to use std::vector::operator[] or 
std::vector::at. Similarly, using std::future::get could get a 
non-checking/waiting variant with std::future::operator(), Personally I 
would prefer this because calling std::future::get in a then-lambda just 
looks wrong (semantically) because in my head this get function is 
associated with (possible) waiting/blocking.

-- 

--- 
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.



------=_Part_478_5916169.1364998626667
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

Since I am beginning to code using the N3558 extension I wonder whether <fo=
nt face=3D"courier new, monospace">std::future</font> could use another ret=
rieval operator.<div>When using containers one can choose to use <font face=
=3D"courier new, monospace">std::vector::operator[]</font> or <font face=3D=
"courier new, monospace">std::vector::at</font>. Similarly, using <font fac=
e=3D"courier new, monospace">std::future::get</font> could get a non-checki=
ng/waiting variant with <font face=3D"courier new, monospace">std::future::=
operator()</font>, Personally I would prefer this because calling <font fac=
e=3D"courier new, monospace">std::future::get </font>in a <font face=3D"cou=
rier new, monospace">then</font>-lambda just looks wrong (semantically) bec=
ause in my head this <font face=3D"courier new, monospace">get</font> funct=
ion is associated with (possible) waiting/blocking.</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 e=
mail 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=3D"http://groups.google.com/a/isocpp.org/group/=
std-proposals/?hl=3Den">http://groups.google.com/a/isocpp.org/group/std-pro=
posals/?hl=3Den</a>.<br />
&nbsp;<br />
&nbsp;<br />

------=_Part_478_5916169.1364998626667--

.
