More specifically, is it possible in C++11 (or later) to write compile-time type traits for a given type T
to determine
- whether
T
is abstract, i.e. has any pure virtual methods? - whether
T
is afinal
class? - whether a given member
F
ofT
(includingT
's destructor) can be overridden, i.e. can a subclassS
ofT
declareS::F
withoverride
?
Aucun commentaire:
Enregistrer un commentaire