Hi all,
I have a template function which is member of this class and I am calling this function in of my other member functions of the same class. But I am getting the warning as
Summing is my template function and I am calling it in another member function of my class as
I am defining this template function as usual in cpp file (not in the header file)
In the header file I declared as
In cpp file
Script is my class.
Thanks.
I have a template function which is member of this class and I am calling this function in of my other member functions of the same class. But I am getting the warning as
Code:
see reference to function template instantiation 'T script_out::SUMMING<float>(T,std::string,T)' being compiled 1> with 1> [ 1> T=float 1> ]
Code:
Fout<<SUMMING<float>(10,file1,37);
In the header file I declared as
Code:
template <class T> T SUMMING (T rad,std::string filename,T level);
Code:
template <class T> T script:: SUMMING (T rad,std::string filename,T level) { Rest of the code }
Thanks.
Comment