Visibility of template specialization of C++ function

前端 未结 9 831
情书的邮戳
情书的邮戳 2021-01-01 11:21

Suppose I have fileA.h which declares a class classA with template function SomeFunc(). This function is implemented directly

9条回答
  •  南笙
    南笙 (楼主)
    2021-01-01 12:00

    Have you added a prototype with parameters to your header file?

    I mean is there somewhere in fileA.h

    template<> SomeFunc();
    

    If not that's probably the reason.

提交回复
热议问题