Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Replace const reference to std::string by std::string_view (sonar).
[simgrid.git] / src / mc / remote / RemoteProcess.cpp
index 1ae6a208091e68d359bfa415c4706b6287e067c9..bf2fe5bb24f51d0b6d6bba40beeceb14ee1a1dde 100644 (file)
@@ -21,6 +21,7 @@
 #include <memory>
 #include <mutex>
 #include <string>
+#include <string_view>
 
 using simgrid::mc::remote;
 
@@ -31,7 +32,7 @@ namespace mc {
 
 // ***** Helper stuff
 
-static bool is_filtered_lib(const std::string& libname)
+static bool is_filtered_lib(std::string_view libname)
 {
   return libname != "libsimgrid";
 }