X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/149c63f36e15b8500b1e826bda5138318ff7ba2b..b60c8af597ab1859e4b804954e6e6df37e8cff06:/src/xbt/xbt_os_file.cpp diff --git a/src/xbt/xbt_os_file.cpp b/src/xbt/xbt_os_file.cpp index e28fe03b8f..4316ee4367 100644 --- a/src/xbt/xbt_os_file.cpp +++ b/src/xbt/xbt_os_file.cpp @@ -17,8 +17,8 @@ #include #endif +#include #include -#include #include /* POSIX dirname */ simgrid::xbt::Path::Path() @@ -33,14 +33,14 @@ simgrid::xbt::Path::Path() #endif } -std::string simgrid::xbt::Path::get_dir_name() +std::string simgrid::xbt::Path::get_dir_name() const { std::string p(path_); const char* res = dirname(&p[0]); return std::string(res, strlen(res)); } -std::string simgrid::xbt::Path::get_base_name() +std::string simgrid::xbt::Path::get_base_name() const { std::string p(path_); const char* res = basename(&p[0]);