a: This call is the Default
b: This call is the Specialized
Okay, so this code works, and the function a(R param) is specialized for the A<int> so that it prints the item and then " Specialized". What I want is the a(R param) function specialized for another templated type. For example if I wanted...
I can't seem to get this to work. If possible I need this to work for single functions, rather than specializing the entire class. The program I'm working on needs to use complex values, but it has about one hundered functions and only about 8 need to be specialized. Any help is greatly appreciated!
Jsmith sorry it doesnt compile I'll post the error when I get home
Roshi
Thanks for the reply, this is an interesting workaround that I will need to use if I can't find something better but I would really like to be able to make the template more general so that I can add new classes later without going back to modify the original header.