WHAT IS THE DISADVANTAGE OF A TEMPLATE FUNCTION?

Mahesh Rawat

Total Post:138

Points:690
Posted by  Mahesh Rawat
OOPS 
 1508  View(s)
Ratings:
Rate this:
  1. Mahesh Rawat

    Post:138

    Points:690
    What is the disadvantage of a template function?

    A template function cannot be distributed in the obj form. This is because, fuction with which parameters 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.

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!