Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
A std:string is ok here.
authorArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Thu, 12 Jul 2018 14:13:10 +0000 (16:13 +0200)
committerArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Thu, 12 Jul 2018 14:40:34 +0000 (16:40 +0200)
src/surf/surf_interface.cpp

index 40a5736..30481fa 100644 (file)
@@ -148,7 +148,7 @@ std::ifstream* surf_ifsopen(std::string name)
   xbt_assert(not name.empty());
 
   std::ifstream* fs = new std::ifstream();
-  if (is_absolute_file_path(name.c_str())) { /* don't mess with absolute file names */
+  if (is_absolute_file_path(name)) { /* don't mess with absolute file names */
     fs->open(name.c_str(), std::ifstream::in);
   }