A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[mc] Fix constness issue in MC_make_functions_index()
[simgrid.git]
/
src
/
mc
/
mc_dwarf.cpp
diff --git
a/src/mc/mc_dwarf.cpp
b/src/mc/mc_dwarf.cpp
index
e433de4
..
37b97da
100644
(file)
--- 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(),
// 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;
});
{
return a.low_pc < b.low_pc;
});