Is it possible to create such C++ macros that would wrap your standard (inherited) class into an application?
So we have simple interface base class: class animal { public: animal(int age) : age_(age) { } virtual ~animal(void) { } virtual std::string get_name(void) { return "A generic animal"; } int get_age(void) { return age_; } protected: int age_; }; And we want ti inherit from it with a class like this: #include "animal.hpp" #include "some_includes_for_our_shared_libs.hpp" class puma : public animal { public: puma(int age) : animal(age) {} virtual std::string get_name() { return "puma"; } }; If we are creating a library - shared or static its ok for us just to inherit from it, but when we want to