From 2d87c4e90ff0cf82f1bf0ce0662df9e17e97d7a0 Mon Sep 17 00:00:00 2001 From: qicosmos Date: Mon, 27 May 2024 20:27:59 +0800 Subject: [PATCH] compile --- iguana/pb_util.hpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/iguana/pb_util.hpp b/iguana/pb_util.hpp index c2bc5ffe..e16c909a 100644 --- a/iguana/pb_util.hpp +++ b/iguana/pb_util.hpp @@ -63,7 +63,10 @@ struct pb_base_impl : public pb_base { if (val.field_name == name) { info.offset = member_offset((T*)this, val.member_ptr); using value_type = typename decltype(val)::value_type; +#if defined(__clang__) || defined(_MSC_VER) || \ + (defined(__GNUC__) && __GNUC__ > 8) info.type_name = type_string(); +#endif } }, field);