Просмотр исходного кода

meta: compare function shouldn't be static

Michele Caini 6 лет назад
Родитель
Сommit
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 {