Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Prefer emplace_back.
authorArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Wed, 2 Jun 2021 09:09:14 +0000 (11:09 +0200)
committerArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Wed, 2 Jun 2021 09:37:14 +0000 (11:37 +0200)
src/kernel/resource/NetworkModelIntf_test.cpp

index 357a130..418cc54 100644 (file)
@@ -20,8 +20,8 @@ TEST_CASE("kernel::resource::NetworkModelIntf: Factors invalid callbacks: except
 {
   std::vector<std::string> models{"LV08", "CM02"};
 #if HAVE_SMPI
-  models.push_back("SMPI");
-  models.push_back("IB");
+  models.emplace_back("SMPI");
+  models.emplace_back("IB");
 #endif
 
   for (const auto& model : models) {