You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Unexpected behavior with add_flag and std::optional<bool> #694
I did verify the behavior you were seeing, has to do with the bool being in a wrapper, so the field is interpreted as an integer in the flag which implies a counting of the number flags for historical reasons and to support some particular use cases. In any case as part of that it assigns a zero to the variable. I am looking into possible solutions.
Activity
phlptp commentedon Jan 10, 2022
let me take a look, not sure I have tried anything with an optional bool
phlptp commentedon Jan 10, 2022
I did verify the behavior you were seeing, has to do with the bool being in a wrapper, so the field is interpreted as an integer in the flag which implies a counting of the number flags for historical reasons and to support some particular use cases. In any case as part of that it assigns a zero to the variable. I am looking into possible solutions.