Fixed -fsanitize=undefined issue; #16, possibly #15

This commit is contained in:
Patrick Urbanke
2023-12-04 20:16:09 +01:00
parent cbfdf44356
commit 2e3872c651
3 changed files with 5 additions and 2 deletions
+3
View File
@@ -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>>();