diff --git a/src/struct_pb/examples/main.cpp b/src/struct_pb/examples/main.cpp index 0c440175a..c0fd83dde 100644 --- a/src/struct_pb/examples/main.cpp +++ b/src/struct_pb/examples/main.cpp @@ -27,7 +27,8 @@ struct person { std::string name; int age; }; -#if __cplusplus >= 202002L + +#if __GNUC__ < 11 || __cplusplus < 202002L YLT_REFL(person, id, name, age); #endif