Template operator linker error

前端 未结 3 780
我寻月下人不归
我寻月下人不归 2020-12-19 20:28

I have a linker error I\'ve reduced to a simple example. The build output is:

debug/main.o: In function main\':
C:\\Users\\Dani\\Documents

3条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-19 20:44

    You have two standard options:

    1. Define the operator inside the header file

    2. Explicitly instantiate the template

提交回复
热议问题