rapidjson::Document writedoc;
writedoc.SetObject();
rapidjson::Document::AllocatorType& allocator = writedoc.GetAllocator();
std::string strName;
writedoc.AddMember("action",strName.c_str(), allocator);
这段代码中的AddMember函数,之前第二个参数 我填的是std::string的 .c_str() 后得到的字符串,但是到了3.7里面这么写报错 直接填写string变量还是报错