私はboost::property_tree:ptree
オブジェクト内の文字列からいくつかのデータを保存しようとしている:ブーストjson_parser警告C4715
const char* data = "Here are json params";
boost:property_tree:ptree tr;
std::stringstream ss;
ss << data;
//Here i get warning
boost::property_tree:ptree::read_json(ss, tr);
警告以下の通りです:
boost\property_tree\detail\json_parser\standard_callbacks.hpp(132): warning C4715: 'boost::property_tree::json_parser::detail::standard_callbacks<boost::property_tree::basic_ptree<std::basic_string<char,std::char_traits<char>,std::allocator<char> >,std::basic_string<char,std::char_traits<char>,std::allocator<char> >,std::less<std::basic_string<char,std::char_traits<char>,std::allocator<char> > > > >::new_tree' : not all control paths return a value
誰も私がこの問題を解決する手助けすることはできますか?