Make code adhere to C++98 (WIP)

This commit is contained in:
Luciano Iam 2020-02-20 23:16:02 +01:00 committed by Robin Gareus
parent 8db9755d1e
commit 6e499e2cc5
No known key found for this signature in database
GPG key ID: A090BCE02CF57F04
13 changed files with 96 additions and 89 deletions

View file

@ -47,13 +47,13 @@ NodeStateMessage::NodeStateMessage (void *buf, size_t len)
, _write (false)
{
try {
std::string s { static_cast<char *>(buf), len };
std::string s (static_cast<char *>(buf), len);
std::istringstream is { s };
std::istringstream is (s);
pt::ptree root;
pt::read_json (is, root);
_state = NodeState { root.get<std::string> ("node") };
_state = NodeState (root.get<std::string> ("node"));
pt::ptree addr = root.get_child ("addr", pt::ptree ());