220 13207 <19267205-7e26-4c12-b9b4-f26ab2f99eb7@isocpp.org> article
Path: news.gmane.org!not-for-mail
From: gmisocpp@gmail.com
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Tighten rules for virtual override keyword combination
Date: Sat, 27 Sep 2014 14:59:51 -0700 (PDT)
Lines: 54
Approved: news@gmane.org
Message-ID: <19267205-7e26-4c12-b9b4-f26ab2f99eb7@isocpp.org>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: plane.gmane.org
Mime-Version: 1.0
Content-Type: multipart/alternative; 
	boundary="----=_Part_2177_1670616247.1411855191475"
X-Trace: ger.gmane.org 1411855201 16640 80.91.229.3 (27 Sep 2014 22:00:01 GMT)
X-Complaints-To: usenet@ger.gmane.org
NNTP-Posting-Date: Sat, 27 Sep 2014 22:00:01 +0000 (UTC)
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBCM3TRNUXUDBBWPGTSQQKGQEHFI67HY@isocpp.org Sat Sep 27 23:59:56 2014
Return-path: <std-proposals+bncBCM3TRNUXUDBBWPGTSQQKGQEHFI67HY@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-ig0-f200.google.com ([209.85.213.200])
	by plane.gmane.org with esmtp (Exim 4.69)
	(envelope-from <std-proposals+bncBCM3TRNUXUDBBWPGTSQQKGQEHFI67HY@isocpp.org>)
	id 1XY01y-0003cJ-RO
	for gclcip-std-proposals@m.gmane.org; Sat, 27 Sep 2014 23:59:55 +0200
Original-Received: by mail-ig0-f200.google.com with SMTP id h3sf11855664igd.7
        for <gclcip-std-proposals@m.gmane.org>; Sat, 27 Sep 2014 14:59:54 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20120113;
        h=date:from:to:message-id:subject:mime-version:x-original-sender
         :reply-to:precedence:mailing-list:list-id:list-post:list-help
         :list-archive:list-subscribe:list-unsubscribe:content-type;
        bh=wr52GFi814vzdlrJLA68C1BQlvMJYbIfFrHmnMeoE0k=;
        b=rlIq26Z3uRbMl3qS8CzZlydKl5abayVSwmEh7NBww83r0eNkewZcDcGH6wl2BLidi5
         24YJp9pnLeIRhDd+oRfOqLCHfqtp9O18mtcQzBc1D5XAMyBSoXdR3oZxHIvn0bfR7hiy
         t5IvjV9AbUJ7oC89A5/eyVdrq9bSpUxdnTtU08kYh1TbMzIOdO0cxApOF0Um1URPtI9p
         KC7s2HGMWpZtwSes0aZQVoIrAWbAUl0gyvxgmFrzT9y6CMtcYHwS2FX/LQztu3y53Btq
         iEdHcjolQvU9LMlkD/kPl2cr4RKmsDHc23gqyS7eiaXfjWj7Q5MbJZpAlsxKJVjT49L+
         Erkg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20130820;
        h=x-gm-message-state:date:from:to:message-id:subject:mime-version
         :x-original-sender:reply-to:precedence:mailing-list:list-id
         :list-post:list-help:list-archive:list-subscribe:list-unsubscribe
         :content-type;
        bh=wr52GFi814vzdlrJLA68C1BQlvMJYbIfFrHmnMeoE0k=;
        b=heOtLEeyzl1OTh4QTkzCUJogOCr3AtVzUYSHw/ib70InUvLdaRRwMC/FMsFW+5WJKI
         Gq8wK8hf4Q01wNGrs5oMa/LYcSV9R2Hu3Hae3811XMxtt/zA8LUlFn5oSHudc3WsxsoV
         boxvKzdNtGTLk4XKepK1fXBYJcikmm0qNaz4bqduNd/+yhhdOnXjjktBr2UWSD6tFtqb
         NyrYbRLUkDJNXfkC70HTmn37JWYlOHHZ49lWf0d7Mqu8RWWP7MJDlIh/2pgXhnm7hyi4
         xlx187x85WnVFRAWnrHQmoBTdHkiJN7RFTSiL73TvQX051cMmJ9BYwYdtLxLhh0B7GA2
         sCLw==
X-Gm-Message-State: ALoCoQlku/h75ylIWHVggWO70F7uMcpJ4RpfeilXB8x8U4W2oLL5mx/EWUDvOh6PPi63xqFWfVmw
X-Received: by 10.182.143.39 with SMTP id sb7mr25752484obb.47.1411855193937;
        Sat, 27 Sep 2014 14:59:53 -0700 (PDT)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.50.43.161 with SMTP id x1ls1361087igl.41.canary; Sat, 27 Sep
 2014 14:59:53 -0700 (PDT)
X-Received: by 10.50.41.103 with SMTP id e7mr891495igl.8.1411855193319;
        Sat, 27 Sep 2014 14:59:53 -0700 (PDT)
X-Original-Sender: gmisocpp@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: <mailto:googlegroups-manage+399137483710+unsubscribe@googlegroups.com>,
 <http://groups.google.com/a/isocpp.org/group/std-proposals/subscribe>
Xref: news.gmane.org gmane.comp.lang.c++.isocpp.proposals:13207
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/13207>

------=_Part_2177_1670616247.1411855191475
Content-Type: text/plain; charset=UTF-8

C++ compilers allow the combination of virtual and override together. AFAIK 
it serves no purpose to allow that but does causes confusion, e.g.:

http://www.reddit.com/r/cpp/comments/2hgp7i/do_you_repeat_the_virtual_keyword_in_derived/

I propose deprecating use of override and virtual together and/or requiring 
or recommending the compiler  warn when both keywords are combined. A 
warning like 'virtual override combination not recommended. override is 
sufficient here.'

-- 

--- 
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/.

------=_Part_2177_1670616247.1411855191475
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div>C++ compilers&nbsp;allow the combination of virtual a=
nd override together. AFAIK it serves no purpose to allow that&nbsp;but doe=
s causes&nbsp;confusion, e.g.:</div><div><br></div><div><a href=3D"http://w=
ww.reddit.com/r/cpp/comments/2hgp7i/do_you_repeat_the_virtual_keyword_in_de=
rived/">http://www.reddit.com/r/cpp/comments/2hgp7i/do_you_repeat_the_virtu=
al_keyword_in_derived/</a></div><div><br></div><div>I propose deprecating&n=
bsp;use of&nbsp;override and virtual together and/or requiring or recommend=
ing&nbsp;the compiler&nbsp; warn&nbsp;when&nbsp;both keywords are combined.=
&nbsp;A warning like&nbsp;'virtual override combination not recommended. ov=
erride is sufficient here.'</div><div><br></div></div>

<p></p>

-- <br />
<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+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 />
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 />

------=_Part_2177_1670616247.1411855191475--

.
