aboutsummaryrefslogtreecommitdiff
path: root/src/DI/container.hpp
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2022-03-03 19:17:48 +0100
committerHampusM <hampus@hampusmat.com>2022-06-13 17:56:54 +0200
commit70b21e90d7be4d892b7d17440d64630e7ee1a575 (patch)
tree429e9038df3263b31e98df301d0a0c85671057fa /src/DI/container.hpp
parentc2f41a5b278df2837f4cc5617df07248a048d93c (diff)
refactor: improve factories
Diffstat (limited to 'src/DI/container.hpp')
-rw-r--r--src/DI/container.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/DI/container.hpp b/src/DI/container.hpp
index 2dd194f..93722b6 100644
--- a/src/DI/container.hpp
+++ b/src/DI/container.hpp
@@ -34,7 +34,7 @@ public:
template <class Interface>
BindingBuilder<Interface> bind();
- template <class Interface, class = std::enable_if_t<std::is_abstract_v<Interface>>>
+ template <class Interface, class = std::enable_if_t<std::is_class_v<Interface>>>
std::shared_ptr<Interface> get() const;
template <typename Interface, typename = std::enable_if_t<is_func_v<Interface>>>