Przeglądaj źródła

type_traits: deprecated entt::tag because of the more general purpose alternative entt::integral_constant

Michele Caini 6 lat temu
rodzic
commit
141fbf7472
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      src/entt/core/type_traits.hpp

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

@@ -215,7 +215,7 @@ using member_class_t = typename member_class<Member>::type;
  * @tparam Value A constant value at least convertible to `id_type`.
  * @tparam Value A constant value at least convertible to `id_type`.
  */
  */
 template<id_type Value>
 template<id_type Value>
-using tag = integral_constant<Value>;
+using tag [[deprecated("use entt::integral_constant instead")]] = integral_constant<Value>;
 
 
 
 
 }
 }