CMake/Tests/CompileFeatures/cxx_extern_templates.cpp

13 lines
122 B
C++

template<typename T>
void someFunc()
{
}
extern template void someFunc<int>();
void otherFunc()
{
someFunc<int>();
}