-
编译失败: |
Beta Was this translation helpful? Give feedback.
Answered by
qicosmos
Mar 21, 2024
Replies: 2 comments 1 reply
-
Could you try: struct AS
{
struct IAS{
double y;
};
double x;
IAS x2;
};
REFLECTION(AS::IAS,y);
REFLECTION(AS,x,x2);
int main() {
AS a;
std::string str;
iguana::to_json(a,str);
std::cout << str <<"\n";
return 0;
} |
Beta Was this translation helpful? Give feedback.
1 reply
-
这应该是一个bug,你先用这个方法绕过去,我晚点修复一下这个bug struct AS {
struct IAS {
double y;
};
double x;
IAS x2;
};
using IAS = AS::IAS;
REFLECTION(IAS, y);
REFLECTION(AS, x, x2); |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
171930433
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
这应该是一个bug,你先用这个方法绕过去,我晚点修复一下这个bug