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 |
What are the components of stl?
What is stl in c++ with example?
Give the output of the following program main() {char *p='a'; int *i=100/*p; } what will be the value of *i= 1
a program using one dimensional array that searches a number if it is found on the list of given input numbers given by the user and locate its exact location in the list.
Write a program in C++ to concatenate two strings into third string using pointers
Why should a c++ programmer be interested in stl?
what is strcture i++ i ++i answer to this i=5 what is the out put
Define the terms: field, record, table and database
Find the error in the following program struct point {struct point *next; int data; } x; main() {int...data; } x; main() {int i; for(x=p;x!=0;) x=x->next,x++; freelist(x); } freelist(x) {free(x); return }
What is C++ could you enplane me please?
What is the use of stl?
Distinguish between: a) Normal layout & Print Layout views b) Windows Clipboard & office Clipboard c) Save & Save As Commands d) Program File & Data File e) Pie Charts & Barr Charts