From b36d072ad7a7b9c6e30fcb25d6bbb001a8393468 Mon Sep 17 00:00:00 2001 From: HampusM Date: Sun, 10 Apr 2022 17:20:49 +0200 Subject: refactor: add factory class & make DI container return unique ptrs --- src/DI/type_traits.hpp | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'src/DI/type_traits.hpp') diff --git a/src/DI/type_traits.hpp b/src/DI/type_traits.hpp index e4b6640..6847c4f 100644 --- a/src/DI/type_traits.hpp +++ b/src/DI/type_traits.hpp @@ -1,16 +1,18 @@ #pragma once +#include "DI/factory.hpp" + #include -template -struct is_func : public std::false_type // NOLINT(readability-identifier-naming) +template +struct is_factory : public std::false_type // NOLINT(readability-identifier-naming) { }; template -struct is_func : public std::true_type +struct is_factory> : public std::true_type { }; -template -inline constexpr bool is_func_v = is_func::value; +template +inline constexpr bool is_factory_v = is_factory::value; -- cgit v1.2.3-18-g5258