libstdc++/3181: Unable to use sqrt,cos,sin,... with int argument.

Wolfgang Bangerth bangerth@ticam.utexas.edu
Wed Nov 6 09:18:00 GMT 2002


Benjamin,
3181 is about the following:
  std::sqrt(1)
and 
  int i; std::sqrt(i)
giving overload resolution ambiguities. Since the overloads are only 
provided for floating point types, this is not surprising, so I would say 
that this is actually standards conforming behavior, right? In this case, 
we should close this report.

Regards
  Wolfgang

-------------------------------------------------------------------------
Wolfgang Bangerth              email:           bangerth@ticam.utexas.edu
                               www: http://www.ticam.utexas.edu/~bangerth





More information about the Gcc-bugs mailing list