diff options
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>>> |