What is the difference between a template and a macro?

d) What is the difference between a template and a macro? What is the difference between the parameter to a template and the parameter to a function? Is it possible to provide special behavior for one instance of a template but not for other instances?

Leave a Reply