I have to write specialised classes based on a preset enum. One option is two write a definition for each member in the enum, but some of them have the same definitions, is there a way I can make two inputs in the templates behave the same
class Test {
public:
Test() {
cout << "General template object \n";
}
};
template < >
class Test < int >,<char> {
public: Test() {
cout << "Specialized template object\n";
}
};
Like here, I want int and char to have the same class.