220 18000 <CAGg_6+NCZsW2y_H0_fqL5qVV+X7X5oLyeNcyWL6TL49jgn5bdQ@mail.gmail.com> article
Path: news.gmane.org!not-for-mail
From: Nevin Liber <nevin@eviloverlord.com>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: Re: First draft: Non-copyable call wrapper, std::unique_function
Date: Tue, 19 May 2015 15:02:48 -0500
Lines: 62
Approved: news@gmane.org
Message-ID: <CAGg_6+NCZsW2y_H0_fqL5qVV+X7X5oLyeNcyWL6TL49jgn5bdQ@mail.gmail.com>
References: <59ED9069-2650-44E2-B00E-0E56ED37B83D@gmail.com>
 <27a788e7-4912-4a58-8201-79138ddf15a3@isocpp.org> <CAGg_6+P=2BDzGGugjdAx1pKsAHxuxNyEXGi3rz-CA-st32mf0Q@mail.gmail.com>
 <e6f6357e-1206-4817-a439-4599b8da6f48@isocpp.org>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: plane.gmane.org
Mime-Version: 1.0
Content-Type: multipart/alternative; boundary=089e01419ad2dec34c051674cd20
X-Trace: ger.gmane.org 1432065812 18527 80.91.229.3 (19 May 2015 20:03:32 GMT)
X-Complaints-To: usenet@ger.gmane.org
NNTP-Posting-Date: Tue, 19 May 2015 20:03:32 +0000 (UTC)
To: "std-proposals@isocpp.org" <std-proposals@isocpp.org>
Original-X-From: std-proposals+bncBCE35H5S6IDBBEVO52VAKGQEU6AULQI@isocpp.org Tue May 19 22:03:32 2015
Return-path: <std-proposals+bncBCE35H5S6IDBBEVO52VAKGQEU6AULQI@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-wg0-f72.google.com ([74.125.82.72])
	by plane.gmane.org with esmtp (Exim 4.69)
	(envelope-from <std-proposals+bncBCE35H5S6IDBBEVO52VAKGQEU6AULQI@isocpp.org>)
	id 1Yunjf-0000NR-TL
	for gclcip-std-proposals@m.gmane.org; Tue, 19 May 2015 22:03:31 +0200
Original-Received: by wgtl5 with SMTP id l5sf9665041wgt.1
        for <gclcip-std-proposals@m.gmane.org>; Tue, 19 May 2015 13:03:31 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20130820;
        h=x-gm-message-state:mime-version:sender: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:list-post:list-help:list-archive:list-subscribe
         :list-unsubscribe;
        bh=15kZiTJ3zThBwfFapTTCEl788uNzKeJIkAfvPRE4w+g=;
        b=Wblf8aHihB+PxvngFNt0YEYiwXLYjm9pmzxRsSx8YiSec4GWrCTvaLaRcX3RIoaKLb
         GLWlhlNq+014hBWrWaiv15pvxay+phLNsdFuNBR3gAZCFhVNWWuHBGhOPf/2CaSiZ2dT
         tpF8DEWYhC2TQwjSbhNkGPCo/VLlMxaIp7ul4nwjMyOeWsu0Gi8uUU+EgTEeaSrSc1K1
         fqDFLmF1IfzbqU7cqXZDKDW8oQLdNJKR/bjCVNQN5iE/kdML5kBQBhMZZbqmGBpHG1cb
         Owzq4nGXknbvIvA3GHkh1Kjc7lilPFU1zWvx73DHMPEPXMCCzADSdYbkv6hTyrb/Mk1W
         4qtQ==
X-Gm-Message-State: ALoCoQmPksV/4PQ8AMGohRInNan5iBks6fwp+rEPWw7DlMgVnaRsK9wNy07Oz/GFtO3cThZwUCWb
X-Received: by 10.112.26.5 with SMTP id h5mr23393362lbg.4.1432065811469;
        Tue, 19 May 2015 13:03:31 -0700 (PDT)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.152.2.193 with SMTP id 1ls115000law.41.gmail; Tue, 19 May 2015
 13:03:29 -0700 (PDT)
X-Received: by 10.112.126.136 with SMTP id my8mr22917023lbb.18.1432065809800;
        Tue, 19 May 2015 13:03:29 -0700 (PDT)
Original-Received: from mail-la0-x22a.google.com (mail-la0-x22a.google.com. [2a00:1450:4010:c03::22a])
        by mx.google.com with ESMTPS id q1si9738007lbr.116.2015.05.19.13.03.29
        for <std-proposals@isocpp.org>
        (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
        Tue, 19 May 2015 13:03:29 -0700 (PDT)
Received-SPF: pass (google.com: domain of nliber@gmail.com designates 2a00:1450:4010:c03::22a as permitted sender) client-ip=2a00:1450:4010:c03::22a;
Original-Received: by lagr1 with SMTP id r1so41583272lag.0
        for <std-proposals@isocpp.org>; Tue, 19 May 2015 13:03:29 -0700 (PDT)
X-Received: by 10.152.5.98 with SMTP id r2mr11581391lar.101.1432065809496;
 Tue, 19 May 2015 13:03:29 -0700 (PDT)
Original-Sender: nliber@gmail.com
Original-Received: by 10.114.79.6 with HTTP; Tue, 19 May 2015 13:02:48 -0700 (PDT)
In-Reply-To: <e6f6357e-1206-4817-a439-4599b8da6f48@isocpp.org>
X-Original-Sender: nevin@eviloverlord.com
X-Original-Authentication-Results: mx.google.com;       spf=pass (google.com:
 domain of nliber@gmail.com designates 2a00:1450:4010:c03::22a as permitted
 sender) smtp.mail=nliber@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>, <mailto:std-proposals@isocpp.org>
List-Help: <http://support.google.com/a/isocpp.org/bin/topic.py?topic=25838>, <mailto:std-proposals+help@isocpp.org>
List-Archive: <http://groups.google.com/a/isocpp.org/group/std-proposals/>
List-Subscribe: <http://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>,
 <http://groups.google.com/a/isocpp.org/group/std-proposals/subscribe>
Xref: news.gmane.org gmane.comp.lang.c++.isocpp.proposals:18000
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/18000>

--089e01419ad2dec34c051674cd20
Content-Type: text/plain; charset=UTF-8

On 19 May 2015 at 14:40, Nicol Bolas <jmckesson@gmail.com> wrote:

> Well, the reason it's not noexcept is that `unique_function` is allowed to
> store non-moveable types. And since the type is erased (unlike, say,
> non-moveable std::vector), the only way to signal an error when you attempt
> to move it is to throw an exception.
>

The libc++ version of std::function has a noexcept move constructor, and
other implementers are looking to follow suit.
-- 
 Nevin ":-)" Liber  <mailto:nevin@eviloverlord.com>  (847) 691-1404

-- 

--- 
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/.

--089e01419ad2dec34c051674cd20
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">On 1=
9 May 2015 at 14:40, Nicol Bolas <span dir=3D"ltr">&lt;<a href=3D"mailto:jm=
ckesson@gmail.com" target=3D"_blank">jmckesson@gmail.com</a>&gt;</span> wro=
te:<br><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-=
left:1px #ccc solid;padding-left:1ex"><div dir=3D"ltr"><div>Well, the reaso=
n it&#39;s not noexcept is that `unique_function` is allowed to store non-m=
oveable types. And since the type is erased (unlike, say, non-moveable std:=
:vector), the only way to signal an error when you attempt to move it is to=
 throw an exception.=C2=A0</div></div></blockquote><div><br></div><div>The =
libc++ version of std::function has a noexcept move constructor, and other =
implementers are looking to follow suit.=C2=A0</div></div>-- <br><div class=
=3D"gmail_signature">=C2=A0Nevin &quot;:-)&quot; Liber=C2=A0 &lt;mailto:<a =
href=3D"mailto:nevin@eviloverlord.com" target=3D"_blank">nevin@eviloverlord=
..com</a>&gt;=C2=A0 (847) 691-1404</div>
</div></div>

<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"http://groups.google.com/a/isocpp.org/group/=
std-proposals/">http://groups.google.com/a/isocpp.org/group/std-proposals/<=
/a>.<br />

--089e01419ad2dec34c051674cd20--

.
