6 Oct
2008
6 Oct
'08
6:42 p.m.
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