This is the mail archive of the archer@sourceware.org mailing list for the Archer 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: Template function support


On 06/10/2010 03:00 PM, Keith Seitz wrote:
On 06/10/2010 11:43 AM, sami wagiaalla wrote:
My idea was to remove <int> from foo<int>() and store it just as plain
foo. This would allow for normal overload resolution to take place. The
patch attached to this message demonstrates that approach.

Just one quick question: Did you consider the opposite approach, i.e., adding "<int>" (since we can deduce that from the argument type)?


No, it did not even occur to me. The problem is that we don't know if the sought symbol is a template instance, and in the case of overload resolution the candidates can be both template instances and regular functions.



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