220 26489 <CAFk2RUZVPLH_LCPG-nCqKh_Pmgcq1pO8YR_a4Pjv0joEY=f4tQ@mail.gmail.com> article
Path: news.gmane.org!not-for-mail
From: Ville Voutilainen <ville.voutilainen@gmail.com>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: Naming base-classes
Date: Wed, 29 Jun 2016 16:58:35 +0300
Lines: 49
Approved: news@gmane.org
Message-ID: <CAFk2RUZVPLH_LCPG-nCqKh_Pmgcq1pO8YR_a4Pjv0joEY=f4tQ@mail.gmail.com>
References: <99925bbf-8c85-4274-8d30-2bc640ad3900@isocpp.org>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: plane.gmane.org
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
X-Trace: ger.gmane.org 1467208732 17283 80.91.229.3 (29 Jun 2016 13:58:52 GMT)
X-Complaints-To: usenet@ger.gmane.org
NNTP-Posting-Date: Wed, 29 Jun 2016 13:58:52 +0000 (UTC)
To: "ISO C++ Standard - Future Proposals" <std-proposals@isocpp.org>
Original-X-From: std-proposals+bncBC5JHI7A7ALRBDFIZ65QKGQEF3QJDMI@isocpp.org Wed Jun 29 15:58:38 2016
Return-path: <std-proposals+bncBC5JHI7A7ALRBDFIZ65QKGQEF3QJDMI@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-ob0-f199.google.com ([209.85.214.199])
	by plane.gmane.org with esmtp (Exim 4.69)
	(envelope-from <std-proposals+bncBC5JHI7A7ALRBDFIZ65QKGQEF3QJDMI@isocpp.org>)
	id 1bIG0k-0007Mj-6c
	for gclcip-std-proposals@m.gmane.org; Wed, 29 Jun 2016 15:58:38 +0200
Original-Received: by mail-ob0-f199.google.com with SMTP id fq2sf104354084obb.2
        for <gclcip-std-proposals@m.gmane.org>; Wed, 29 Jun 2016 06:58:37 -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=3EfTKelrBml41g/ema+MvDS6/lPSTh8Kboc33+T36t8=;
        b=KbaarT1+hS9ie1VDaE7GuJpLXaPHtwC7k72Gwl+SIUzrYik1BQ2jHrrhRmMKgRJc7s
         7mQVI3Fu41qDwm58lV8+8wlbX/bb2XNPVaAZcIQ7y5vSL6MVWPk6/rEsbEv8/n58XwEW
         xk/d2VL1Ym1gA+8HO45r2nf1Xn54Onz8Egp/G8fRVQifIG2j2YK6/1u8TbAgcwrZhy2h
         qk3rvWEvJV4Y0EkgSYMI0D3tA3iK306+8nD76ZqxE2b3YJQAmIiLj/q9/EotDNTdIcao
         J3nFTrBePUrUVsr0FwtzpaH2KcM5bo2dOrgvV6+CHhN7N/7MDUBOC2Nf4K4aNOCvL+2w
         y9tQ==
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=3EfTKelrBml41g/ema+MvDS6/lPSTh8Kboc33+T36t8=;
        b=ZcCJ6dSpvoQoATOxMZlzKg9qMDlIF5ByP/qSEE5h3VpZdM54VYFn76dQkiKqANZ/wj
         NJqKUE34zdcXVWLudKbnzf+I8rBZLIB+tEK8evrkq6w/rsDIMhKT28iEWRuyXOK0HsEf
         PH/vpRsLZ3UN7rqtKugQQh0AWAaPKZbl532fYutdLJIIG5JeSGsWpJR31lbS9Yd/Prfn
         26qXBouv5VP0GIgN/IHwXDwRiFh/nO7UuOTgStyGOMTHw+fjUJcEamiAsNp0Ue+0MsZN
         IgYqzfa8Z6NW0lw8wEpkFXvyhFGd0dYgAzLKbHCpW4MD5jCgSXHtHXGh17CpqCMqoLak
         EklA==
X-Gm-Message-State: ALyK8tJOy2VAV9InhruPvx0dgKSjjx58tHZTtGMfILVCISbf0LRqy2ziMPvd7elwRCEwUA==
X-Received: by 10.107.198.204 with SMTP id w195mr8111951iof.4.1467208717284;
        Wed, 29 Jun 2016 06:58:37 -0700 (PDT)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.157.40.14 with SMTP id m14ls11501698otb.50.gmail; Wed, 29 Jun
 2016 06:58:36 -0700 (PDT)
X-Received: by 10.176.65.36 with SMTP id j33mr3594434uad.2.1467208716394;
        Wed, 29 Jun 2016 06:58:36 -0700 (PDT)
Original-Received: from mail-vk0-x229.google.com (mail-vk0-x229.google.com. [2607:f8b0:400c:c05::229])
        by mx.google.com with ESMTPS id d13si1253683vke.244.2016.06.29.06.58.36
        for <std-proposals@isocpp.org>
        (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
        Wed, 29 Jun 2016 06:58:36 -0700 (PDT)
Received-SPF: pass (google.com: domain of ville.voutilainen@gmail.com designates 2607:f8b0:400c:c05::229 as permitted sender) client-ip=2607:f8b0:400c:c05::229;
Original-Received: by mail-vk0-x229.google.com with SMTP id m127so7348257vkb.3
        for <std-proposals@isocpp.org>; Wed, 29 Jun 2016 06:58:36 -0700 (PDT)
X-Received: by 10.31.224.132 with SMTP id x126mr3269304vkg.39.1467208716112;
 Wed, 29 Jun 2016 06:58:36 -0700 (PDT)
Original-Received: by 10.103.86.81 with HTTP; Wed, 29 Jun 2016 06:58:35 -0700 (PDT)
In-Reply-To: <99925bbf-8c85-4274-8d30-2bc640ad3900@isocpp.org>
X-Original-Sender: ville.voutilainen@gmail.com
X-Original-Authentication-Results: mx.google.com;       dkim=pass
 header.i=@gmail.com;       spf=pass (google.com: domain of
 ville.voutilainen@gmail.com designates 2607:f8b0:400c:c05::229 as permitted
 sender) smtp.mailfrom=ville.voutilainen@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:26489
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/26489>

On 29 June 2016 at 16:28, Peter Koch Larsen <peter.koch.larsen@gmail.com> wrote:
> I often need to access the base-class, and this class is often templated.
> This causes minor annoyances and is a maintenance problem.
>
> template <class T>
> struct B {...};
>
> template<class T>
> struct D: B<T>
> {
>     using base = B<T>;
> ...
>
> };
>
> I often encounter this problem when B and D are traits-classes, providing
> information about the actual type T (where B and D might
> contain information about the GUI-representation of T or how to transfer T
> using a specific protocol).
>
> It would be nice if I could name the class e.g. like
> template<class T>
> struct D: base = B<T>
> {
> //    using base = B<T>;  Not needed anymore.
> ...
>
> };
>
> This solution looks nice to me syntax-wise, mimicking the using-directive,
> and should be rather easy to implement.
>
> Has there been any proposals in this direction?


See
https://groups.google.com/a/isocpp.org/d/msg/std-proposals/zNvQQTKvoLQ/-5qMiIqvOP4J
and
https://groups.google.com/a/isocpp.org/d/msg/std-proposals/5MFmBEicqXY/ihmAgTCf7NYJ
and
http://open-std.org/JTC1/SC22/WG21/docs/papers/2014/n4225.html
(the last of which is also https://cplusplus.github.io/EWG/ewg-closed.html#157)

-- 
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/CAFk2RUZVPLH_LCPG-nCqKh_Pmgcq1pO8YR_a4Pjv0joEY%3Df4tQ%40mail.gmail.com.

.
