qicosmos / rest_rpc

modern C++(C++11), simple, easy to use rpc framework
MIT License
1.66k stars 365 forks source link

请问怎么支持union类型的参数? #89

Open chris78l opened 1 year ago

chris78l commented 1 year ago

请问怎么支持union类型的参数, union内部包括自定义结构体的情况。例如 struct Params{ int type; union { struct Type0 { int param1; int param2; ... }type0; }; };