Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

json不支持std::variant类型吗?编译出错,能支持std::variant类型吗? #200

Open
BisonReto opened this issue Jul 22, 2023 · 3 comments

Comments

@BisonReto
Copy link

No description provided.

@bbbgan
Copy link
Collaborator

bbbgan commented Jul 22, 2023

请问一下variant的需求场景是什么样的呢?

@BisonReto
Copy link
Author

比如我要支持多个形状图形(任意其中一种)的json转换,我定义多种形状为一个variant,要转化为json格式

@bbbgan
Copy link
Collaborator

bbbgan commented Jul 26, 2023

暂时支持了variant的to_json,拉取最新的代码。
关于variant的from_json,之后思考一下支持的方式!

比如我要支持多个形状图形(任意其中一种)的json转换,我定义多种形状为一个variant,要转化为json格式

171930433 pushed a commit to 171930433/iguana that referenced this issue Jun 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants