Преглед изворни кода

meta: compare function shouldn't be static

Michele Caini пре 6 година
родитељ
комит
3f67054f03
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      src/entt/meta/meta.hpp

+ 1 - 1
src/entt/meta/meta.hpp

@@ -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 {