Title
[[hiding]] with [[override]]
Status
c++11
Section
_N3225_.7.6.5 [dcl.attr.override]
Submitter
Daveed Vandevoorde

Created on 2010-03-24.00:00:00 last changed 131 months ago

Messages

Date: 2010-11-15.00:00:00

[Voted into the WP at the November, 2010 meeting as part of paper N3206.]

Date: 2021-02-24.00:00:00

The meaning of the [[base_check]] and [[hiding]] attributes is defined in terms of hiding as described in _N4868_.6.4.10 [basic.scope.hiding]. In that section, however, hiding is orthogonal to overriding: practically by definition, a function that overrides a base class virtual function also hides it. According to the current specification, the [[override]] and [[hiding]] attributes would always need to be specified together on every overriding function in a [[base_check]] class. This is presumably unintended, so the current wording should be amended so that [[override]] implies [[hiding]] or some such.

History
Date User Action Args
2014-03-03 00:00:00adminsetstatus: fdis -> c++11
2011-04-10 00:00:00adminsetstatus: dr -> fdis
2010-11-29 00:00:00adminsetmessages: + msg3171
2010-11-29 00:00:00adminsetstatus: open -> dr
2010-03-24 00:00:00admincreate