FastLED 3.10.8
Loading...
Searching...
No Matches

◆ operator()() [5/7]

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

Definition at line 119 of file types.h.

119 {
120 // Convert float to integer
121 storage = static_cast<T>(value);
122 result = &storage;
123 }

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