summaryrefslogtreecommitdiff
path: root/src/Alpha_complex/utilities/alpha_complex_persistence.cpp
diff options
context:
space:
mode:
authorROUVREAU Vincent <vincent.rouvreau@inria.fr>2020-10-05 10:33:23 +0200
committerROUVREAU Vincent <vincent.rouvreau@inria.fr>2020-10-05 10:33:23 +0200
commit74143b372d3d93fc2139974fa85906047acee8a7 (patch)
tree332398c2e3d5f1bf0f9fae384aee9ca5a0bc87db /src/Alpha_complex/utilities/alpha_complex_persistence.cpp
parent91ec6130f63a8a117ca9dc0bfff0cd663a1e35e7 (diff)
code review: push_back versus emplace_back
Diffstat (limited to 'src/Alpha_complex/utilities/alpha_complex_persistence.cpp')
-rw-r--r--src/Alpha_complex/utilities/alpha_complex_persistence.cpp2
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 3ce7b440..e86b34e2 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.emplace_back(weight);
+ weights.push_back(weight);
}
} else {
std::cerr << "Unable to read weights file " << weight_file << std::endl;