correctly read entire vector
This commit is contained in:
@ -317,8 +317,6 @@ void TestConfigReader::global_vector(const yaml_event_t &event)
|
|||||||
data >> num;
|
data >> num;
|
||||||
for (std::size_t i = 0; i < num; ++i) {
|
for (std::size_t i = 0; i < num; ++i) {
|
||||||
data >> value;
|
data >> value;
|
||||||
if (data.eof()) break;
|
|
||||||
config.global_vector.push_back(value);
|
config.global_vector.push_back(value);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user