---
title: "What is the disadvantage of a template function?"  
description: "What is the disadvantage of a template function?"  
author: "Anonymous User"  
published: 2012-08-17  
updated: 2020-09-19  
canonical: https://www.mindstick.com/interview/1508/what-is-the-disadvantage-of-a-template-function  
category: "visual c++"  
tags: ["visual c++", "c++", "c#", "mindstick", "interview question", "template function"]  
reading_time: 1 minute  

---

# 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.

## Answers

### Answer by Anonymous User

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.


---

Original Source: https://www.mindstick.com/interview/1508/what-is-the-disadvantage-of-a-template-function

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
