ild*_*arn 18
假设通过"显式模板实例化",你的意思是
template class Foo<int>; // explicit type instantiation
// or
template void Foo<int>(); // explicit function instantiation
Run Code Online (Sandbox Code Playgroud)
然后这些必须放在源文件中,因为它们考虑了定义,因此受ODR的约束.
| 归档时间: |
|
| 查看次数: |
6227 次 |
| 最近记录: |