How can I add reflection to a C++ application?

前端 未结 28 1667
感动是毒
感动是毒 2020-11-21 11:25

I\'d like to be able to introspect a C++ class for its name, contents (i.e. members and their types) etc. I\'m talking native C++ here, not managed C++, which has reflection

28条回答
  •  一整个雨季
    2020-11-21 11:46

    It looks like C++ still does not have this feature. And C++11 postponed reflection too ((

    Search some macros or make own. Qt also can help with reflection (if it can be used).

提交回复
热议问题