[Bug c++/11752] partial ordering overloaded function templates
nbecker at hns dot com
gcc-bugzilla@gcc.gnu.org
Tue Aug 5 16:50:00 GMT 2003
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11752
------- Additional Comments From nbecker at hns dot com 2003-08-05 16:50 -------
Subject: Re: partial ordering overloaded function templates
On Tuesday 05 August 2003 12:29 pm, you wrote:
> PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
>
> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11752
>
>
> lerdsuwa at gcc dot gnu dot org changed:
>
> What |Removed |Added
> ---------------------------------------------------------------------------
>- Status|UNCONFIRMED |RESOLVED
> Resolution| |INVALID
>
>
> ------- Additional Comments From lerdsuwa at gcc dot gnu dot org
> 2003-08-05 16:29 ------- Not a bug. According to the standard, partial
> ordering is defined based on template argument deduction. Since the
> parameter 'size'
> is not used anywhere in function parameter or return type, it's
> not deducable and partial ordering fails. So both are treated as
> equal, none is more specialized than the other.
>
>
>
Thank you for clarifying this. Unfortunately, I don't own a copy of the
standard.
More information about the Gcc-bugs
mailing list