Commit 5d5790bb authored by Dominik Charousset's avatar Dominik Charousset

Fix use of has_type_id

parent 4b55caa9
......@@ -583,7 +583,7 @@ struct inspector_access<optional<T>> : optional_inspector_access<optional<T>> {
template <class... Ts>
struct inspector_access<variant<Ts...>> {
static_assert(
(has_type_id<Ts> && ...),
(has_type_id_v<Ts> && ...),
"inspectors requires that each type in a variant has a type_id");
using value_type = variant<Ts...>;
......
......@@ -102,7 +102,7 @@ struct has_type_id {
/// Returns `type_name_v<T>` if available, "anonymous" otherwise.
template <class T>
string_view type_name_or_anonymous() {
if constexpr (has_type_id<T>)
if constexpr (has_type_id_v<T>)
return type_name_v<T>;
else
return "anonymous";
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment