Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Engine is in charge of platform creation, not SIMIX anymore
[simgrid.git] / src / s4u / s4u_Netzone.cpp
index c9dc1bd..211a90d 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (c) 2006-2018. The SimGrid Team. All rights reserved.          */
+/* Copyright (c) 2006-2019. 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. */
@@ -33,11 +33,11 @@ std::unordered_map<std::string, std::string>* NetZone::get_properties()
 }
 
 /** Retrieve the property value (or nullptr if not set) */
-const char* NetZone::get_property(const char* key)
+const char* NetZone::get_property(std::string key)
 {
   return properties_.at(key).c_str();
 }
-void NetZone::set_property(const char* key, const char* value)
+void NetZone::set_property(std::string key, std::string value)
 {
   simgrid::simix::simcall([this, key, value] { properties_[key] = value; });
 }