Reflection in C++

后端 未结 8 1853
失恋的感觉
失恋的感觉 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:01

    if all you are using it for is dependency injection (an implementation of some interface^H^H^H^H^H^ pure abstract class), you might try dynamic loading of .dll or .so files which contain the implementation-of-the-day for whatever the plug in is.

    Probably just grasping at straws, as this won't work well for multiple implementations of things at the same time.

提交回复
热议问题