Hi All,

In one of the books i have read that "Function templates are better alternatives than using macros".

Can anybody please tell me how?
If possible, specify an example.

Though macros aren't type safe,is it possible to perform type checking on macros by any means?

Thanks in Advance