Sample usage:
enum A { A=1, B=2 };
int atype = 10;
int btype = 20;
The intended result should be something like:
using myA<A> = atype;
using myA<B> = btype;
This doesn't seem to work using std::enable_if. A function is possible, but can a non-type templated alias work with std::enable_if?
Aucun commentaire:
Enregistrer un commentaire