Mercurial > octave-nkf
diff liboctave/oct-cmplx.h @ 4921:d0b8964b9d4b
[project @ 2004-07-28 15:53:46 by jwe]
author | jwe |
---|---|
date | Wed, 28 Jul 2004 15:53:46 +0000 |
parents | 13905c3a24af |
children | deed800e7bef |
line wrap: on
line diff
--- a/liboctave/oct-cmplx.h Tue Jul 27 18:16:18 2004 +0000 +++ b/liboctave/oct-cmplx.h Wed Jul 28 15:53:46 2004 +0000 @@ -112,7 +112,10 @@ inline Complex pow (const Complex& z, const double& x) { - return std::pow (z, x); + // XXX FIXME XXX -- this should not be needed, but it avoids a bug + // in some versions of libstdc++ (3.3.x and possibly others). + + return std::pow (z, Complex (x)); } inline Complex