CMake/Tests/CompileFeatures/cxx_default_function_templa...

13 lines
106 B
C++
Raw Normal View History

template<typename T = int>
int someFunc()
{
T t = 0;
return t;
}
void otherFunc()
{
someFunc();
}