Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


What is the disadvantage of templates ?

Answers were Sorted based on User's Feedback



What is the disadvantage of templates ?..

Answer / atul jawale

Disadvantages of templates:

1. Many compilers historically have very poor support for
templates, so the use of templates can make code somewhat
less portable.
2. Almost all compilers produce confusing, unhelpful error
messages when errors are detected in template code. This
can make templates difficult to develop.
3. Each use of a template may cause the compiler to
generate extra code (an instantiation of the template), so
the indiscriminate use of templates can lead to code bloat,
resulting in excessively large executables.

Is This Answer Correct ?    40 Yes 7 No

What is the disadvantage of templates ?..

Answer / ranjit

one disadvantage is non-standards conforming compilers.
templates can also sometimes make maintaining code harder
and less clear, although the exact opposite can be said as
well.
Templates aren't *inherently* code bloating.

Is This Answer Correct ?    14 Yes 15 No

Post New Answer

More STL Interview Questions

What is the use of stl?

0 Answers  


Explain stl.

0 Answers  


What is Constructor

14 Answers   Angel Broking,


what's the difference between abstract class and concreate class? what's the meaning of standard template library(STL)?

2 Answers  


Why should a c++ programmer be interested in stl?

0 Answers  


Give two integer arrays A & B.A has n elements and B has ' n-1 ' elements . A has all the elements that are there in B. But B has one missing element. Write a function that takes arrays , A & B as imnput and finds the missing element in most optised manner .

4 Answers   Zycus Infotech,


what are you now programming Languages C+

1 Answers   HCL,


What is the STL?

2 Answers   Epson, HP,


What are the various types of stl containers?

0 Answers  


how to overload << and >> operator in c++

3 Answers   Wipro,


tell about sorted linked list

1 Answers  


Define stl.

0 Answers  


Categories