I have an ENUM for parameters of a method. This ENUM is a private member of a class, say
class Method
I have two variants for this method. List of parameters is almost the same. For the 2nd variant of the method, 3 parameters are to be appended to the list of parameters for first variant.
I would like to do it with a boolean, that is set to true for the 2nd variant. Is it possible to have something like this:
enum EcolId {
P1,
P2,
P3,
if(m_bool)
{
P4,
P5
}
}
if not, what should I do?
I have no other choice but use an ENUM here.
Thanks