|
From: Ioannis V. <no...@ho...> - 2002-04-25 14:32:50
|
> -----Original Message----- > From: Wal...@va... [mailto:Wal...@va...] > Sent: Thursday, April 25, 2002 2:53 PM > To: no...@ho... > Subject: RE: [Dev-C++] templates > > > > queueElement is defined in the header file which is included > in the .cpp > file. My code compiles with Borland but not Dev-C++ If you compile with Borland using the AT switch, i am sure it will not compile either: E.g. bcc32 -AT temp.cpp -AT forces ANSI compatibility. > > #include <iostream.h> > #include <stdlib.h> > > #ifndef QUEUE > #define QUEUE > > const int MAX=401; > int i; > template <class queueElement> This is not definition of queueElement. Ioannis * Ioannis Vranos * Programming pages: http://www.noicys.cjb.net * Alternative URL: http://run.to/noicys |