A followup to this question : C++ : Is there a good way to choose between 2 implementations?
My goal here is that both of these classes can be called at the same runtime. So Polymorphism would be a good and easy way to go with.
I have the following diagram :
But the problem here is that each one of them(a.cpp/h and a_mockup.cpp/h) uses the singelton pattern(contains static functions) and static functions cannot be virtually declared in the baseclass.
Is there a way to solve this problem?