di
di copied to clipboard
How to integrate Boost::DI with RTTR
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
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.