C++: What is the disadvantage of a template function?
What is the disadvantage of a template function?
A template function cannot be distributed in the obj form. This is because, the parameters with which the template function is going to be called is decided at the run time only. Therefore an obj form of a template function cannot be made by merely compiling it.




Comments
Log in or create a user account to comment.