Parcourir la source

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

Michele Caini il y a 5 ans
Parent
commit
c750b746b3
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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 {
 class ENTT_API meta_node {
     static_assert(std::is_same_v<Type, std::remove_cv_t<std::remove_reference_t<Type>>>, "Invalid type");
     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>) {
         if constexpr(!std::is_function_v<Type> && is_equality_comparable_v<Type>) {
             return *static_cast<const Type *>(lhs) == *static_cast<const Type *>(rhs);
             return *static_cast<const Type *>(lhs) == *static_cast<const Type *>(rhs);
         } else {
         } else {