Browse Source

any: use is_void_v as needed

Michele Caini 2 years ago
parent
commit
66ee7bab32
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/entt/core/any.hpp

+ 1 - 1
src/entt/core/any.hpp

@@ -66,7 +66,7 @@ class basic_any {
 
 
     template<typename Type>
     template<typename Type>
     static const void *basic_vtable(const operation op, const basic_any &value, const void *other) {
     static const void *basic_vtable(const operation op, const basic_any &value, const void *other) {
-        static_assert(!std::is_same_v<Type, void> && std::is_same_v<std::remove_cv_t<std::remove_reference_t<Type>>, Type>, "Invalid type");
+        static_assert(!std::is_void_v<Type> && std::is_same_v<std::remove_cv_t<std::remove_reference_t<Type>>, Type>, "Invalid type");
         const Type *element = nullptr;
         const Type *element = nullptr;
 
 
         if constexpr(in_situ<Type>) {
         if constexpr(in_situ<Type>) {