mirror of
https://codeberg.org/DawnMagnet/reflect-cpp
synced 2026-12-06 02:36:18 +08:00
@@ -111,6 +111,9 @@ with open("generated_code6.cpp", "w", encoding="utf-8") as codefile:
|
||||
*/
|
||||
|
||||
template <class T>
|
||||
#if __GNUC__
|
||||
[[gnu::no_sanitize_undefined]]
|
||||
#endif
|
||||
auto get_field_names() {
|
||||
if constexpr (std::is_pointer_v<std::decay_t<T>>) {
|
||||
return get_field_names<std::remove_pointer_t<T>>();
|
||||
|
||||
Reference in New Issue
Block a user