Don't use bool return values on successful write, instead rely on exception throwing
This commit is contained in:
committed by
Patrick Niklaus
parent
11ee632cfe
commit
9d2628b74f
+2
-9
@@ -71,15 +71,8 @@ bool serializeVectorIntoAdjacencyArray(const std::string &filename,
|
||||
for (auto const &vec : data)
|
||||
all_data.insert(all_data.end(), vec.begin(), vec.end());
|
||||
|
||||
if (!file.SerializeVector(offsets))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!file.SerializeVector(all_data))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
file.SerializeVector(offsets);
|
||||
file.SerializeVector(all_data);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user