@@ -19,40 +19,37 @@ namespace sb::di
1919 [[nodiscard]] ServiceExtractor inject () const { return ServiceExtractor{provider}; }
2020 };
2121
22- template <class TService , class TImplementation = TService, class TRegisterer = SingletonRegisterer >
23- struct InjectedSingleton : TService, Injected, RegisterSingleton<TService, TImplementation, TRegisterer >
22+ template <class TService , class TImplementation = TService>
23+ struct InjectedSingleton : TService, Injected, RegisterSingleton<TService, TImplementation>
2424 {
2525 using Injected::Injected;
2626 };
2727
28- template <class TService , class TRegisterer >
29- struct InjectedSingleton <TService, TService, TRegisterer> : Injected,
30- RegisterSingleton<TService, TService, TRegisterer>
28+ template <class TService >
29+ struct InjectedSingleton <TService, TService> : Injected, RegisterSingleton<TService, TService>
3130 {
3231 using Injected::Injected;
3332 };
3433
35- template <class TService , class TImplementation = TService, class TRegisterer = ScopedRegisterer >
36- struct InjectedScoped : TService, Injected, RegisterScoped<TService, TImplementation, TRegisterer >
34+ template <class TService , class TImplementation = TService>
35+ struct InjectedScoped : TService, Injected, RegisterScoped<TService, TImplementation>
3736 {
3837 using Injected::Injected;
3938 };
4039
41- template <class TService , class TRegisterer >
42- struct InjectedScoped <TService, TService, TRegisterer> : Injected, RegisterScoped<TService, TService, TRegisterer>
40+ template <class TService > struct InjectedScoped <TService, TService> : Injected, RegisterScoped<TService, TService>
4341 {
4442 using Injected::Injected;
4543 };
4644
47- template <class TService , class TImplementation = TService, class TRegisterer = TransientRegisterer >
48- struct InjectedTransient : TService, Injected, RegisterTransient<TService, TImplementation, TRegisterer >
45+ template <class TService , class TImplementation = TService>
46+ struct InjectedTransient : TService, Injected, RegisterTransient<TService, TImplementation>
4947 {
5048 using Injected::Injected;
5149 };
5250
53- template <class TService , class TRegisterer >
54- struct InjectedTransient <TService, TService, TRegisterer> : Injected,
55- RegisterTransient<TService, TService, TRegisterer>
51+ template <class TService >
52+ struct InjectedTransient <TService, TService> : Injected, RegisterTransient<TService, TService>
5653 {
5754 using Injected::Injected;
5855 };
0 commit comments