A
Adrian Hawryluk
I have a template class that takes multiple parameters, most of which
are optional.
99.8% of the body is the same though use of typedefing. Is there a way
of not having copy code the body of the class? The only two ways I've
thought of is using a define for the body, or using a separate file
which I use to include (or include the same file and use #if/#endif to
paste the body in.
I'm not sure if either is appropriate. Any comments?
Adrian
--
_____________________________________________________________________
\/Adrian_Hawryluk BSc. - Specialties: UML, OOPD, Real-Time Systems\/
\ My newsgroup writings are licensed under the Creative Commons /
\ Attribution-Noncommercial-Share Alike 3.0 License /
\_____[http://creativecommons.org/licenses/by-nc-sa/3.0/]_____/
\/______[blog:__http://adrians-musings.blogspot.com/]______\/
are optional.
99.8% of the body is the same though use of typedefing. Is there a way
of not having copy code the body of the class? The only two ways I've
thought of is using a define for the body, or using a separate file
which I use to include (or include the same file and use #if/#endif to
paste the body in.
I'm not sure if either is appropriate. Any comments?
Adrian
--
_____________________________________________________________________
\/Adrian_Hawryluk BSc. - Specialties: UML, OOPD, Real-Time Systems\/
\ My newsgroup writings are licensed under the Creative Commons /
\ Attribution-Noncommercial-Share Alike 3.0 License /
\_____[http://creativecommons.org/licenses/by-nc-sa/3.0/]_____/
\/______[blog:__http://adrians-musings.blogspot.com/]______\/