We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
###例程: #include #include #include #include <configor/json.hpp>
using namespace configor;
// 用户类 struct User { int user_id; std::string user_name;
JSON_BIND(User, user_id, user_name);
};
int main(int argc, char** argv) { std::stringstream s("{"user_id": 10001, "user_name": "John"}");
// 解析json内容,并反序列化到user对象 User user; s >> json::wrap(user); // 序列化user对象并输出 std::cout << json::wrap(user) << std::endl; // {"user_id":10001,"user_name":"John"} return 0;
}
###错误: 严重性 代码 说明 项目 文件 行 禁止显示状态 错误 C2679 二进制“=”: 没有找到接受“bool”类型的右操作数的运算符(或没有可接受的转换) jsontest\jsontest\include\configor\configor_parser.hpp 125
The text was updated successfully, but these errors were encountered:
@x1ng-z master分支的代码都是通过了单测的,使用下最新的代码试试呢
Sorry, something went wrong.
No branches or pull requests
###例程:
#include
#include
#include
#include <configor/json.hpp>
using namespace configor;
// 用户类
struct User
{
int user_id;
std::string user_name;
};
int main(int argc, char** argv)
{
std::stringstream s("{"user_id": 10001, "user_name": "John"}");
}
###错误:
严重性 代码 说明 项目 文件 行 禁止显示状态
错误 C2679 二进制“=”: 没有找到接受“bool”类型的右操作数的运算符(或没有可接受的转换) jsontest\jsontest\include\configor\configor_parser.hpp 125
The text was updated successfully, but these errors were encountered: