Reflection in C++

后端 未结 8 1854
失恋的感觉
失恋的感觉 2021-02-05 19:55

I\'ve been working for years with Java. During those years, I\'ve made extensive (or maybe just frequent) use of reflection, and found it useful and enjoyable. But 8 months ago

8条回答
  •  长情又很酷
    2021-02-05 20:27

    RTTI is a solution (what part in Java do you think is not in RTTI?), otherwise you can implement your own object framework - let every your own C++ object inherits some reflection interface, and then it should work.

提交回复
热议问题