replace constexpr to consteval -> no generate extern obj
This commit is contained in:
parent
0b9cbf7dd2
commit
d85169f5fc
1 changed files with 1 additions and 1 deletions
|
@ -989,7 +989,7 @@ template <typename T>
|
||||||
extern T nonexist_object;
|
extern T nonexist_object;
|
||||||
|
|
||||||
template <auto V>
|
template <auto V>
|
||||||
constexpr auto get_member_name() noexcept {
|
consteval 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 {
|
||||||
|
|
Loading…
Reference in a new issue