C++20 now allows for floating point values as template arguments
#include <iostream> template <float x> void foo(){ std::cout << x << std::endl; } int main(){ foo<3.0f>(); }
The above would compile with -std=c++20