mirror of
https://github.com/esphome/esphome.git
synced 2025-07-29 06:36:45 +00:00
Fail with old lerp (#9914)
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
This commit is contained in:
parent
2f9475a927
commit
3a6cc0ea3d
@ -67,7 +67,10 @@ To bit_cast(const From &src) {
|
|||||||
return dst;
|
return dst;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
using std::lerp;
|
|
||||||
|
// clang-format off
|
||||||
|
inline float lerp(float completion, float start, float end) = delete; // Please use std::lerp. Notice that it has different order on arguments!
|
||||||
|
// clang-format on
|
||||||
|
|
||||||
// std::byteswap from C++23
|
// std::byteswap from C++23
|
||||||
template<typename T> constexpr T byteswap(T n) {
|
template<typename T> constexpr T byteswap(T n) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user