diff options
author | ROUVREAU Vincent <vincent.rouvreau@inria.fr> | 2020-09-30 09:18:36 +0200 |
---|---|---|
committer | ROUVREAU Vincent <vincent.rouvreau@inria.fr> | 2020-09-30 09:18:36 +0200 |
commit | c1b317640f81fefff7f7a774b239957fb632fa43 (patch) | |
tree | 697fbce8e859903d52b8f1067556340d5f35ca42 /src/Alpha_complex/utilities | |
parent | dab93ead76f1435f6b74937ef0377aafb0517439 (diff) |
code review: emplace_back versus push_back
Diffstat (limited to 'src/Alpha_complex/utilities')
-rw-r--r-- | src/Alpha_complex/utilities/alpha_complex_persistence.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Alpha_complex/utilities/alpha_complex_persistence.cpp b/src/Alpha_complex/utilities/alpha_complex_persistence.cpp index e86b34e2..3ce7b440 100644 --- a/src/Alpha_complex/utilities/alpha_complex_persistence.cpp +++ b/src/Alpha_complex/utilities/alpha_complex_persistence.cpp @@ -50,7 +50,7 @@ std::vector<double> read_weight_file(const std::string &weight_file) { double weight = 0.0; // Attempt read the weight in a double format, return false if it fails while (weights_ifstr >> weight) { - weights.push_back(weight); + weights.emplace_back(weight); } } else { std::cerr << "Unable to read weights file " << weight_file << std::endl; |