Connecting Tech Pros Worldwide Forums | Help | Site Map

Re: Template code organization

Thelma Roslyn Lubkin
Guest
 
Posts: n/a
#1: Sep 12 '08
dizzy <dizzy@roedu.netwrote:
: Hello

: When working with template heavy code one will have to face the
: inherent "problems" of the inclusion model because of the requirement
: to provide the definition of the template at every place where it is
: used. This means problems with include separation and problems with
: code duplication (the later depends largely on your toolchain but
: unless I am missing out on a modern standard compliant and free as in
: free beer compiler that does remove template code instantiation
: duplicates then this is a problem I have to deal with).

Are you using the preprocessor's #ifdef and #ifndef keywords
to reduce the amount of duplication?
--thelma
: --
: Dizzy

Closed Thread