Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
better approximation of a typed #define
[simgrid.git] / include / simgrid / kernel / resource / Action.hpp
index 4961cef..c0c0aec 100644 (file)
@@ -13,7 +13,7 @@
 #include <boost/heap/pairing_heap.hpp>
 #include <boost/optional.hpp>
 
-const int NO_MAX_DURATION = -1.0;
+static constexpr int NO_MAX_DURATION = -1.0;
 
 namespace simgrid {
 namespace kernel {