Talk:C++ Programming/Templates

"max" is a horrible use of the template system. Read the Scott Meyers article on it to realize how bad it is. A different template example should be chosen.

"Third, 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." - This is a genuine drawback, but it is expressed incorrectly (or confusingly). Reread the code bloat link. The problem is with a compiler generating all the functions for a type when only some limited number are used. - Willow.