RE: [Dev-C++] template and prototype
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Ioannis V. <no...@ya...> - 2002-03-03 02:25:16
|
> -----Original Message----- > From: dev...@li... > [mailto:dev...@li...] On Behalf > Of h.r...@gm... > Sent: Sunday, March 03, 2002 3:58 AM > To: Dev...@li... > Subject: RE: [Dev-C++] template and prototype > > > all of that I have done ( some days ago ) > It is namely a warning, but no exe is created. Indeed! I just checked BC++ and they have not implemented export too (the compiler ignores it). I knew its existence from theory (TC++PL Special Edition). Till it gets implemented you can do one of the following: a) Provide the definition at every compilation unit, possibly in a header file. b) Do not use templates but overloaded functions. This implies one definition for anything making it a mess to maintain. Also in overloading there may take place implicit type conversions without any warning and that may be bad. Do not follow option b. :) Follow option a and be patient till it gets implemented. The official C++ standard is very recent, and the extent in which it has been implemented is magnificent for such a small period and such a big size. Ioannis * Ioannis Vranos * Programming pages: http://www.noicys.d2g.com * Alternative URL: http://run.to/noicys |