Commit 4ebdeba7 authored by Dominik Charousset's avatar Dominik Charousset

Port caf-vec to the new node_id API

parent b15a194e
......@@ -150,7 +150,10 @@ std::istream& operator>>(std::istream& in, node_id& x) {
string node_hex_id;
uint32_t pid;
if (in >> rd_line(node_hex_id, '#') >> pid) {
x = node_id{pid, node_hex_id};
if (auto nid = make_node_id(pid, node_hex_id))
x = std::move(*nid);
else
in.setstate(std::ios::failbit);
}
return in;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment