I'm trying to do something like this:
public:
ULONG dispatch(char *command, size_t length, Stream<T> *stream);
<< moderator edit: fixed code tags >>
Where Stream is a template. I can make the class I'm putting it in a template as well - no big deal, I just don't know how anyways. Here's all relevant code:
template <class T> class Stream
{
private:
T *service;
public:
Stream(T *s){ this->service = s; }
~Stream(void){ this->close(); }
virtual ULONG send(char*, size_t);
virtual ULONG printf(char*, ...);
virtual ULONG close(void);
};
template <class T> class ConnectionDescriptor
{
public:
ULONG dispatch(char *command, size_t length, Stream<T> *stream);
};
Thank you in advance