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

◆ operator()() [7/7]

template<typename T>
template<typename U>
fl::enable_if< fl::is_floating_point< T >::value &&fl::is_floating_point< U >::value &&!fl::is_same< T, U >::value, void >::type fl::default_value_visitor< T >::operator() ( const U & value)
inline

Definition at line 116 of file types.h.

116 {
117 // Convert between floating point types (e.g., double to float)
118 storage = static_cast<T>(value);
119 result = &storage;
120 }

References FL_NOEXCEPT, result, storage, and fl::type_rank< T >::value.