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 various types of stl containers?
how to overload << and >> operator in c++
method overloading means what?
i wanted to know about questions about c,c++ , which is required for placements.... im a fresher
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
HOW TO GET "H1B" -VISA 4 USA FOR MY SON?HE HAD COMPLETED "MS"(IT)FROM AUSTALIA 2007.I AM WORKING IN U.S.A.
what is c++
What is C++ could you enplane me please?
What is a stl vector?
What do stl stand for?
#define CUBE(x) (x*x*x) main() { int a,b=3; a=cube(b++); printf("%d %d",a,b); } What should be the value of a and b? My calc a=4 but syst a=6 how pls tell me if you know it?
What do you mean by stl?