<div dir="ltr"><div><div>Hi list<br><br></div>Does anyone have a simple example on sip interface to a template class. I have taken a look at qlist.sip and other information I have found on the internet but I have to admit that I am too stupid to understand it.<br></div><div>   I wrote this very simple class and have been trying for several hours to write a sip interface to it but without success.<br><br></div>/* Header file */<br><div>template <typename T><br>class tempsip {<br>    T var;<br>public:<br>    tempsip(T v);<br>    void print();<br>};<br><br></div><div>/* Source file */<br></div><div>#include "tempsip.h"<br>#include <iostream><br>using namespace std;<br>template<typename T><br>tempsip<T>::tempsip(T v)<br>{<br>    var = v;<br>}<br><br>template<typename T> void tempsip<T>::print()<br>{<br>    cout << var << endl;<br>}<br>template class tempsip<string>;<br>template class tempsip<double>;<br><br></div><div>Thanks a lot for any info.<br><br></div><div>Regards<br></div><div>Gudjon<br><br></div></div>