mirror of https://github.com/ARMmbed/mbed-os.git
The relationnal operators were targeting the base class which defines an implicit constructor to an integral value. This is wrong as it allows SafeEnum instances to be compared against integers. The fix is simple: define relationnal operators for the derived class. The derived class is known as it is passed as a template parameter of the base class. For extra safety the SafeEnum constructor is now explicit and protected. |
||
---|---|---|
.. | ||
FEATURE_BLE | ||
FEATURE_BOOTLOADER | ||
cellular | ||
cryptocell/FEATURE_CRYPTOCELL310 | ||
deprecated_warnings | ||
device_key | ||
frameworks | ||
lorawan | ||
lwipstack | ||
mbedtls | ||
nanostack | ||
netsocket | ||
nfc | ||
storage | ||
unsupported |