This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Default argument for templatized function
Adrian Bentley <adruab@voria.com> writes:
[snip]
> Without the functionality of deriving the template for a default
> argument,
> which seems pretty straight forward to me by the way, it makes that a
> fairly
> gross limitation of gcc
It is not a limitation of gcc. It is a limitation of ISO C++ . See
14.8.2.4/17 .
> (lack of function specialization
Function specialization works fine in gcc. Note ISO C++ does not allow
*partial* specialization of function templates.