Std::clamp on STM32 arduino project

I have this project which is built on ststm32 arduino framework using the std::clamp function. On one of my computers it builds just fine. On another, the compiler complains that:

error: ‘clamp’ is not a member of ‘std’

I thought maybe I need to explicitly add #include but this doesn’t change anything.

Why would the build be different from computer to computer?

Here is a link to the platformio.ini file for my project.