meta: compare function shouldn't be static

This commit is contained in:
Michele Caini
2019-12-29 15:16:12 +01:00
parent 36d1b0a4bc
commit 3f67054f03
+1 -1
View File
@@ -180,7 +180,7 @@ auto find_if(Op op, const meta_type_node *node)
template<typename Type>
static bool compare(const void *lhs, const void *rhs) {
bool compare(const void *lhs, const void *rhs) {
if constexpr(!std::is_function_v<Type> && is_equality_comparable_v<Type>) {
return *static_cast<const Type *>(lhs) == *static_cast<const Type *>(rhs);
} else {