220 26932 <CACGiwhGs-L-NRCc-gmAFrh2FrY7r+F3zxzr3wTdBkCmvvSiSug@mail.gmail.com> article
Path: news.gmane.org!not-for-mail
From: "D. B." <db0451@gmail.com>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: Proposal - non allocating std::function
Date: Thu, 14 Jul 2016 00:26:31 +0100
Lines: 61
Approved: news@gmane.org
Message-ID: <CACGiwhGs-L-NRCc-gmAFrh2FrY7r+F3zxzr3wTdBkCmvvSiSug@mail.gmail.com>
References: <e00db911-40f5-4c11-a4b8-32bba77aa0a5@isocpp.org> <4948193.1toAHviMXG@tjmaciei-mobl1>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: plane.gmane.org
Mime-Version: 1.0
Content-Type: multipart/alternative; boundary=001a1130cf323729f205378cb790
X-Trace: ger.gmane.org 1468452397 5251 80.91.229.3 (13 Jul 2016 23:26:37 GMT)
X-Complaints-To: usenet@ger.gmane.org
NNTP-Posting-Date: Wed, 13 Jul 2016 23:26:37 +0000 (UTC)
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBCWNZ4ECS4GBBKE4TO6AKGQEQOJH3VQ@isocpp.org Thu Jul 14 01:26:37 2016
Return-path: <std-proposals+bncBCWNZ4ECS4GBBKE4TO6AKGQEQOJH3VQ@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-wm0-f69.google.com ([74.125.82.69])
	by plane.gmane.org with esmtp (Exim 4.69)
	(envelope-from <std-proposals+bncBCWNZ4ECS4GBBKE4TO6AKGQEQOJH3VQ@isocpp.org>)
	id 1bNTY1-0002xP-S6
	for gclcip-std-proposals@m.gmane.org; Thu, 14 Jul 2016 01:26:33 +0200
Original-Received: by mail-wm0-f69.google.com with SMTP id r190sf44538337wmr.0
        for <gclcip-std-proposals@m.gmane.org>; Wed, 13 Jul 2016 16:26:33 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=isocpp-org.20150623.gappssmtp.com; s=20150623;
        h=mime-version:in-reply-to:references:from:date:message-id:subject:to
         :x-original-sender:x-original-authentication-results:reply-to
         :precedence:mailing-list:list-id:x-spam-checked-in-group:list-post
         :list-help:list-archive:list-subscribe:list-unsubscribe;
        bh=U+tDwoXBkkNLRq9kBIa0M9trYKWz2ykUTKepJTEep6c=;
        b=qhbVhdM+CjVWabssW7ks8z1Ehmz/BB+WR5gRCFvlURLh0P3Ges4lnq2yz4W69ABRXM
         nASONrPVbQjEYwg5UrrSBRYLQSJCfguZlao2mdTfd8wIJyvkfE0XsQJ1o+qpbFgERVgY
         bqU3WaQhJyi32BPb66oDAz2AV/H2pR+LQ0Ixfoiy64j8ttrUZjaUJs7WbRd0WJF0dKkZ
         zEdmnOUtM8toqunnEpFUxvlbt7tVDojbyNSdNxy6qPLgnLN3tQLQVO0xqHKSxmv7ykoH
         vEpxRBlEnJhaitAQSOcDHRLWI7TUC0+oTFAQZ2vJPZQNNvMSyEbUbTpDe+tyGwumTPpD
         ZXsg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20130820;
        h=x-gm-message-state:mime-version:in-reply-to:references:from:date
         :message-id:subject:to:x-original-sender
         :x-original-authentication-results:reply-to:precedence:mailing-list
         :list-id:x-spam-checked-in-group:list-post:list-help:list-archive
         :list-subscribe:list-unsubscribe;
        bh=U+tDwoXBkkNLRq9kBIa0M9trYKWz2ykUTKepJTEep6c=;
        b=QRmyFAevZoUhxyIHGlspDyv/Sda0pNZFlNu85TQJR/X+UuM/xA0cSb3va72rj95HGc
         eNQEP8a+K/nL+91B7lj2wxmXZeqO7etjGgABV1aSHLrQzsRxfofpEe/JeCTOYH1WA0Nb
         3yI9Qtr68OuKxHSr59LyIWyaU6cheVSRwGfCOJokmOJn40d5nPNCY2Jj8Qk5nb9XNwOp
         QtEDJ6dbvjTNdpKTto/0ci1y7q5IxqKsdUlCbdTsBe5guoy9MfYmD7xFI3JyS/mXV6TT
         IrMhVGcB3PKdkpxtqn6+k4Fnr9mC2P1TPce0hqHsL4AdIt1Iyv3tSO3e6gfTasH2LBzf
         IjUg==
X-Gm-Message-State: ALyK8tIvMjjtFRqMdtczz8j01G1AyEyzR7u2U2A6cBWKph3LL5Z8MwRvPHQeLx4/yfLBXA==
X-Received: by 10.194.112.103 with SMTP id ip7mr544492wjb.4.1468452393398;
        Wed, 13 Jul 2016 16:26:33 -0700 (PDT)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.28.52.21 with SMTP id b21ls37259wma.1.canary; Wed, 13 Jul 2016
 16:26:32 -0700 (PDT)
X-Received: by 10.194.115.164 with SMTP id jp4mr3330317wjb.94.1468452392688;
        Wed, 13 Jul 2016 16:26:32 -0700 (PDT)
Original-Received: from mail-wm0-x22b.google.com (mail-wm0-x22b.google.com. [2a00:1450:400c:c09::22b])
        by mx.google.com with ESMTPS id ec19si3381592wjb.0.2016.07.13.16.26.32
        for <std-proposals@isocpp.org>
        (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
        Wed, 13 Jul 2016 16:26:32 -0700 (PDT)
Received-SPF: pass (google.com: domain of db0451@gmail.com designates 2a00:1450:400c:c09::22b as permitted sender) client-ip=2a00:1450:400c:c09::22b;
Original-Received: by mail-wm0-x22b.google.com with SMTP id o80so90685340wme.1
        for <std-proposals@isocpp.org>; Wed, 13 Jul 2016 16:26:32 -0700 (PDT)
X-Received: by 10.194.112.163 with SMTP id ir3mr2939456wjb.78.1468452392346;
 Wed, 13 Jul 2016 16:26:32 -0700 (PDT)
Original-Received: by 10.28.90.68 with HTTP; Wed, 13 Jul 2016 16:26:31 -0700 (PDT)
In-Reply-To: <4948193.1toAHviMXG@tjmaciei-mobl1>
X-Original-Sender: db0451@gmail.com
X-Original-Authentication-Results: mx.google.com;       dkim=pass
 header.i=@gmail.com;       spf=pass (google.com: domain of db0451@gmail.com
 designates 2a00:1450:400c:c09::22b as permitted sender) smtp.mailfrom=db0451@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-Spam-Checked-In-Group: std-proposals@isocpp.org
X-Google-Group-Id: 399137483710
List-Post: <https://groups.google.com/a/isocpp.org/group/std-proposals/post>, <mailto:std-proposals@isocpp.org>
List-Help: <https://support.google.com/a/isocpp.org/bin/topic.py?topic=25838>, <mailto:std-proposals+help@isocpp.org>
List-Archive: <https://groups.google.com/a/isocpp.org/group/std-proposals/>
List-Subscribe: <https://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>,
 <https://groups.google.com/a/isocpp.org/group/std-proposals/subscribe>
Xref: news.gmane.org gmane.comp.lang.c++.isocpp.proposals:26932
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/26932>

--001a1130cf323729f205378cb790
Content-Type: text/plain; charset=UTF-8

On Thu, Jul 14, 2016 at 12:22 AM, Thiago Macieira <thiago@macieira.org>
wrote:

> Hi Carl
>
> Can you explain somewhere why std::function is unable to do that?
>
> In other words, why must std::function allocate memory?
>

I think the issue is not that it "must allocate", rather that it's not
required to embed and provides no way for the user to ensure embedding, and
typical implementations don't provide enough in-object space for Carl and
co's cases.

-- 
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.
To view this discussion on the web visit https://groups.google.com/a/isocpp.org/d/msgid/std-proposals/CACGiwhGs-L-NRCc-gmAFrh2FrY7r%2BF3zxzr3wTdBkCmvvSiSug%40mail.gmail.com.

--001a1130cf323729f205378cb790
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 T=
hu, Jul 14, 2016 at 12:22 AM, Thiago Macieira <span dir=3D"ltr">&lt;<a href=
=3D"mailto:thiago@macieira.org" target=3D"_blank">thiago@macieira.org</a>&g=
t;</span> wrote:<br><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0=
 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class=3D"">
</span>Hi Carl<br>
<br>
Can you explain somewhere why std::function is unable to do that?<br>
<br>
In other words, why must std::function allocate memory?<br></blockquote><di=
v><br></div><div>I think the issue is not that it &quot;must allocate&quot;=
, rather that it&#39;s not required to embed and provides no way for the us=
er to ensure embedding, and typical implementations don&#39;t provide enoug=
h in-object space for Carl and co&#39;s cases.<br></div></div></div></div>

<p></p>

-- <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 />
To view this discussion on the web visit <a href=3D"https://groups.google.c=
om/a/isocpp.org/d/msgid/std-proposals/CACGiwhGs-L-NRCc-gmAFrh2FrY7r%2BF3zxz=
r3wTdBkCmvvSiSug%40mail.gmail.com?utm_medium=3Demail&utm_source=3Dfooter">h=
ttps://groups.google.com/a/isocpp.org/d/msgid/std-proposals/CACGiwhGs-L-NRC=
c-gmAFrh2FrY7r%2BF3zxzr3wTdBkCmvvSiSug%40mail.gmail.com</a>.<br />

--001a1130cf323729f205378cb790--

.
