FastLED 3.9.15
Loading...
Searching...
No Matches

◆ operator()() [7/10]

void fl::detail::JsonToBoolVisitor::operator() ( const float & raw)
inline

Definition at line 123 of file json_visitors.h.

123 {
124 mValue = raw != 0.0f;
125 // No double promotion (see JsonToIntVisitor — same #3002 reason).
126 mResult.addWarning("float " + fl::to_string(raw, 6) + " converted to bool " + (mValue ? "true" : "false"));
127 }
string to_string(T value) FL_NOEXCEPT
Definition string.h:450
TypeConversionResult mResult

References mResult, mValue, and fl::to_string().

+ Here is the call graph for this function: