aboutsummaryrefslogtreecommitdiff
path: root/src/DI/type_traits.hpp
diff options
context:
space:
mode:
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
{
};