lundi 2 février 2015

Class template, which is independent of the permutations of its arguments

Consider a class template and auxiliary enum classes defined as follows:



enum class Color {Red, Green, Blue}
enum class ShowAxes {False, True}
enum class ShowLabels {False, True}

template< Color, ShowAxes, ShowLabels >
class A
{......};


The question is, how to redefine the class A, which would be independent on the permutations of its arguments. I use Dev C++, which supports C++11.


Aucun commentaire:

Enregistrer un commentaire