Default argument for templatized function

llewelly@xmission.com llewelly@xmission.com
Thu May 13 01:10:00 GMT 2004


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.



More information about the Gcc-help mailing list