aboutsummaryrefslogtreecommitdiff
path: root/src/DI/type_traits.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/type_traits.hpp
parentc2f41a5b278df2837f4cc5617df07248a048d93c (diff)
refactor: improve factories
Diffstat (limited to 'src/DI/type_traits.hpp')
-rw-r--r--src/DI/type_traits.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/DI/type_traits.hpp b/src/DI/type_traits.hpp
index a852a4f..e4b6640 100644
--- a/src/DI/type_traits.hpp
+++ b/src/DI/type_traits.hpp
@@ -1,6 +1,6 @@
#pragma once
-#include <functional>
+#include <type_traits>
template <typename NotAFunc>
struct is_func : public std::false_type // NOLINT(readability-identifier-naming)
@@ -8,7 +8,7 @@ struct is_func : public std::false_type // NOLINT(readability-identifier-naming)
};
template <typename Return, typename... Args>
-struct is_func<std::function<Return(Args...)>> : public std::true_type
+struct is_func<Return (*)(Args...)> : public std::true_type
{
};