Skip to content

Commit

Permalink
compile
Browse files Browse the repository at this point in the history
  • Loading branch information
qicosmos committed May 27, 2024
1 parent 48c1ad6 commit 863c16a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions iguana/pb_util.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<value_type>();
#endif
}
},
field);
Expand Down

0 comments on commit 863c16a

Please sign in to comment.