boost-ext / di

C++14 Dependency Injection Library
https://boost-ext.github.io/di
1.16k stars 140 forks source link

Late Binding feature #511

Closed mostafajalal20 closed 3 years ago

mostafajalal20 commented 3 years ago

Expected Behavior

how can we use make_injector without binding in compile time and pass to another place for binding

int main() {
    auto injector = di::make_injector();
    some_function_for_binding(injector);
}

I want to bind it in another place.Actually I want to be decided at runtime which class binding to this injector.