Go to the documentation of this file.
28 #ifndef RTTR_RTTR_ENABLE_H_
29 #define RTTR_RTTR_ENABLE_H_
31 #include <type_traits>
76 #define RTTR_ENABLE(...)
80 #define TYPE_LIST(...) ::rttr::type_list<__VA_ARGS__>
82 #define RTTR_ENABLE(...) \
84 RTTR_BEGIN_DISABLE_OVERRIDE_WARNING \
85 virtual RTTR_INLINE ::rttr::type get_type() const { return ::rttr::detail::get_type_from_instance(this); } \
86 virtual RTTR_INLINE void* get_ptr() { return reinterpret_cast<void*>(this); } \
87 virtual RTTR_INLINE ::rttr::detail::derived_info get_derived_info() { return {reinterpret_cast<void*>(this), ::rttr::detail::get_type_from_instance(this)}; } \
88 using base_class_list = TYPE_LIST(__VA_ARGS__); \
89 RTTR_END_DISABLE_OVERRIDE_WARNING \