di icon indicating copy to clipboard operation
di copied to clipboard

How to integrate Boost::DI with RTTR

Open soroshsabz opened this issue 5 years ago • 1 comments

ITNOA

How to integrate Boost::DI with RTTR ? I want to create an object with rttr that I have the name, but this object has many dependencies, and I want Boost::DI resolve these dependecies for me.

How can I achieve this?

Best Regards

soroshsabz avatar Apr 11 '19 17:04 soroshsabz

To integrate di with dynamic reflection the easiest way would be to use https://github.com/boost-experimental/di/blob/cpp14/extension/test/injector.cpp which is a runtime version of the injector.

krzysztof-jusiak avatar Apr 12 '19 02:04 krzysztof-jusiak