Revision dfa5401af6d9cd5ba21b68d532d84bdd23517ea4 authored by Brad King on 14 June 2022, 18:20:32 UTC, committed by Brad King on 14 June 2022, 18:21:01 UTC
1 parent 3b4bd01
cxx_variable_templates.cpp
template <typename T>
constexpr T pi = T(3.1415926535897932385);
int someFunc()
{
auto pi_int = pi<int>;
auto pi_float = pi<float>;
return pi_int - 3;
}
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...