# HG changeset patch # User jwe # Date 1091030026 0 # Node ID d0b8964b9d4ba3d32a009ef5fcaf8a40f1bd95af # Parent b22a7a1db0d50e2e05fb71a462d3b1472cc11986 [project @ 2004-07-28 15:53:46 by jwe] diff -r b22a7a1db0d5 -r d0b8964b9d4b liboctave/ChangeLog --- a/liboctave/ChangeLog Tue Jul 27 18:16:18 2004 +0000 +++ b/liboctave/ChangeLog Wed Jul 28 15:53:46 2004 +0000 @@ -1,3 +1,8 @@ +2004-07-28 John W. Eaton + + * oct-cmplx.h (pow (const Complex&, const double&): + Convert second arg to complex to avoid libstdc++ bug. + 2004-07-27 John W. Eaton * oct-inttypes.h (bitshift): New arg, MASK. diff -r b22a7a1db0d5 -r d0b8964b9d4b liboctave/oct-cmplx.h --- 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