error C2679 template class
<p>The error occurs in the default constructor</p>

<p><strong>Error:</strong>
error C2679: binary '=' : no operator found which takes a right-hand operand of type 'int' (or there is no acceptable conversion)</p>

<p>The Code:</p>

<pre><code>#ifndef _SLOT_H
#define _SLOT_H
#include &lt;string&gt;
using namespace std;
template &lt;class T&gt;
class slot
{
private:
    string key;
    T data;
public:
    slot();
    slot(string str);
    slot(string str, T tempdata);
    slot(const slot &amp;source);
    string getkey();
    T getdata();
    void setkey(string str);
    void setdata(T tempdata);
};

template&lt;class T&gt;
slot&lt;T&gt;::slot()
{
    key = "";
    data = NULL;
}
</code></pre>
