inline template function?

后端 未结 4 1832
梦毁少年i
梦毁少年i 2020-12-29 02:38

Do I need inline template functions if they are included in several cpp files? Thanks.

template inline QString GetText(         


        
4条回答
  •  不思量自难忘°
    2020-12-29 03:07

    It seem that the template method must be defined in the same file which is building, You don't need to use the 'inline' keyword for they were build in each cpp file which include it.

提交回复
热议问题