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

This commit is contained in:
Michele Caini
2020-08-10 18:16:26 +02:00
parent 0ac07e2e83
commit c750b746b3

View File

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