私はC++ライブラリRapidJsonから関数AddMemberを使用してC++ rapidjson addMember&rapidxml
すべての作業罰金
jsvalue.AddMember("Fare", "0", allocator);
は、パラメータとして、私は文字列を使用する場合が、私はとRapidXmlの機能を使用するようにしてください私は、文字列
にキャストし、なぜノード名を取得するためのパラメータは、I致命的なエラーが出ますstd::cout << "name : " << xmlnode_chd->name() << " value : " << xmlnode_chd->first_node()->value() << std::endl;
jsvalue.AddMember(std::string(xmlnode_chd->name()), std::string(xmlnode_chd->first_node()->value()), allocator);
xmlnode_chd->名前()、char *を返し、それはです
これは私が取得エラーメッセージです:
/home/otf/test/./include/xml2json.hpp|210|error:「rapidjson :: GenericValue>への呼び出しに該当する機能:: AddMember( std :: string、std :: string、rapidjson :: GenericDocument :: :: AllocatorType &) '|