Page 1 of 1

Template functions

PostPosted: Feb 5, 2004 @ 11:45am
by efortier

PostPosted: Feb 5, 2004 @ 2:45pm
by Dan East

PostPosted: Feb 5, 2004 @ 3:21pm
by Arisme
I think templates could be useful in that case if both functions are somewhat similar - I like this template use in for example

PostPosted: Feb 5, 2004 @ 7:13pm
by angedelamort

PostPosted: Feb 5, 2004 @ 8:16pm
by drgoldie

PostPosted: Feb 5, 2004 @ 8:38pm
by StephC

PostPosted: Feb 5, 2004 @ 9:00pm
by drgoldie

PostPosted: Feb 5, 2004 @ 10:52pm
by fast_rx

PostPosted: Feb 6, 2004 @ 12:34am
by Digby

PostPosted: Feb 6, 2004 @ 6:16am
by efortier
Hi all,

Thanks for all the replies. I tend to always forget the fact that templates are primarily compile-time tools.

Dan: I'll be using function pointers, thanks.

Digby: you are right. I just saw a chance to get rid of a dummy switch() and I couldn't resist! Thanks for the tips, and get on that optimization article! ;)

--Eric