Jonathan Clark (TDF LibreOffice) has suggested in Making sure you're not a bot! to use std::lerp for linear interpolation. That works with the compilers in Jenkins for LibreOffice. Is there any problem using it for Collabora as well? I ask, because I do not see it anywhere in the code. I would use it in https://gerrit.collaboraoffice.com/c/online/+/9385.
std::lerp got added to in C++20, so should generally be okay to
use in our code. There might be some old baseline toolchains (Android
and Apple being the usual culprits) that don’t yet support it despite
nominally supporting C++20, so watch out for Jenkins results, but if TDF
Jenkins accepts it then that increases chances that CO Jenkins will
accept it as well.
(oh my, the poor email-to-forum gateway is apparently not up to its task, so what I originally sent as
std::lerp got added to <cmath> in C++20
ended up here as
std::lerp got added to in C++20
)
I’ll give it a try. If it does not work, I can still go back to manual linear interpolation.