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
Because the field is not constexpr we cannot use this methods in template metaprogramming, and instead we have created python scripts to post process and fix the generated code
Given the following schema: (escaped < below)
<types>
<enum name="EnumSBESample" encodingType="uint8" semanticType="EnumSBESample">
<validValue name="a">0</validValue>
<validValue name="b">1</validValue>
</enum>
</types>
This will need to be used carefully. If using the constant method then this will not be able to change in a later version as existing code will be bound to the constant method and not pick up a change if the presence becomes "required".
Activity
[C++] Generate methods for enums with a constant value to allow meta …
mjpt777 commentedon Oct 9, 2018
This will need to be used carefully. If using the constant method then this will not be able to change in a later version as existing code will be bound to the constant method and not pick up a change if the presence becomes "required".