dlr-gtlab / gtlab-core

GTlab Core Framework
https://www.gtlab.de
Other
7 stars 2 forks source link

direct int cast of scoped enum value for `GtEnumProperty` #1146

Closed rmDevNull closed 7 months ago

rmDevNull commented 7 months ago

To allow use of scoped enums, direct cast to int is required

Change gt_enumproperty.h:158 to

GtModeProperty::setVal(getMetaEnum().valueToKey(static_cast<int>(value)), success);