Просмотр исходного кода

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

Michele Caini 6 лет назад
Родитель
Сommit
141fbf7472
1 измененных файлов с 1 добавлено и 1 удалено
  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>;
 
 
 }