[Interpolation in c++]
Solved
Qt 6
-
Good morning guys,
I hope you're all doing well.
So I wanted to use the lerp function to make an interpolation.
But I got this error where "no member named lerp in std" however I made sure to include cmath.h.
Is the lerp function deprecated ? Should I implement it by myself ?
Thank you all.
-
You need to enable C++20 support (and your compiler needs to be sufficiently new).
In qmake, you can do this with:
CONFIG += c++20