For a small example like this, I want to only accept T if T is a struct/class and reject builtin types like 'int', 'char', 'bool' etc.
T
struct/class
template<typename T> struct MyStruct { T t; };
Aucun commentaire:
Enregistrer un commentaire