Because of my device I can\'t use virtual functions. Suppose I have:
class Base { void doSomething() { } }; class Derived : public Base { void doSom
Can you encapsulate the base class rather than deriving from it?
Then you can call doSomething() // gets derived or base->doSomething() // calls base