|
-
July 11th, 2002, 09:55 AM
#1
template
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 Writer ublic _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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|