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
[sonar] Declare functions "const" in examples/ and teshsuite/.
[simgrid.git]
/
examples
/
s4u
/
engine-filtering
/
s4u-engine-filtering.cpp
diff --git
a/examples/s4u/engine-filtering/s4u-engine-filtering.cpp
b/examples/s4u/engine-filtering/s4u-engine-filtering.cpp
index 639e1edc886340d8673320ce482415e38bc584fe..b240d22c275043c48a13aba8bf3205785e8480c7 100644
(file)
--- a/
examples/s4u/engine-filtering/s4u-engine-filtering.cpp
+++ b/
examples/s4u/engine-filtering/s4u-engine-filtering.cpp
@@
-29,7
+29,7
@@
static bool filter_speed_more_than_50Mf(const simgrid::s4u::Host* host)
*/
class SingleCore {
public:
*/
class SingleCore {
public:
- bool operator()(const simgrid::s4u::Host* host) { return host->get_core_count() == 1; }
+ bool operator()(const simgrid::s4u::Host* host)
const
{ return host->get_core_count() == 1; }
};
/* This functor is a bit more complex, as it saves the current state when created.
};
/* This functor is a bit more complex, as it saves the current state when created.