I have a templated class A
The best solution I've been able to come up with for this situation is to use a "constructor helper function":
template class A;
typedef A one_type;
typedef A second_type;
template
class A {
private:
void cons_helper(int m) {test= (m>M);}
public:
A(int m) { cons_helper(m); }
bool test;
};
template <>
void one_type::cons_helper(int) { cerr << "One type" << endl;}