diff options
author | HampusM <hampus@hampusmat.com> | 2022-03-27 20:22:52 +0200 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2022-06-13 17:56:57 +0200 |
commit | ea8cc60dc4af9b88d13f4a143986a3fad7e1691a (patch) | |
tree | ccb622de7c03aef041916b1bd451d10939fbf861 /src/DI/container.hpp | |
parent | 3b326d77dceb3cc70abd54943689d76ecd96fc8b (diff) |
refactor: clean up DI code
Diffstat (limited to 'src/DI/container.hpp')
-rw-r--r-- | src/DI/container.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/DI/container.hpp b/src/DI/container.hpp index 974780a..2efb265 100644 --- a/src/DI/container.hpp +++ b/src/DI/container.hpp @@ -34,7 +34,7 @@ public: template <class Interface> BindingBuilder<Interface> bind() noexcept; - template <class Interface, class = std::enable_if_t<std::is_class_v<Interface>>> + template <class Interface, class = std::enable_if_t<std::is_abstract_v<Interface>>> std::shared_ptr<Interface> get() const noexcept; template <typename Interface, typename = std::enable_if_t<is_func_v<Interface>>> |