ENUM numbers #1220
pcarruscag
started this conversation in
General
ENUM numbers
#1220
Replies: 2 comments 1 reply
-
Thanks @pcarruscag for finding out. Too bad this is the case though. |
Beta Was this translation helpful? Give feedback.
1 reply
-
Another good example of where things would break found by @TobiKattmann are the enums that start at 1 to then use a "NONE" case defined somewhere else, the NONE (0) case is often implicitly converted to boolean. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
@bigfooted @vdweide
Line 5320 of CPhysicalGeometry.cpp:
if(nSpanWiseSections[INFLOW -1] != nSpanWiseSections[OUTFLOW - 1]){
We are indeed relying on at least one enum having specific values.
Beta Was this translation helpful? Give feedback.
All reactions