This is the mail archive of the gcc-bugs@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: c++/6508: compilation error when using "min< double >" as function parameter


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


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