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

前端 未结 28 1619
感动是毒
感动是毒 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 12:01

    EDIT: Updated broken link as of February, the 7th, 2017.

    I think noone mentioned this:

    At CERN they use a full reflection system for C++:

    CERN Reflex. It seems to work very well.

提交回复
热议问题