diff --git a/src/psc_bgk_util/table.hxx b/src/psc_bgk_util/table.hxx index 79cc8b144..47da585bd 100644 --- a/src/psc_bgk_util/table.hxx +++ b/src/psc_bgk_util/table.hxx @@ -101,7 +101,8 @@ class Table static std::vector parse_data_row(std::istringstream& word_stream, int expected_n_cols) { - std::vector data_row(expected_n_cols); + std::vector data_row; + data_row.reserve(expected_n_cols); for (std::string word; word_stream >> word;) { data_row.push_back(std::stod(word)); }