where did you get this code?
For templates, place all the non-inline member function definition in the .h
file. This seems contrary to ordinary, but for templates, those member
function will not be compiled and will be waiting for run-time type define.
I don't know if this will help, but at least, you can get something right.
"run-time type define"...
i don't think C++ provides this
.h
【在 P********e 的大作中提到】 : where did you get this code? : For templates, place all the non-inline member function definition in the .h : file. This seems contrary to ordinary, but for templates, those member : function will not be compiled and will be waiting for run-time type define. : I don't know if this will help, but at least, you can get something right. : : rhs);
P********e 发帖数: 2610
4
I mean this,
complex
g*******s 发帖数: 59
5
3x. i write these codes myself.
I was thinking to write them in a .cpp as usual but i fail
to know template function would be better put inside one .h file.
.h
【在 P********e 的大作中提到】 : where did you get this code? : For templates, place all the non-inline member function definition in the .h : file. This seems contrary to ordinary, but for templates, those member : function will not be compiled and will be waiting for run-time type define. : I don't know if this will help, but at least, you can get something right. : : rhs);