This is the mail archive of the gcc@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: Overload resolution compilation error


Ling-hua Tseng escreveu:
Obviously, {1, 2, 4, 5, 6, 7} are not matched.
Maybe you think that the item 3 is matched.
Unfortunately, it stands for the non-template functions.

Are you sure that it doesn't include template functions? Because I think it makes sense to consider them too (as Visual Studio does). The point is that non template functions arguments have higher priority than template functions (as specified in paragraph 4), and IMO there's no reason to differentiate between template and non-template functions' argument target, making the latter work and the former not.


Regards,
Rodolfo Lima.



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