This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]