This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: 11706 vs ([lno] Canonical iv creation)
Paolo Carlini <pcarlini@suse.de> writes:
| using ::pow;
[...]
| inline double
| pow(double __x, double __y)
| { return __builtin_pow(__x, __y); }
That is wrong. ::pow is a "C" function with the same signature.
If you do that you get into trouble because at best it is an endless
recursive definition -- technically, it is an ODR violation.
Leave ::pow alone, don't touch it. Unless you have full control over
the target's <math.h>.
-- Gaby