CMake/Tests/CompileFeatures/cxx_extern_templates.cpp

13 lines
123 B
C++

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