“undefined reference” to a template class function

前端 未结 4 1140
予麋鹿
予麋鹿 2020-12-10 22:50

I am writing a template class for an array of objects, call it arrayobjclass, which holds pointers to other objects, specifically to other arrays in my implementation. The a

4条回答
  •  既然无缘
    2020-12-10 23:11

    Define your function templates in the header. Compiler needs to see them.

    Cheers & hth.,

提交回复
热议问题