【发布时间】:2011-03-03 11:52:16
【问题描述】:
可能重复:
Why should the implementation and the declaration of a template class be in the same header file?
例如,在定义模板类时,为什么类方法的实现需要在标头中?为什么它们不能在实现文件中(cpp/cxx)?
【问题讨论】:
-
这是我不知道哪个问题的完全重复 :)
-
我也找不到这样的问题...
-
他们可以,只是你通常不希望他们这样。