mardi 27 janvier 2015

Compile time template instantiation check

Is it possible to check if a template type has been instantiated at compile time so that I can use this information in an enable_if specialization?


Let's say I have



template <typename T> struct known_type { };


Can I somehow define some is_known_type whose value is true if known_type is instantiated at compile time?


Aucun commentaire:

Enregistrer un commentaire