From 1bdc08b0adb9bda514b9828d08136ee55d599ddc Mon Sep 17 00:00:00 2001 From: Alexander Karatarakis Date: Sun, 30 Jul 2023 12:31:37 -0700 Subject: [PATCH] Specify std::invocable concept --- include/fixed_containers/reflection.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/fixed_containers/reflection.hpp b/include/fixed_containers/reflection.hpp index 58fbd08a..1cafd876 100644 --- a/include/fixed_containers/reflection.hpp +++ b/include/fixed_containers/reflection.hpp @@ -6,6 +6,7 @@ #include #include +#include #include #include @@ -67,7 +68,7 @@ class FieldEntry [[nodiscard]] constexpr int depth() const { return depth_; } }; -template +template Func> constexpr void for_each_field_entry(const T& instance, Func func) { auto converter = [&func](