See http://cpptips.hyperformix.com/cpptips/specialize and http://www.gotw.ca/gotw/049.htm Also see TemplateSpecializations.