Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Fix lua compilation
[simgrid.git] / src / xbt / PropertyHolder.cpp
index 6ed3c8a..6bdafbd 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (c) 2015-2020. The SimGrid Team. All rights reserved.          */
+/* Copyright (c) 2015-2021. The SimGrid Team. All rights reserved.          */
 
 /* This program is free software; you can redistribute it and/or modify it
  * under the terms of the license (GNU LGPL) which comes with this package. */
@@ -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