From: Richard Kreckel Date: Tue, 12 Jun 2001 22:51:39 +0000 (+0000) Subject: - Fix GCC 2.95.x brokenness. X-Git-Tag: release_0-9-1~41 X-Git-Url: https://www.ginac.de/ginac.git//ginac.git?p=ginac.git;a=commitdiff_plain;h=ac23228bd6e65b92b483e84c36f479e4aa08549c - Fix GCC 2.95.x brokenness. --- diff --git a/ginac/basic.cpp b/ginac/basic.cpp index eb2c85df..92bd1605 100644 --- a/ginac/basic.cpp +++ b/ginac/basic.cpp @@ -363,17 +363,17 @@ ex basic::evalf(int level) const return *this; } +/** Function object to be applied by basic::evalm(). */ +struct evalm_map_function : public map_function { + ex operator()(const ex & e) { return GiNaC::evalm(e); } +} fcn; /** Evaluate sums, products and integer powers of matrices. */ ex basic::evalm(void) const { if (nops() == 0) return *this; - else { - struct evalm_map_function : public map_function { - ex operator()(const ex & e) { return GiNaC::evalm(e); } - } fcn; + else return map(fcn); - } } /** Perform automatic symbolic evaluations on indexed expression that