I am trying to use the runtime_injector (because our application with hundreds of bindings now takes several minutes to compile and compilation time looks exponential :worried: ). We're using named injection and shared_factory extension extensively in our application (because of #252).
Unfortunately it looks like using named injection or shared_factory does not work with the runtime_injector. This issue is about named injection (I'll create another one for the usage of shared_factory).
Please let me know if this is a known limitation or if I am using it wrong.
I expect the following output (which I get if don't use the runtime_injector):
/home/cdu/CLionProjects/poc-boost-di-runtime-injector/cmake-build-debug/main
CachedLoggerFactory::create()
LoggerFactory::create()
Process finished with exit code 0
Actual Behavior
The program crashes:
/home/cdu/CLionProjects/poc-boost-di-runtime-injector/cmake-build-debug/main
Process finished with exit code 11
Context
I am trying to use the
runtime_injector
(because our application with hundreds of bindings now takes several minutes to compile and compilation time looks exponential :worried: ). We're using named injection and shared_factory extension extensively in our application (because of #252).Unfortunately it looks like using
named injection
orshared_factory
does not work with theruntime_injector
. This issue is about named injection (I'll create another one for the usage ofshared_factory
).Please let me know if this is a known limitation or if I am using it wrong.
Sample code
Expected Behavior
I expect the following output (which I get if don't use the
runtime_injector
):Actual Behavior
The program crashes:
Steps to Reproduce the Problem
Specifications