220 18007 <E6583DF9-6758-47C1-ABD0-A48BC28A0320@mac.com> article
Path: news.gmane.org!not-for-mail
From: David Krauss <potswa@mac.com>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: First draft: Non-copyable call wrapper, std::unique_function
Date: Wed, 20 May 2015 07:16:02 +0800
Lines: 23
Approved: news@gmane.org
Message-ID: <E6583DF9-6758-47C1-ABD0-A48BC28A0320@mac.com>
References: <59ED9069-2650-44E2-B00E-0E56ED37B83D@gmail.com>
 <4f0124c9-aa8e-4d40-b10e-7b3bee362398@isocpp.org>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: plane.gmane.org
Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2098\))
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
X-Trace: ger.gmane.org 1432077393 27678 80.91.229.3 (19 May 2015 23:16:33 GMT)
X-Complaints-To: usenet@ger.gmane.org
NNTP-Posting-Date: Tue, 19 May 2015 23:16:33 +0000 (UTC)
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBAABBRUI56VAKGQEITGNFIY@isocpp.org Wed May 20 01:16:24 2015
Return-path: <std-proposals+bncBAABBRUI56VAKGQEITGNFIY@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-qg0-f70.google.com ([209.85.192.70])
	by plane.gmane.org with esmtp (Exim 4.69)
	(envelope-from <std-proposals+bncBAABBRUI56VAKGQEITGNFIY@isocpp.org>)
	id 1YuqkK-0005gq-2b
	for gclcip-std-proposals@m.gmane.org; Wed, 20 May 2015 01:16:24 +0200
Original-Received: by qgew3 with SMTP id w3sf22045618qge.0
        for <gclcip-std-proposals@m.gmane.org>; Tue, 19 May 2015 16:16:23 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20130820;
        h=x-gm-message-state:content-type:mime-version:subject:from
         :in-reply-to:date:content-transfer-encoding:message-id:references:to
         :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=a+JN3K3ee59JkR3kDgwL+Mz/ME0B3gb22N7+v8VH7qE=;
        b=I0SijlZmA/bcRzeSxT696pjb4f7G4rHiJS2Bw/5oCjCyBu1B5nF0Df9v145NlyntlQ
         q0wnHfIU17y+9ffTWTSzFwn5dhMFssUgZ7ct9FAjtrmxfbnkAaYLUnvTwLcUv58Asn//
         Gi8xgejJaV/BuWQl6e7sIMlbZSrgb2MKZjZ/kwpNTipXf4DuLWP1sjn5DNHdb4Rs8K8s
         c/GIj90bsdMf53Qnl/vX5Epw7zN5WvObL5bWHRmISUtZmklXN7lqcZdYj1IcTPo/z0tO
         EL/WEN53sIFspo8G9dNl3ERdl+i5WA0b+KZhDxMw/uVajE35pQJi33oA55IerCvQq6wO
         0q8A==
X-Gm-Message-State: ALoCoQkSjugG1uZVg24ook70R/ycwNGAkbfkHJ15vYDqUEELwUbjbEa3pq8SPfFvlpv1E1Ygjr3r
X-Received: by 10.236.17.138 with SMTP id j10mr44434850yhj.42.1432077383059;
        Tue, 19 May 2015 16:16:23 -0700 (PDT)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.50.67.74 with SMTP id l10ls358835igt.23.gmail; Tue, 19 May
 2015 16:16:22 -0700 (PDT)
X-Received: by 10.70.95.228 with SMTP id dn4mr58521053pdb.89.1432077382279;
        Tue, 19 May 2015 16:16:22 -0700 (PDT)
Original-Received: from nk11p04mm-asmtp001.mac.com (nk11p04mm-asmtpout001.mac.com. [17.158.236.236])
        by mx.google.com with ESMTPS id kd10si23463513pbd.87.2015.05.19.16.16.22
        for <std-proposals@isocpp.org>
        (version=TLSv1.2 cipher=AES128-GCM-SHA256 bits=128/128);
        Tue, 19 May 2015 16:16:22 -0700 (PDT)
Received-SPF: pass (google.com: domain of potswa@mac.com designates 17.158.236.236 as permitted sender) client-ip=17.158.236.236;
Original-Received: from [172.20.10.2] (unknown [121.54.44.93])
 by nk11p04mm-asmtp001.mac.com
 (Oracle Communications Messaging Server 7.0.5.35.0 64bit (built Dec  4 2014))
 with ESMTPSA id <0NOM006H5DYQA000@nk11p04mm-asmtp001.mac.com> for
 std-proposals@isocpp.org; Tue, 19 May 2015 23:16:07 +0000 (GMT)
X-Proofpoint-Virus-Version: vendor=fsecure
 engine=2.50.10432:5.14.151,1.0.33,0.0.0000
 definitions=2015-05-19_08:2015-05-19,2015-05-19,1970-01-01 signatures=0
X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0
 suspectscore=1 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0
 reason=mlx scancount=1 engine=7.0.1-1412110000 definitions=main-1505190295
In-reply-to: <4f0124c9-aa8e-4d40-b10e-7b3bee362398@isocpp.org>
X-Mailer: Apple Mail (2.2098)
X-Original-Sender: potswa@mac.com
X-Original-Authentication-Results: mx.google.com;       spf=pass (google.com:
 domain of potswa@mac.com designates 17.158.236.236 as permitted sender)
 smtp.mail=potswa@mac.com;       dmarc=pass (p=NONE dis=NONE) header.from=mac.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:18007
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/18007>


> On 2015=E2=80=9305=E2=80=9320, at 1:26 AM, Casey Carter <cartec69@gmail.c=
om> wrote:
>=20
> unique_function would probably be more useful if it had operator(). Jokin=
g aside, there should probably be three overloads qualified by &, const&, a=
nd && respectively. That way you both avoid std::function's threadsafety pr=
oblems (http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2015/n4348.html)=
 and enable unique_function to usefully hold "one-shot" functions.

I=E2=80=99m writing a separate proposal for that.

--=20

---=20
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 e=
mail 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-proposa=
ls/.

.
