From: Martin Quinson Date: Wed, 28 Mar 2018 20:00:40 +0000 (+0200) Subject: better approximation of a typed #define X-Git-Tag: v3.20~591 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/d3c605045fe8c525f32393a054425d72edf47b18?hp=ef006f9b04cf2f6cddd617d130f364cf27e47ebd better approximation of a typed #define --- diff --git a/include/simgrid/kernel/resource/Action.hpp b/include/simgrid/kernel/resource/Action.hpp index 4961cef1d9..c0c0aec5e4 100644 --- a/include/simgrid/kernel/resource/Action.hpp +++ b/include/simgrid/kernel/resource/Action.hpp @@ -13,7 +13,7 @@ #include #include -const int NO_MAX_DURATION = -1.0; +static constexpr int NO_MAX_DURATION = -1.0; namespace simgrid { namespace kernel {