Creating a template class object using a template constructor

前端 未结 3 1337
[愿得一人]
[愿得一人] 2021-02-09 18:45

I\'m having trouble creating a class object from a template class in which I need the constructor to also be a template and accept a parameter when the object is created. Howev

3条回答
  •  一生所求
    2021-02-09 19:29

    Template code should be visible at the time of instantiation, meaning that the definition of the functions must also be in the header.

提交回复
热议问题