Repository navigation
Make CRGB::operator bool() explicit - #1450
Conversation
|
Converting to a draft until I verify that this works on compilers before C++ 11. |
|
@kriegsman what is the minimum acceptable compiler version for FastLED? For example, as-is, this change works for C++11. Should I target C++03? |
|
As I think noted elsewhere, let's aim for C++11 compliance; no need to go all the way back to C++03 since the Arduino IDE is providing C++11. |
|
One other note is that implicit conversions will need to be explicitly cast or used as a Boolean expression. See here: https://github.com/ssilverman/QNEthernet/blob/master/README.md#operator-bool-and-explicit If that caveat is fine, then let’s get this in. |
|
Thank you for the contributions and your help with FastLED! |
Resolves #819