From: Gabriel Corona Date: Mon, 27 Jul 2015 09:12:42 +0000 (+0200) Subject: [mc] Fix constness issue in MC_make_functions_index() X-Git-Tag: v3_12~380 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/43bd833fa2f2127b62b553803e0bb9dc7fb11218 [mc] Fix constness issue in MC_make_functions_index() Some versions of libstdc++ are not so happy about it. --- diff --git a/src/mc/mc_dwarf.cpp b/src/mc/mc_dwarf.cpp index e433de4966..37b97da381 100644 --- a/src/mc/mc_dwarf.cpp +++ b/src/mc/mc_dwarf.cpp @@ -1059,8 +1059,8 @@ static void MC_make_functions_index(simgrid::mc::ObjectInformation* info) // Sort the array by low_pc: std::sort(info->functions_index.begin(), info->functions_index.end(), - [](simgrid::mc::FunctionIndexEntry& a, - simgrid::mc::FunctionIndexEntry& b) + [](simgrid::mc::FunctionIndexEntry const& a, + simgrid::mc::FunctionIndexEntry const& b) { return a.low_pc < b.low_pc; });