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