From: Arnaud Giersch Date: Sat, 28 Oct 2017 08:43:06 +0000 (+0200) Subject: Try to fix regexes with older gcc. X-Git-Tag: v3.18~369 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/c30af81e2d4c73ccdc758a06f9b154cff0ab857b?ds=sidebyside Try to fix regexes with older gcc. See https://stackoverflow.com/questions/8060025/is-this-c11-regex-error-me-or-the-compiler. --- diff --git a/src/mc/remote/RemoteClient.cpp b/src/mc/remote/RemoteClient.cpp index d243abb427..32be2092c8 100644 --- a/src/mc/remote/RemoteClient.cpp +++ b/src/mc/remote/RemoteClient.cpp @@ -111,8 +111,8 @@ static bool is_filtered_lib(const std::string& libname) static std::string get_lib_name(const std::string& pathname) { - static const std::regex so_re("\\.so[.0-9]*$"); - static const std::regex version_re("-[.0-9-]*$"); + static const std::regex so_re("\\.so[\\.0-9]*$", std::regex_constants::basic); + static const std::regex version_re("-[\\.0-9-]*$", std::regex_constants::basic); std::string map_basename = simgrid::xbt::Path(pathname).getBasename(); std::string libname;