-->

function overloading vs. function template.

0 minute read

 Difference between function overloading and function template.

Function overloading
Function template
Function overloading does not support to create a generic function.
Function template supports to create a generic function.
Automatic conversions are applied to arguments on the function overloading.
No automatic type conversions are applied to arguments on the template functions.
It does not eliminate code duplication for different types.
It does eliminate code duplication for different types.
Program development is not as easier and more manageable as compared to function template.
Program development is as easier and more manageable as compared to function overloading.