What is the disadvantage of templates ?
Answers were Sorted based on User's Feedback
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 |
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 |
write a program that will accept a number and print.its equivalent in words the maximum input number is 9999
sir please send me bpcl previous question papers
0 Answers BPCL Bharat Petroleum,
differentiate between private, public and protected data members of the class using example.
What are the various types of stl containers?
What do you mean by stl?
How to write a function that goes through an array of characters and eliminates any elements that are not letters (Legal letters can be either in an uppercase or a lowercase format.) The function removeNonLetters should return the new effective size of the array as the result.
What are the symptoms of stl?
How Find, Replace and Go To commands ca be used to substitute one character string for another? Explain with the heIp of an example.
How does an stl file work?
Can we use stl in coding interviews?
write a c++ to define a class box with length,breadth and height as data member and input value(),printvalue() and volume() as member functions.
What are stl algorithms?