are abstract
/ base
specifiers permitted or required on class forward declarations?
#3384
Labels
leads question
A question for the leads team
Summary of issue:
Given this class:
how does one write a forward declaration? Is
valid? Is
valid?
Details:
There doesn't seem to be a reason to require the
abstract
orbase
specifier to be present on a forward declaration. But usually our forward declaration syntax for classes is a prefix of the definition, and there also doesn't seem to be any particular hardship to developers in requiring the forward declaration to repeat the specifier.In addition to the three answers suggested by the question (specifier is disallowed, specifier is allowed but not required, specifier is required), we could change the class definition syntax to put the specifier in the class body, as we did for inheritance:
Any other information that you want to share?
No response
The text was updated successfully, but these errors were encountered: