fix
This commit is contained in:
parent
2cb9751cb6
commit
c793b69c40
1 changed files with 2 additions and 2 deletions
|
@ -946,14 +946,14 @@ union union_type {
|
||||||
};
|
};
|
||||||
|
|
||||||
template <typename T>
|
template <typename T>
|
||||||
inline constexpr auto v = T{};
|
inline constexpr auto static_v = T{};
|
||||||
|
|
||||||
template <auto V>
|
template <auto V>
|
||||||
constexpr auto get_member_name() noexcept {
|
constexpr auto get_member_name() noexcept {
|
||||||
if constexpr (std::is_member_function_pointer_v<decltype(V)>) {
|
if constexpr (std::is_member_function_pointer_v<decltype(V)>) {
|
||||||
return n<V>();
|
return n<V>();
|
||||||
} else {
|
} else {
|
||||||
return n<&(constexpr_static_init<union_type<decltype(get_base_type(V))>>.f.*V)>();
|
return n<&(static_v<union_type<decltype(get_base_type(V))>>.f.*V)>();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue