From c30af81e2d4c73ccdc758a06f9b154cff0ab857b Mon Sep 17 00:00:00 2001 From: Arnaud Giersch Date: Sat, 28 Oct 2017 10:43:06 +0200 Subject: [PATCH] Try to fix regexes with older gcc. See https://stackoverflow.com/questions/8060025/is-this-c11-regex-error-me-or-the-compiler. --- src/mc/remote/RemoteClient.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- 2.20.1