Skip to content

Commit

Permalink
Specify std::invocable<FieldEntry> concept
Browse files Browse the repository at this point in the history
  • Loading branch information
alexkaratarakis committed Jul 30, 2023
1 parent ded6827 commit 1bdc08b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion include/fixed_containers/reflection.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

#include <array>
#include <cassert>
#include <concepts>
#include <string_view>
#include <tuple>

Expand Down Expand Up @@ -67,7 +68,7 @@ class FieldEntry
[[nodiscard]] constexpr int depth() const { return depth_; }
};

template <typename T, typename Func>
template <typename T, std::invocable<FieldEntry> Func>
constexpr void for_each_field_entry(const T& instance, Func func)
{
auto converter = [&func]<typename... Args>(
Expand Down

0 comments on commit 1bdc08b

Please sign in to comment.