220 17988 <59ED9069-2650-44E2-B00E-0E56ED37B83D@gmail.com> article
Path: news.gmane.org!not-for-mail
From: David Krauss <potswa@gmail.com>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: First draft: Non-copyable call wrapper, std::unique_function
Date: Wed, 20 May 2015 00:06:56 +0800
Lines: 67
Approved: news@gmane.org
Message-ID: <59ED9069-2650-44E2-B00E-0E56ED37B83D@gmail.com>
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: multipart/alternative; boundary="Apple-Mail=_E1A6F440-2B6C-476F-8975-5972BDFBA697"
X-Trace: ger.gmane.org 1432051632 7495 80.91.229.3 (19 May 2015 16:07:12 GMT)
X-Complaints-To: usenet@ger.gmane.org
NNTP-Posting-Date: Tue, 19 May 2015 16:07:12 +0000 (UTC)
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBCW25A7E3QCRBJV75WVAKGQE673VRNY@isocpp.org Tue May 19 18:07:06 2015
Return-path: <std-proposals+bncBCW25A7E3QCRBJV75WVAKGQE673VRNY@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-ob0-f200.google.com ([209.85.214.200])
	by plane.gmane.org with esmtp (Exim 4.69)
	(envelope-from <std-proposals+bncBCW25A7E3QCRBJV75WVAKGQE673VRNY@isocpp.org>)
	id 1Yuk2q-0007lm-FM
	for gclcip-std-proposals@m.gmane.org; Tue, 19 May 2015 18:07:04 +0200
Original-Received: by obfe9 with SMTP id e9sf27837547obf.1
        for <gclcip-std-proposals@m.gmane.org>; Tue, 19 May 2015 09:07:03 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20130820;
        h=x-gm-message-state:from:content-type:subject:message-id:date:to
         :mime-version: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=PknpEK1R+V26krnwBrikWe3xnO1fmfcgdzS6IfZzWBk=;
        b=l0/+Y+p2UCIDxDVSi+ZtmCBmjjwHEea8jnOAXp25ESiWq/O7EFMhnQDSRsYnb7l+Zp
         uM8Yc8FhpsSQQ8zNDVLRDegXym1WMHVrtu+G8FhJRUuFFt7s4YZbOHgJUPiAk4f3yUJV
         atO4VZXqRfBpVLnApNVgcbBw7UYLiwHJ3fxhqYpORhJTuBau6UASVXsSDW9rO1UkxSU9
         EE3LcgGGgkUDrTLUsn0CLZWyzBYheeNLCd2+IxyJ/Z4hRaZtABNQY/8/mbU738V9M1RV
         pk3agB5ixsuB5JM+7ctioFowt4cl+8zQsvQK3oPCNTgerBAWbAnUts9zBzG00FVHMTmm
         171Q==
X-Gm-Message-State: ALoCoQnkuE25tlo5gpIWRKIGgIPXxWJzrb/9IFHfLLLzI+ZW482F4LnhhfALsMN3f22WHdul+H+x
X-Received: by 10.50.111.194 with SMTP id ik2mr26261798igb.4.1432051623492;
        Tue, 19 May 2015 09:07:03 -0700 (PDT)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.182.24.39 with SMTP id r7ls98331obf.9.gmail; Tue, 19 May 2015
 09:07:02 -0700 (PDT)
X-Received: by 10.202.213.70 with SMTP id m67mr23641566oig.26.1432051622815;
        Tue, 19 May 2015 09:07:02 -0700 (PDT)
Original-Received: from mail-ob0-x232.google.com (mail-ob0-x232.google.com. [2607:f8b0:4003:c01::232])
        by mx.google.com with ESMTPS id nq4si39530oeb.18.2015.05.19.09.07.02
        for <std-proposals@isocpp.org>
        (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
        Tue, 19 May 2015 09:07:02 -0700 (PDT)
Received-SPF: pass (google.com: domain of potswa@gmail.com designates 2607:f8b0:4003:c01::232 as permitted sender) client-ip=2607:f8b0:4003:c01::232;
Original-Received: by obfe9 with SMTP id e9so15901133obf.1
        for <std-proposals@isocpp.org>; Tue, 19 May 2015 09:07:02 -0700 (PDT)
X-Received: by 10.182.86.9 with SMTP id l9mr25098088obz.61.1432051622681;
        Tue, 19 May 2015 09:07:02 -0700 (PDT)
Original-Received: from [172.20.10.2] ([121.54.44.93])
        by mx.google.com with ESMTPSA id my16sm8348410obc.25.2015.05.19.09.07.00
        for <std-proposals@isocpp.org>
        (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128);
        Tue, 19 May 2015 09:07:01 -0700 (PDT)
X-Mailer: Apple Mail (2.2098)
X-Original-Sender: potswa@gmail.com
X-Original-Authentication-Results: mx.google.com;       spf=pass (google.com:
 domain of potswa@gmail.com designates 2607:f8b0:4003:c01::232 as permitted
 sender) smtp.mail=potswa@gmail.com;       dkim=pass header.i=@gmail.com;
       dmarc=pass (p=NONE dis=NONE) header.from=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:17988
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/17988>

--Apple-Mail=_E1A6F440-2B6C-476F-8975-5972BDFBA697
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; charset=UTF-8

Here=E2=80=99s a first draft of a non-copyable polymorphic call wrapper pro=
posal: http://bit.ly/uniqfun <http://bit.ly/uniqfun>

> This proposal describes a variation of std::function supporting non-copya=
ble target objects. It removes the copy constructor, and adds in-place cons=
truction of target objects.
>=20

All comments welcome. Doesn=E2=80=99t look too scary, I just might prototyp=
e it.

Inspired by the recent discussion, "smart function pointer proposal."

--=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/.

--Apple-Mail=_E1A6F440-2B6C-476F-8975-5972BDFBA697
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html; charset=UTF-8

<html><head><meta http-equiv=3D"Content-Type" content=3D"text/html charset=
=3Dutf-8"></head><body style=3D"word-wrap: break-word; -webkit-nbsp-mode: s=
pace; -webkit-line-break: after-white-space;" class=3D"">Here=E2=80=99s a f=
irst draft of a non-copyable polymorphic call wrapper proposal:&nbsp;<a hre=
f=3D"http://bit.ly/uniqfun" class=3D"">http://bit.ly/uniqfun</a><div class=
=3D""><br class=3D""></div><div class=3D""><blockquote type=3D"cite" class=
=3D""><p style=3D"margin: 0px 0px 16px; -webkit-text-stroke-color: rgb(0, 0=
, 0); -webkit-text-stroke-width: initial;" class=3D"">This proposal describ=
es a variation of <span style=3D"font-family: Courier; background-color: rg=
b(245, 245, 245);" class=3D"">std::function</span> supporting non-copyable =
target objects. It removes the copy constructor, and adds in-place construc=
tion of target objects.</p></blockquote></div><div class=3D"">All comments =
welcome. Doesn=E2=80=99t look too scary, I just might prototype it.</div><d=
iv class=3D""><br class=3D""></div><div class=3D"">Inspired by the recent d=
iscussion, "<font face=3D"Helvetica Neue" class=3D"">smart function pointer=
 proposal."</font></div></body></html>

<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 />

--Apple-Mail=_E1A6F440-2B6C-476F-8975-5972BDFBA697--

.
