CMake/Tests/CompileFeatures/cxx_extern_templates.cpp

13 lines
122 B
C++
Raw Normal View History

2014-04-04 15:11:37 +04:00
template<typename T>
void someFunc()
{
}
extern template void someFunc<int>();
void otherFunc()
{
someFunc<int>();
}