]> www.ginac.de Git - ginac.git/blobdiff - ginac/integral.cpp
Use C++11 'auto' and range-based for loops where possible.
[ginac.git] / ginac / integral.cpp
index d2d451b4b4a41258f9941a9be43f8b59c4cb12c6..ce3a2a4aa29c231d8aded8a5e7d31366bdcf3170 100644 (file)
@@ -229,7 +229,7 @@ ex adaptivesimpson(const ex & x, const ex & a_in, const ex & b_in, const ex & f,
        static lookup_map lookup;
        static symbol ivar("ivar");
        ex lookupex = integral(ivar,a,b,f.subs(x==ivar));
-       lookup_map::iterator emi = lookup.find(error_and_integral(error, lookupex));
+       auto emi = lookup.find(error_and_integral(error, lookupex));
        if (emi!=lookup.end())
                return emi->second;