c++/6508: compilation error when using "min< double >" as function parameter
lerdsuwa@gcc.gnu.org
lerdsuwa@gcc.gnu.org
Wed Jun 5 09:01:00 GMT 2002
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
More information about the Gcc-bugs
mailing list