Commit b3212a66 authored by Tiago Peixoto's avatar Tiago Peixoto
Browse files

Allow empty strings as vector<string> values in graphml

parent 083a4d64
......@@ -286,6 +286,8 @@ istream& operator>>(istream& in, vector<Type>& vec)
vec.clear();
string data;
getline(in, data);
if (data == "")
return in; // empty strings are OK
vector<string> split_data;
split(split_data, data, is_any_of(","));
for (size_t i = 0; i < split_data.size(); ++i)
......
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