boost-ext / di

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

[Question] Difference between scoped scope and shared scope. #475

Closed FranckRJ closed 4 years ago

FranckRJ commented 4 years ago

Hello, I've tried to find more information about scoped scope and shared scope but I don't understand what's the difference between the two (didn't find any doc about it, and I don't understand the difference by reading the examples).

By reading the source code it looks like shared scope can be thread safe, and it provide a config to make it the default scope for an injector, but beside that i don't know.

Can you help me ? Thanks !

krzysztof-jusiak commented 4 years ago

Hi @FranckRJ,

There is no that much difference between them

Thanks, Kris

FranckRJ commented 4 years ago

Ok, i see better now, thanks !