]> www.ginac.de Git - ginac.git/commitdiff
- Fix GCC 2.95.x brokenness.
authorRichard Kreckel <Richard.Kreckel@uni-mainz.de>
Tue, 12 Jun 2001 22:51:39 +0000 (22:51 +0000)
committerRichard Kreckel <Richard.Kreckel@uni-mainz.de>
Tue, 12 Jun 2001 22:51:39 +0000 (22:51 +0000)
ginac/basic.cpp

index eb2c85dfb5989d1d439e8840cf9046a1d4ebe90b..92bd16053d8e921d35b3b26ee323545bd100e7ae 100644 (file)
@@ -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