I have below (depersonalized)code which compiles with an error : "constant "OFF" is not a type name", on line 23.
I can't figure out what is wrong. Does anybody know ?
The problem is clsClass myClass(OFF); //this is line 23 , you cannot initialize members like that, you have to initialize them in the constructor like that:
You declared a templetae class the tamplate parameter of which is a type parameter.
typename clsClass
When you create an object of thi class you must to specify a type as a template argument. For example you could write
clsTemplate<ON_OFF> myClass;
Record
clsClass myClass(OFF);
means that on object of class clsClass is being created by means of calling constructor clsClass( OFF ). However there is no such a class and there is no such a constructor of that class with one parameter.