220 6863 <CAPBZbvx9hQNgMrqnwX4th1h0uHXXov9Jc2-6SnbGb0Oyhmo4Fw@mail.gmail.com> article
Path: news.gmane.org!not-for-mail
From: "Billy O'Neal" <billy.oneal@gmail.com>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: Proposal: Class Frames to inject prefabricated
 features into classes
Date: Tue, 1 Oct 2013 14:52:44 -0700
Lines: 136
Approved: news@gmane.org
Message-ID: <CAPBZbvx9hQNgMrqnwX4th1h0uHXXov9Jc2-6SnbGb0Oyhmo4Fw@mail.gmail.com>
References: <27c90f45-8ae6-44c1-8755-2b4cece26bcb@isocpp.org>
 <CAPBZbvy4Oo-AGc-Yh21x_ZF_ish8nAn79CqYRvrvCMLzGhd0fg@mail.gmail.com> <CAGg_6+OmCiQ=w331jbz4OxipCTJdH6q5QB=DVq0T=ubVKtEgeg@mail.gmail.com>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: plane.gmane.org
Mime-Version: 1.0
Content-Type: multipart/alternative; boundary=90e6ba614f0e5dffdd04e7b4fbee
X-Trace: ger.gmane.org 1380664402 7151 80.91.229.3 (1 Oct 2013 21:53:22 GMT)
X-Complaints-To: usenet@ger.gmane.org
NNTP-Posting-Date: Tue, 1 Oct 2013 21:53:22 +0000 (UTC)
To: std-proposals <std-proposals@isocpp.org>
Original-X-From: std-proposals+bncBDKLBLVE6ADBBVMIVWJAKGQEIUUY6MY@isocpp.org Tue Oct 01 23:53:28 2013
Return-path: <std-proposals+bncBDKLBLVE6ADBBVMIVWJAKGQEIUUY6MY@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-oa0-f69.google.com ([209.85.219.69])
	by plane.gmane.org with esmtp (Exim 4.69)
	(envelope-from <std-proposals+bncBDKLBLVE6ADBBVMIVWJAKGQEIUUY6MY@isocpp.org>)
	id 1VR7sk-0003Rc-Ib
	for gclcip-std-proposals@m.gmane.org; Tue, 01 Oct 2013 23:53:26 +0200
Original-Received: by mail-oa0-f69.google.com with SMTP id n10sf24428761oag.8
        for <gclcip-std-proposals@m.gmane.org>; Tue, 01 Oct 2013 14:53:25 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20130820;
        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:list-post:list-help:list-archive
         :list-subscribe:list-unsubscribe:content-type;
        bh=6WrBdoaO9ldLzt7Ow499VmMgTdVlrYjd6+3Gmk8V0G8=;
        b=NdJeio9PKRiHrGZvrOcp8dskJgvol7aYO3UdPOfC6wDz2iZ6R+1tk5YlAdEZr+Eg1s
         xqPQ3DYFV+IP6736uCWgBFxJShN46Qvjhm8PdZavgfqUu86UNL6fYNN0Stju7lUmTHxi
         4WUqlpRu+I2wM8u9EiFC9Vrvao79gljtcHocZ79RT6xAZlj2PwKO4hR0GV3bp0qiA8p9
         S3PpGQGL34GB7MeP0r5aiYv7OxOLZs7/rdHQVr6xP4GliTd7BGJCr+frI9Br5haMhcJx
         orCraSe9/3NbB78Cj2w3ALxZZt+UoLFqdOhkFRI2BLJMk0fFkFhHMdx83OvIticLpIDh
         srPg==
X-Received: by 10.50.79.135 with SMTP id j7mr17405746igx.1.1380664405558;
        Tue, 01 Oct 2013 14:53:25 -0700 (PDT)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.50.49.100 with SMTP id t4ls2897117ign.38.canary; Tue, 01 Oct
 2013 14:53:24 -0700 (PDT)
X-Received: by 10.60.70.134 with SMTP id m6mr29040098oeu.14.1380664404772;
        Tue, 01 Oct 2013 14:53:24 -0700 (PDT)
Original-Received: from mail-ie0-x234.google.com (mail-ie0-x234.google.com [2607:f8b0:4001:c03::234])
        by mx.google.com with ESMTPS id sp4si6445988oeb.59.1969.12.31.16.00.00
        (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128);
        Tue, 01 Oct 2013 14:53:24 -0700 (PDT)
Received-SPF: pass (google.com: domain of billy.oneal@gmail.com designates 2607:f8b0:4001:c03::234 as permitted sender) client-ip=2607:f8b0:4001:c03::234;
Original-Received: by mail-ie0-f180.google.com with SMTP id u16so15108021iet.39
        for <std-proposals@isocpp.org>; Tue, 01 Oct 2013 14:53:24 -0700 (PDT)
X-Received: by 10.42.92.84 with SMTP id s20mr39778icm.63.1380664404203; Tue,
 01 Oct 2013 14:53:24 -0700 (PDT)
Original-Received: by 10.43.166.67 with HTTP; Tue, 1 Oct 2013 14:52:44 -0700 (PDT)
In-Reply-To: <CAGg_6+OmCiQ=w331jbz4OxipCTJdH6q5QB=DVq0T=ubVKtEgeg@mail.gmail.com>
X-Original-Sender: billy.oneal@gmail.com
X-Original-Authentication-Results: mx.google.com;       spf=pass (google.com:
 domain of billy.oneal@gmail.com designates 2607:f8b0:4001:c03::234 as
 permitted sender) smtp.mail=billy.oneal@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: <http://groups.google.com/a/isocpp.org/group/std-proposals/subscribe>,
 <mailto:googlegroups-manage+399137483710+unsubscribe@googlegroups.com>
Xref: news.gmane.org gmane.comp.lang.c++.isocpp.proposals:6863
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/6863>

--90e6ba614f0e5dffdd04e7b4fbee
Content-Type: text/plain; charset=ISO-8859-1

Ah, whoops :) That's right.

Billy O'Neal
https://github.com/BillyONeal/ <https://bitbucket.org/BillyONeal/>
http://stackoverflow.com/users/82320/billy-oneal
Malware Response Instructor - BleepingComputer.com


On Tue, Oct 1, 2013 at 2:25 PM, Nevin Liber <nevin@eviloverlord.com> wrote:

> On 1 October 2013 15:53, Billy O'Neal <billy.oneal@gmail.com> wrote:
>
>> How is this different than what you can already do with the existing:
>>
>> template <typename T>
>> class MoveInjection
>> {
>>     T& operator=(T&&) { /*...*/ }
>> }
>>
>> class Client : public MoveInjection<Client>
>> {
>>
>> }
>>
>
> You cannot inject assignment operators / constructors via CRTP.  The way I
> think about it is that the compiler generates new assignment operators for
> the derived classes which hide any declared in the base class.
>
> That being said, I don't think that is worth a whole language feature.
>
> --
>
> ---
> 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/.
>

-- 

--- 
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/.

--90e6ba614f0e5dffdd04e7b4fbee
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">Ah, whoops :) That&#39;s right.</div><div class=3D"gmail_e=
xtra"><br clear=3D"all"><div><div dir=3D"ltr"><div>Billy O&#39;Neal</div><d=
iv><a href=3D"https://bitbucket.org/BillyONeal/" target=3D"_blank">https://=
github.com/BillyONeal/</a></div>

<div><a href=3D"http://stackoverflow.com/users/82320/billy-oneal" target=3D=
"_blank">http://stackoverflow.com/users/82320/billy-oneal</a></div><div>Mal=
ware Response Instructor - BleepingComputer.com</div></div></div>
<br><br><div class=3D"gmail_quote">On Tue, Oct 1, 2013 at 2:25 PM, Nevin Li=
ber <span dir=3D"ltr">&lt;<a href=3D"mailto:nevin@eviloverlord.com" target=
=3D"_blank">nevin@eviloverlord.com</a>&gt;</span> wrote:<br><blockquote cla=
ss=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;pa=
dding-left:1ex">

<div dir=3D"ltr"><div class=3D"im">On 1 October 2013 15:53, Billy O&#39;Nea=
l <span dir=3D"ltr">&lt;<a href=3D"mailto:billy.oneal@gmail.com" target=3D"=
_blank">billy.oneal@gmail.com</a>&gt;</span> wrote:<br></div><div class=3D"=
gmail_extra">

<div class=3D"gmail_quote"><div class=3D"im">

<blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;padding=
-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-l=
eft-style:solid"><div dir=3D"ltr"><div>How is this different than what you =
can already do with the existing:</div>

<div>=A0</div><div>template &lt;typename T&gt;</div>

<div>class MoveInjection</div><div>{</div><div>=A0=A0=A0 T&amp;=A0operator=
=3D(T&amp;&amp;) { /*...*/ }</div>

<div>}</div><div>=A0</div><div>class Client : public MoveInjection&lt;Clien=
t&gt;</div><div>{</div><div>=A0</div><div>}</div></div></blockquote><div><b=
r></div></div><div>You cannot inject assignment operators / constructors vi=
a CRTP. =A0The way I think about it is that the compiler generates new assi=
gnment operators for the derived classes which hide any declared in the bas=
e class.</div>



<div><br></div><div>That being said, I don&#39;t think that is worth a whol=
e language feature.</div></div></div></div><div class=3D"HOEnZb"><div class=
=3D"h5">

<p></p>

-- <br>
=A0<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%2Bunsubscribe@isocpp.org" target=3D=
"_blank">std-proposals+unsubscribe@isocpp.org</a>.<br>
To post to this group, send email to <a href=3D"mailto:std-proposals@isocpp=
..org" target=3D"_blank">std-proposals@isocpp.org</a>.<br>
Visit this group at <a href=3D"http://groups.google.com/a/isocpp.org/group/=
std-proposals/" target=3D"_blank">http://groups.google.com/a/isocpp.org/gro=
up/std-proposals/</a>.<br>
</div></div></blockquote></div><br></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/">http://groups.google.com/a/isocpp.org/group/std-proposals/<=
/a>.<br />

--90e6ba614f0e5dffdd04e7b4fbee--

.
