meta.hpp
meta.hpp copied to clipboard
How to support std::shared_ptr for upcast
for example, struct A{} struct B:A{} class test { std::shared_ptr<B> calc() { return std::make_shared<B>(); }
how to upcast the result of calc method as std::shared_ptr<A> by reflection.