jeremyletang / reflect

C++ reflection framework (for fun)
MIT License
14 stars 6 forks source link

reflect

C++ reflection framework (for fun)

simple example:

#include <reflect/reflect>

int
main() {
    rf::class_t clss = rf::class_t::for_name("hello_t");
    rf::object_t object = clss.new_instance();
    rf::method_t method = clss.get_method("say_hello");
    method.invoke(object);
}