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
Further rename the identifiers of flexml to simgrid_parse_*
[simgrid.git]
/
include
/
xbt
/
utility.hpp
diff --git
a/include/xbt/utility.hpp
b/include/xbt/utility.hpp
index 6a3b542fbd859f94da2fa2394caa196be21a484c..bb599d6c29b68d5f5171d711d3c637d59c43cce0 100644
(file)
--- a/
include/xbt/utility.hpp
+++ b/
include/xbt/utility.hpp
@@
-27,7
+27,7
@@
} \
static constexpr bool is_valid_##EnumType(int raw_value) \
{ \
} \
static constexpr bool is_valid_##EnumType(int raw_value) \
{ \
- return raw_value
< _XBT_COUNT_ARGS(__VA_ARGS__);
\
+ return raw_value
>= 0 && raw_value < _XBT_COUNT_ARGS(__VA_ARGS__);
\
} \
enum class EnumType { __VA_ARGS__ } /* defined here to handle trailing semicolon */
} \
enum class EnumType { __VA_ARGS__ } /* defined here to handle trailing semicolon */