Jelajahi Sumber

meta: reduces the number of instantiations a bit

Michele Caini 3 tahun lalu
induk
melakukan
19ccba3a6c
1 mengubah file dengan 1 tambahan dan 5 penghapusan
  1. 1 5
      src/entt/meta/policy.hpp

+ 1 - 5
src/entt/meta/policy.hpp

@@ -68,11 +68,7 @@ struct as_void_t final {
  */
 template<typename Type>
 struct is_meta_policy
-    : std::disjunction<
-          std::is_same<Type, as_ref_t>,
-          std::is_same<Type, as_cref_t>,
-          std::is_same<Type, as_is_t>,
-          std::is_same<Type, as_void_t>> {};
+    : std::bool_constant<std::is_same_v<Type, as_ref_t> || std::is_same_v<Type, as_cref_t> || std::is_same_v<Type, as_is_t> || std::is_same_v<Type, as_void_t>> {};
 
 /**
  * @brief Helper variable template.