I have a template class as follows:
I would like to make it a singelton class;
I did some thing as follows:,But It is showing me errors...

template<class _base>
class Writerublic _base

{
public:

}

static Writer<_base>* Instance();

};

template<class _base>
Writer<_base>* Writer<_base>::Instance()
{
static WriterThread<_base> theWriter();
return &theWriter;
}

Is it right?

Thanks in advance