c++14 introduced variable templates so I can do:
template <typename T>
const auto PI = std::acos(static_cast<T>(-1));
Now, when using this variable can the type be deduced? For example:
const auto TWO_PI = 2.0F * PI;
Here I would expect PI<float>
it seems like the compiler should be able to deduce that. Why won't the compiler select this for me?