<div dir="ltr">Hi all,<br><br>I have a class templated on 2 arguments, e.g. :<br><br>template <typename PixelType , typename NbChannels> class myClass<br>{<br> // ...<br>};<br><br>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 :<br> <br>template class myClass<unsigned char,1>;<br>template class myClass<unsigned char,2>;<br>// ...<br>template class myClass<unsigned char,10>;<br><br>template class myClass<signed char,1>;<br> template class myClass<signed char,2>;<br> // ...<br> template class myClass<signed char,10>;<br><br>And so on. Is there a way to do this without writing all possiblities. Maybe with the MPL ?<br><br>Best regards,<br><br>Olivier<br></div>