Function overloading is more flexible (and more convenient) than template function specialization You can change more things in an overload. Click here to read the article