3.7 加入json串中有问题

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变量还是报错

求帮助,到底是改了什么东西还是bug

我已经找到使用方法了。。。。。不知道3.7改了这个有什么意义

这个跟cocos没什么关系吧?这个第三方的库,cocos只负责更新他们的稳定版本,没有任何修改权利!!!