Abstract class needs at least one abstract method to be considered abstract (#2053)

The introduction of the method is needed, for instance, for constructions like std::is_abstract<AbstractBase>::value to be evaluated to true
pull/2065/head
Henrique Mageste 3 years ago committed by GitHub
parent 696633572c
commit 6a0b5e6eca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -4938,6 +4938,7 @@ defined as defaulted.
class AbstractBase {
public:
virtual void foo() = 0; // at least one abstract method to make the class abstract
virtual ~AbstractBase() = default;
// ...
};

Loading…
Cancel
Save