Try to fix tests (#43)

This commit is contained in:
Bela Schaum 2022-07-25 12:07:57 +02:00 committed by GitHub
parent c793b69c40
commit f32bbb0f09
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -914,7 +914,7 @@ string nameof_short_type_rtti(const char* tn) noexcept {
} }
#endif #endif
template <auto V> template <auto V, auto U = V>
constexpr auto n() noexcept { constexpr auto n() noexcept {
[[maybe_unused]] constexpr auto custom_name = customize::member_name<V>(); [[maybe_unused]] constexpr auto custom_name = customize::member_name<V>();
@ -953,7 +953,7 @@ 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<&(static_v<union_type<decltype(get_base_type(V))>>.f.*V)>(); return n<V, &(static_v<union_type<decltype(get_base_type(V))>>.f.*V)>();
} }
} }