libstdc++/3181: Unable to use sqrt,cos,sin,... with int argument.
Wolfgang Bangerth
bangerth@ticam.utexas.edu
Wed Nov 6 09:26:00 GMT 2002
The following reply was made to PR libstdc++/3181; it has been noted by GNATS.
From: Wolfgang Bangerth <bangerth@ticam.utexas.edu>
To: gcc-bugs@gcc.gnu.org, <bkoz@gcc.gnu.org>
Cc: gcc-gnats@gcc.gnu.org
Subject: Re: libstdc++/3181: Unable to use sqrt,cos,sin,... with int argument.
Date: Wed, 6 Nov 2002 11:21:31 -0600 (CST)
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-prs
mailing list