I want to perform a set of tests in my code that are similar but change only depending on a parameter.
I could write this using a switch statement:
b
It is impossible to use templates in the following case:
const EnumSensorFamily familyCompileTime = FAM3; // Compile time constant EnumSensorFamily family = GetFimilyInRunTime(); // Run time variable doTest1(family, proposed); // ok doTest2(proposed); // error; doTest2(proposed); // OK;