You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
enum TT{
a,
b,
// JSON_BIND(TT,a,b);
};
class Person
{
public:
int age;
string name;
TT mi;
std::map<std::string, int> m;
int tt;
JSON_BIND(Person,age,name,mi,m,tt);
};``
请问枚举类型该怎么使用JSON_BIND这个宏呢?
例如如下代码