Re: Book recommendations: Generic programming
On Mar 15, 12:47 am, Jorgen Grahn <grahn+n...@snipabacken.dyndns.org>
wrote:
On Wed, 14 Mar 2007 03:22:04 CST, Alf P. Steinbach <a...@start.no> wrote:
[...]
Both deal mostly with the implementation of a general-purpose library
though. Maybe I am lazy or unintelligent ... but it seems to me that
there is a use case for templates in everyday, non-library
development.
Probably, but...
I generally find that the higher up the ladder you go (from
basic library to final application), the more you use
inheritance, and the less you use templates. I've not given
much thought to the reasons behind this, but it seems to be true
in my own work.
Also, of course, application level code tends to be considerably
more volatile, and a lot of places tend to limit templates to
only the stablest code, because of the source code coupling they
result in.
--
James Kanze (GABI Software) email:james.kanze@gmail.com
Conseils en informatique orient?e objet/
Beratung in objektorientierter Datenverarbeitung
9 place S?mard, 78210 St.-Cyr-l'?cole, France, +33 (0)1 30 23 00 34
--
[ See http://www.gotw.ca/resources/clcm.htm for info about ]
[ comp.lang.c++.moderated. First time posters: Do this! ]