RE: RE: [Dev-C++] typedef for a class
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Ioannis V. <iv...@em...> - 2003-03-22 15:10:35
|
> -----Original Message----- > From: dev...@li... > [mailto:dev...@li...] On Behalf > Of Pierre Raoul > Sent: Saturday, March 22, 2003 11:51 AM > To: dev...@li... > Cc: Jaap de Wolff > Subject: RE:RE: [Dev-C++] typedef for a class > > > Jaap, > > Thank you for your answer. This point escaped me. I found > some very interresting "workarounds", > > www.gotw.ca/gotw/079.htm > > http://msdn.microsoft.com/library/en-us/dndeepc/html/deep08032000.asp > > but they need to modyfy the code in each place where > smart_ptr appears. > > As I don't want to search all the "smart_ptr" occurrences, I > will stay with the "#define" solution. > > Regards > > Pierre Raoul A template class definition is not a type. For example: template <class T> class myclass { }; You can't do typedef myclass whatever; But of course you can do: typedef myclass<int> whatever; myclass<int> IS a type. Ioannis Vranos * Programming pages: http://www.noicys.freeurl.com * Alternative URL: http://run.to/noicys |