diff --git a/centipede/analyze_corpora.cc b/centipede/analyze_corpora.cc index 9f63398e..8c871426 100644 --- a/centipede/analyze_corpora.cc +++ b/centipede/analyze_corpora.cc @@ -58,7 +58,7 @@ std::vector ReadCorpora(std::string_view binary_name, LOG(INFO) << "Reading features at: " << features_paths[i]; ReadShard(corpus_paths[i], features_paths[i], [&corpus](ByteArray input, FeatureVec features) { - corpus.emplace_back(std::move(input), std::move(features)); + corpus.push_back({std::move(input), std::move(features)}); }); } return corpus; diff --git a/centipede/distill_test.cc b/centipede/distill_test.cc index b503de10..4e0fd64d 100644 --- a/centipede/distill_test.cc +++ b/centipede/distill_test.cc @@ -88,7 +88,7 @@ std::vector ReadFromDistilled(const WorkDir &wd) { std::vector result; auto shard_reader_callback = [&result](ByteArray input, FeatureVec features) { - result.emplace_back(std::move(input), std::move(features)); + result.push_back({std::move(input), std::move(features)}); }; ReadShard(distilled_corpus_path, distilled_features_path, shard_reader_callback);