Skip to content

Commit

Permalink
Revert "remove static from injectables"
Browse files Browse the repository at this point in the history
This reverts commit 8c3fbfd.
  • Loading branch information
mosure committed Jan 15, 2021
1 parent c5d6db7 commit 7c1f4e1
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ struct Fizz : IFizz {
int counter_ { 0 };
};
inline auto injectFizz = inversify::Injectable<Fizz>::inject(
inline static auto injectFizz = inversify::Injectable<Fizz>::inject(
inversify::Inject<int>(symbols::foo),
inversify::Inject<double>(symbols::bar)
);
Expand Down
2 changes: 1 addition & 1 deletion example/src/logger.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,6 @@ class Logger : public ILogger {
};

namespace inversify = mosure::inversify;
inline auto injectLogger = inversify::Injectable<Logger>::inject(
inline static auto injectLogger = inversify::Injectable<Logger>::inject(
inversify::Inject<ISettings>(symbols::settings)
);
2 changes: 1 addition & 1 deletion example/src/mock_logger.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ class MockLogger : public ILogger {
};

namespace inversify = mosure::inversify;
inline auto injectMockLogger = inversify::Injectable<MockLogger>::inject();
inline static auto injectMockLogger = inversify::Injectable<MockLogger>::inject();
2 changes: 1 addition & 1 deletion example/src/service.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,6 @@ class Service : public IService {
};

namespace inversify = mosure::inversify;
inline auto injectService = inversify::Injectable<Service>::inject(
inline static auto injectService = inversify::Injectable<Service>::inject(
inversify::Inject<ILoggerPtr>(symbols::logger)
);
2 changes: 1 addition & 1 deletion example/src/settings.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@ struct Settings : ISettings {
};

namespace inversify = mosure::inversify;
inline auto injectSettings = inversify::Injectable<Settings>::inject();
inline static auto injectSettings = inversify::Injectable<Settings>::inject();
2 changes: 1 addition & 1 deletion test/mock/fizz.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ struct Fizz : IFizz {
double bar_;
};

inline auto _ = inversify::Injectable<Fizz>::inject(
inline static auto _ = inversify::Injectable<Fizz>::inject(
inversify::Inject<int>(symbols::foo),
inversify::Inject<double>(symbols::bar)
);

0 comments on commit 7c1f4e1

Please # to comment.