Lighter wrote:
Why is template function not allowed to have defaut arguments?
We know that class template is allowed to have default arguments in
C++ standard, why is template function not? I can't think out the
reason for doing so. Who can tell me why?
Somebody in comp.std.c++ can -- they usually provide the rationales
behind the Standard.
If I were to speculate, I'd say that it's not really necessary. Can
you think of a case that cannot be solved using any other means but
the default template arguments? Just don't make it a template.
V
--
Please remove capital 'A's when replying by e-mail
I do not respond to top-posted replies, please don't ask