220 6862 <CAGg_6+OmCiQ=w331jbz4OxipCTJdH6q5QB=DVq0T=ubVKtEgeg@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: Proposal: Class Frames to inject prefabricated
 features into classes
Date: Tue, 1 Oct 2013 16:25:26 -0500
Lines: 76
Approved: news@gmane.org
Message-ID: <CAGg_6+OmCiQ=w331jbz4OxipCTJdH6q5QB=DVq0T=ubVKtEgeg@mail.gmail.com>
References: <27c90f45-8ae6-44c1-8755-2b4cece26bcb@isocpp.org> <CAPBZbvy4Oo-AGc-Yh21x_ZF_ish8nAn79CqYRvrvCMLzGhd0fg@mail.gmail.com>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: plane.gmane.org
Mime-Version: 1.0
Content-Type: multipart/alternative; boundary=001a11c2ddb8c590f604e7b49941
X-Trace: ger.gmane.org 1380662765 20815 80.91.229.3 (1 Oct 2013 21:26:05 GMT)
X-Complaints-To: usenet@ger.gmane.org
NNTP-Posting-Date: Tue, 1 Oct 2013 21:26:05 +0000 (UTC)
To: "std-proposals@isocpp.org" <std-proposals@isocpp.org>
Original-X-From: std-proposals+bncBCE35H5S6IDBB373VSJAKGQEMFYKIPI@isocpp.org Tue Oct 01 23:26:09 2013
Return-path: <std-proposals+bncBCE35H5S6IDBB373VSJAKGQEMFYKIPI@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-qc0-f199.google.com ([209.85.216.199])
	by plane.gmane.org with esmtp (Exim 4.69)
	(envelope-from <std-proposals+bncBCE35H5S6IDBB373VSJAKGQEMFYKIPI@isocpp.org>)
	id 1VR7SK-0007eV-UV
	for gclcip-std-proposals@m.gmane.org; Tue, 01 Oct 2013 23:26:09 +0200
Original-Received: by mail-qc0-f199.google.com with SMTP id u18sf8718686qcx.2
        for <gclcip-std-proposals@m.gmane.org>; Tue, 01 Oct 2013 14:26:08 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20130820;
        h=mime-version:sender: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=HgexKKCAWhW3r+I60cuuBp8TUQY7iJ3fw+/OTerqhzY=;
        b=V/eTs8uiISQiVVQQJlc97Y0AdDrFeSg1LKnRAcaZnhslwBf+kHUhY2wAU41Co0QQql
         X50fwf3Fo89yWqmYN5KMTUgXAUKvHiEZ6+zmI0gUjzmZBwghA0PdwBHp/VcDvnYH7W6/
         of/GYBWBt58d8FDRhtXsbjjEsYWhG5u8aTF/APmCiYj1Q95sFTbkGBWyFGOFtuOynsV6
         D1z/rQhJP6bXieAyPJFaUymCoFO86/Ct9xxahMs9Wu398BmGuFUTksDI23gpCnPAEyn1
         RxqhAKSL5JXuACxHBQYz3Ve0QQzDF7dIfx+714rmsO9rjTVrEb59lFVcVGZqI/fspCPS
         sxBg==
X-Received: by 10.236.220.39 with SMTP id n37mr10214370yhp.15.1380662768070;
        Tue, 01 Oct 2013 14:26:08 -0700 (PDT)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.49.109.226 with SMTP id hv2ls250652qeb.22.gmail; Tue, 01 Oct
 2013 14:26:07 -0700 (PDT)
X-Received: by 10.49.127.179 with SMTP id nh19mr37864679qeb.1.1380662767179;
        Tue, 01 Oct 2013 14:26:07 -0700 (PDT)
Original-Received: from mail-qe0-x233.google.com (mail-qe0-x233.google.com [2607:f8b0:400d:c02::233])
        by mx.google.com with ESMTPS id kz6si3493968qeb.108.1969.12.31.16.00.00
        (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128);
        Tue, 01 Oct 2013 14:26:06 -0700 (PDT)
Received-SPF: pass (google.com: domain of nliber@gmail.com designates 2607:f8b0:400d:c02::233 as permitted sender) client-ip=2607:f8b0:400d:c02::233;
Original-Received: by mail-qe0-f51.google.com with SMTP id ne12so5515385qeb.10
        for <std-proposals@isocpp.org>; Tue, 01 Oct 2013 14:26:06 -0700 (PDT)
X-Received: by 10.224.127.6 with SMTP id e6mr23965057qas.67.1380662766831;
 Tue, 01 Oct 2013 14:26:06 -0700 (PDT)
Original-Sender: nliber@gmail.com
Original-Received: by 10.49.60.70 with HTTP; Tue, 1 Oct 2013 14:25:26 -0700 (PDT)
In-Reply-To: <CAPBZbvy4Oo-AGc-Yh21x_ZF_ish8nAn79CqYRvrvCMLzGhd0fg@mail.gmail.com>
X-Original-Sender: nevin@eviloverlord.com
X-Original-Authentication-Results: mx.google.com;       spf=pass (google.com:
 domain of nliber@gmail.com designates 2607:f8b0:400d:c02::233 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: <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:6862
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/6862>

--001a11c2ddb8c590f604e7b49941
Content-Type: text/plain; charset=ISO-8859-1

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/.

--001a11c2ddb8c590f604e7b49941
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">On 1 October 2013 15:53, Billy O&#39;Neal <span dir=3D"ltr=
">&lt;<a href=3D"mailto:billy.oneal@gmail.com" target=3D"_blank">billy.onea=
l@gmail.com</a>&gt;</span> wrote:<br><div class=3D"gmail_extra"><div class=
=3D"gmail_quote">

<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex"><div dir=3D"ltr"><div>How is this different =
than what you can already do with the existing:</div><div>=A0</div><div>tem=
plate &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>You cannot inject assignment operators / constructors via CRTP=
.. =A0The way I think about it is that the compiler generates new assignment=
 operators for the derived classes which hide any declared in the base clas=
s.</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>

<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 />

--001a11c2ddb8c590f604e7b49941--

.
