Browse Source

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

Michele Caini 6 năm trước cách đây
mục cha
commit
141fbf7472
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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`.
  */
 template<id_type Value>
-using tag = integral_constant<Value>;
+using tag [[deprecated("use entt::integral_constant instead")]] = integral_constant<Value>;
 
 
 }