Consider the simple following:
class Test { public: static constexpr int a = 1; }
This is not considered a definition and hence needs the below definition outside of the class.
constexpr int Test::a;
Why?
Aucun commentaire:
Enregistrer un commentaire