220 9909 <7753088.rk1yxZLtPa@tjmaciei-mobl4> article
Path: news.gmane.org!not-for-mail
From: Thiago Macieira <thiago@macieira.org>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: Re: Explicitly-defaulted enumeration operators
Date: Wed, 19 Mar 2014 11:49:09 -0700
Lines: 33
Approved: news@gmane.org
Message-ID: <7753088.rk1yxZLtPa@tjmaciei-mobl4>
References: <3B09C97E-7ADE-49ED-8C31-B5B41CD3DDE7@gmail.com> <c17acc18-db6f-4233-b819-49bb623259dd@isocpp.org> <lgcl91$uln$1@ger.gmane.org>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: plane.gmane.org
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
X-Trace: ger.gmane.org 1395254948 13342 80.91.229.3 (19 Mar 2014 18:49:08 GMT)
X-Complaints-To: usenet@ger.gmane.org
NNTP-Posting-Date: Wed, 19 Mar 2014 18:49:08 +0000 (UTC)
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBCB4TK757YBRBKGNU6MQKGQEKYVXWDA@isocpp.org Wed Mar 19 19:49:17 2014
Return-path: <std-proposals+bncBCB4TK757YBRBKGNU6MQKGQEKYVXWDA@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-wi0-f200.google.com ([209.85.212.200])
	by plane.gmane.org with esmtp (Exim 4.69)
	(envelope-from <std-proposals+bncBCB4TK757YBRBKGNU6MQKGQEKYVXWDA@isocpp.org>)
	id 1WQLY9-000873-Ec
	for gclcip-std-proposals@m.gmane.org; Wed, 19 Mar 2014 19:49:13 +0100
Original-Received: by mail-wi0-f200.google.com with SMTP id d1sf10634316wiv.7
        for <gclcip-std-proposals@m.gmane.org>; Wed, 19 Mar 2014 11:49:13 -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:to:subject:date:message-id:user-agent
         :in-reply-to:references: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:content-transfer-encoding:content-type;
        bh=eR1yP1qgkQiX6kdQ3L2HLoVMZJSch3U3a9Yp7/41hfo=;
        b=j4ZXvZ54O4C4cz3hfMnJUYminIAb/E/B9xph4p1HhV2kTrgi/GWR8604wSS19vNY9u
         kDVvkGX7Pzx8xF3eWgGqS7jq+s88DK514yI7dCGXblXfxc+1//f2jhtNcEqfO5yJyx49
         GhMwVYckKbdMwc/PLG52oITQEVXCZgzEd6BYtQ2Jdf/fQAxmSRR5EAo04pozADCunjDz
         DCDYTTvqNVuyrp2Qi01X6+1MpIpz5O93/0cXBbdCt0hTOLGYNPgDCbTL0k+GVY+DYqlv
         UA4R/JhQhx/RbHmCgiUT8D8wvgjQFW4dIwSpXZzea6Ka2Q100zQ9jwDMjm1XQpnnQhkU
         SWg 
X-Gm-Message-State: ALoCoQlovyKwC1Hh53Y+7RG035nfeqtE/RBuWukDyJSfzcNC84sx2ZtpzGqUU3nvCe7330K1w8Lj
X-Received: by 10.112.209.102 with SMTP id ml6mr16250455lbc.1.1395254953140;
        Wed, 19 Mar 2014 11:49:13 -0700 (PDT)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.180.91.136 with SMTP id ce8ls649639wib.24.gmail; Wed, 19 Mar
 2014 11:49:12 -0700 (PDT)
X-Received: by 10.15.52.195 with SMTP id p43mr172041eew.112.1395254952018;
        Wed, 19 Mar 2014 11:49:12 -0700 (PDT)
Original-Received: from gondolin.macieira.info (gondolin.macieira.info. [2a01:4f8:d13:f81:21c:14ff:fe01:12a3])
        by mx.google.com with ESMTP id u49si28279574eef.352.2014.03.19.11.49.11
        for <std-proposals@isocpp.org>;
        Wed, 19 Mar 2014 11:49:11 -0700 (PDT)
Received-SPF: pass (google.com: domain of thiago@macieira.org designates 2a01:4f8:d13:f81:21c:14ff:fe01:12a3 as permitted sender) client-ip=2a01:4f8:d13:f81:21c:14ff:fe01:12a3;
Original-Received: from tjmaciei-mobl4.localnet (jfdmzpr05-ext.jf.intel.com [134.134.139.74])
	by gondolin.macieira.info (Postfix) with ESMTPSA id 0E71611A704
	for <std-proposals@isocpp.org>; Wed, 19 Mar 2014 11:49:11 -0700 (PDT)
User-Agent: KMail/4.11.5 (Linux/3.11.10-7-desktop; KDE/4.11.5; x86_64; ; )
In-Reply-To: <lgcl91$uln$1@ger.gmane.org>
X-Original-Sender: thiago@macieira.org
X-Original-Authentication-Results: mx.google.com;       spf=pass (google.com:
 domain of thiago@macieira.org designates 2a01:4f8:d13:f81:21c:14ff:fe01:12a3
 as permitted sender) smtp.mail=thiago@macieira.org
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:9909
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/9909>

Em qua 19 mar 2014, =E0s 13:48:31, Matthew Woehlke escreveu:
> Something else I would really love to see though is using an enumeration=
=20
> as an underlying ("base") type of an enumeration, e.g.:
>=20
>    enum class A { a1, a2, ... };
>    enum class B : A { b1, b2, ... };
>=20
>    B bb =3D B::a1; // legal; a1, etc. are in scope of B, inherited from A

That would be very welcome. Multiple inheritance too.

It would solve some of the hacks I had to do for QUrl, when some functions=
=20
take only a subset of the flags. I could have split them in two separate=20
parameters, though.
--=20
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
   Software Architect - Intel Open Source Technology Center
      PGP/GPG: 0x6EF45358; fingerprint:
      E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358

--=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/.

.
