[MPL] Generate template instantiation ?
Hi all,
I have a class templated on 2 arguments, e.g. :
template
AMDG Olivier Tournaire wrote:
I have a class templated on 2 arguments, e.g. :
template
class myClass { // ... }; This class is in a lib, and I would like to instantiate it for all base type (signed char, unsigned char, int, unsigned int ...), and for a given number of channels. For example :
<snip>
And so on. Is there a way to do this without writing all possiblities. Maybe with the MPL ?
Use the preprocessor.
#include
participants (2)
-
Olivier Tournaire
-
Steven Watanabe