CMake/Tests/CompileFeatures/cxx_variable_templates.cpp
Stephen Kelly dd043c3f21 Features: Add support for C++14 features.
Record the features implemented by GNU 4.9 and Clang 3.4.
2014-05-22 18:01:23 +02:00

11 lines
160 B
C++

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;
}