"matrut" <[EMAIL PROTECTED]> writes:

> I'm using g++ ver. 3.3.6 and got trouble as follows:

Try posting a complete compilable example.

Your code (as posted) fails to compile with gcc-3.3.2 and 3.4.0;
I very much doubt it compiles with 3.3.6 either.

"virtual" can't be used here:

> template<class T> virtual class CAbstractQueue

> {
> public:
>     CAbstractQueue(void){}
>     ~CAbstractQueue(void){}
> };
>
> template<class T> class CQueue : public CAbstractQueue<T>
> {
> public:

This:

>     CQueue(void): CAbstractQueue() {}

Should be:

      CQueue(void): CAbstractQueue<T>() {}

>     ~CQueue(void){}
> ...

Missing ';' here:

> }

Cheers,
-- 
In order to understand recursion you must first understand recursion.
Remove /-nsp/ for email.
_______________________________________________
help-gplusplus mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-gplusplus

Reply via email to