Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Prefer free functions over member functions (sonar).
authorArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Wed, 17 Feb 2021 13:48:19 +0000 (14:48 +0100)
committerArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Wed, 17 Feb 2021 13:55:09 +0000 (14:55 +0100)
src/xbt/PropertyHolder.cpp

index 00ca797..6bdafbd 100644 (file)
@@ -41,7 +41,7 @@ template <class Assoc> void PropertyHolder::set_properties(const Assoc& properti
 {
   if (not properties_)
     properties_ = std::make_unique<std::unordered_map<std::string, std::string>>();
-  std::unordered_map<std::string, std::string> props(properties.cbegin(), properties.cend());
+  std::unordered_map<std::string, std::string> props(std::cbegin(properties), std::cend(properties));
 #if __cplusplus >= 201703L
   props.merge(properties_);
 #else