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 |
Define the terms: field, record, table and database
What is C++ could you enplane me please?
How Find, Replace and Go To commands ca be used to substitute one character string for another? Explain with the heIp of an example.
What do you mean by stl?
tell about sorted linked list
Is there any error below, its a code to delete all entires from a map #include <map> #include iostream.h int main() { int i =0; map <int, char> TestMap; while(i<3) { TesMap.insert(TestMap::value_type(i,Test)); i++; } typedef map<int, char> :: iterator mapIter =TestMap.begin(); if(mapIter!=TestMap.end()) { TestMap.erase(mapItrer); ++mapIter; } return 0; }
how can u do connectivity in c++ language? plz send me connectivity code in c++ ?
What does stl mean in slang?
How do I convert a stl file?
Describe the My Computer and My Documents folders; identify the elements that are present in every Window.
What two types of containers does the stl provide?
I am doing my BS.c MATHS CAN I ABLE TO JOIN IN NIIT?