This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: c++/6508: compilation error when using "min< double >" as function parameter
- From: lerdsuwa at gcc dot gnu dot org
- To: gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, nobody at gcc dot gnu dot org, yap_noel at olf dot com
- Date: 5 Jun 2002 16:01:29 -0000
- Subject: Re: c++/6508: compilation error when using "min< double >" as function parameter
- Reply-to: lerdsuwa at gcc dot gnu dot org, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, nobody at gcc dot gnu dot org, yap_noel at olf dot com, gcc-gnats at gcc dot gnu dot org
Synopsis: compilation error when using "min< double >" as function parameter
State-Changed-From-To: open->closed
State-Changed-By: lerdsuwa
State-Changed-When: Wed Jun 5 09:01:29 2002
State-Changed-Why:
Not a bug. There are 2 overloading functions
template <class T> const T& min(const T&, const T&);
and
template <class T, class Comp> const T& min(const T&, const T&,
Comp);
that match the argument of test. The actual function call
inside test is not part of the deduction process.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=6508