RE: [Dev-C++] template and prototype
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: <h.r...@gm...> - 2002-03-03 03:04:47
|
> > -----Original Message----- > > 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 after your hint, I read something. In ARM (1995) export is not mentioned. In Stroustrup, The C++ ... (1998) there is a whole chapter about template, export etc. Is that what you mean with TC++PL ? Again many thanks I will choose option a. placing the definition in one Header and include it. Horst -- -------------------------- Horst Rößner Postf. 1802 52205 Stolberg 02402 / 6178 0171 6455636 GMX - Die Kommunikationsplattform im Internet. http://www.gmx.net |