Kaynağa Gözat

meta: explicit return type to get around an issue with VS2017

Michele Caini 5 yıl önce
ebeveyn
işleme
c750b746b3
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  1. 1 1
      src/entt/meta/internal.hpp

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

@@ -386,7 +386,7 @@ template<typename Type>
 class ENTT_API meta_node {
     static_assert(std::is_same_v<Type, std::remove_cv_t<std::remove_reference_t<Type>>>, "Invalid type");
 
-    [[nodiscard]] static auto compare(const void *lhs, const void *rhs) {
+    [[nodiscard]] static 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 {