From 3f67054f03c03ccc834e6f559d9e1874fbbcdd5f Mon Sep 17 00:00:00 2001 From: Michele Caini Date: Mon, 2 Dec 2019 08:13:44 +0100 Subject: [PATCH] meta: compare function shouldn't be static --- src/entt/meta/meta.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/entt/meta/meta.hpp b/src/entt/meta/meta.hpp index 3d6b9a7f6..8994d4fa9 100644 --- a/src/entt/meta/meta.hpp +++ b/src/entt/meta/meta.hpp @@ -180,7 +180,7 @@ auto find_if(Op op, const meta_type_node *node) template -static bool compare(const void *lhs, const void *rhs) { +bool compare(const void *lhs, const void *rhs) { if constexpr(!std::is_function_v && is_equality_comparable_v) { return *static_cast(lhs) == *static_cast(rhs); } else {