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

This commit is contained in:
Michele Caini
2020-03-19 23:41:49 +01:00
parent c9a3ae8149
commit 141fbf7472

View File

@@ -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>;
}