I have an interface class that looks like this
class Module {
public:
virtual ~Module() = default;
virtual void inc(CounterType, uint64_t) = 0;
virtual void dec(CounterType, uint64_t) = 0;
};
and here the counterType is an enum class (from cpp11) . So the modules that are derived from my interface class shall use its own set of enum classe (which are again module specific)
and ofcourse the compiler is not ok with different modules using enum class other than the CounterType specified here.
Will I have to re design ? or What is the correct design practice in this case ?
Aucun commentaire:
Enregistrer un commentaire