diff --git a/README.md b/README.md index e00e2d7..ef6d80b 100644 --- a/README.md +++ b/README.md @@ -96,7 +96,7 @@ struct Fizz : IFizz { int counter_ { 0 }; }; -inline static auto injectFizz = inversify::Injectable::inject( +inline auto injectFizz = inversify::Injectable::inject( inversify::Inject(symbols::foo), inversify::Inject(symbols::bar) ); diff --git a/example/src/logger.hpp b/example/src/logger.hpp index 2da489d..b80329b 100644 --- a/example/src/logger.hpp +++ b/example/src/logger.hpp @@ -54,6 +54,6 @@ class Logger : public ILogger { }; namespace inversify = mosure::inversify; -inline static auto injectLogger = inversify::Injectable::inject( +inline auto injectLogger = inversify::Injectable::inject( inversify::Inject(symbols::settings) ); diff --git a/example/src/mock_logger.hpp b/example/src/mock_logger.hpp index a0e5cf3..94adfa1 100644 --- a/example/src/mock_logger.hpp +++ b/example/src/mock_logger.hpp @@ -15,4 +15,4 @@ class MockLogger : public ILogger { }; namespace inversify = mosure::inversify; -inline static auto injectMockLogger = inversify::Injectable::inject(); +inline auto injectMockLogger = inversify::Injectable::inject(); diff --git a/example/src/service.hpp b/example/src/service.hpp index 50ab4b4..eb25edb 100644 --- a/example/src/service.hpp +++ b/example/src/service.hpp @@ -25,6 +25,6 @@ class Service : public IService { }; namespace inversify = mosure::inversify; -inline static auto injectService = inversify::Injectable::inject( +inline auto injectService = inversify::Injectable::inject( inversify::Inject(symbols::logger) ); diff --git a/example/src/settings.hpp b/example/src/settings.hpp index 3d1a779..69a1c3b 100644 --- a/example/src/settings.hpp +++ b/example/src/settings.hpp @@ -24,4 +24,4 @@ struct Settings : ISettings { }; namespace inversify = mosure::inversify; -inline static auto injectSettings = inversify::Injectable::inject(); +inline auto injectSettings = inversify::Injectable::inject(); diff --git a/test/mock/fizz.hpp b/test/mock/fizz.hpp index 87df45d..4d46825 100644 --- a/test/mock/fizz.hpp +++ b/test/mock/fizz.hpp @@ -25,7 +25,7 @@ struct Fizz : IFizz { double bar_; }; -inline static auto _ = inversify::Injectable::inject( +inline auto _ = inversify::Injectable::inject( inversify::Inject(symbols::foo), inversify::Inject(symbols::bar) );