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](