Runtime Traits

Hello,

is there a way to do something like:

MatrixType<m.type()>::type, where m.type() is an unsigned int and ::type is something like typedef int/float/etc type;

This doesn't work because templates needs to be known at copile-time but is there any other way i.e. with macros to get the same behavior?

Thanks a lot
Any thoughts on this?

Thanks
Topic archived. No new replies allowed.