Fixing compile issue.

This commit is contained in:
clemahieu 2017-08-24 02:50:27 -05:00
commit 74adba4250

View file

@ -1476,7 +1476,9 @@ void rai::rpc_handler::peers ()
{
std::stringstream text;
text << i->first;
peers_l.push_back(boost::property_tree::ptree::value_type(text.str (), std::to_string (i->second)));
boost::property_tree::ptree entry;
entry.put (text.str (), std::to_string (i->second));
peers_l.push_back (std::make_pair ("", entry));
}
response_l.add_child ("peers", peers_l);
response (response_l);