Patch taken from the Sage packaging system. diff --git a/include/Lcommon.h b/include/Lcommon.h index 1b3be43..bf40532 100644 --- a/include/Lcommon.h +++ b/include/Lcommon.h @@ -48,7 +48,7 @@ const bool outputSeries=true; // Whether to output the coefficients or just th // Loop i from m to n // Useful in tidying up most for loops -#define loop(i,m,n) for(typeof(m) i=(m); i!=(n); i++) +#define loop(i,m,n) for(auto i=(m); i!=(n); i++) // A class for calculations involving polynomials of small degree // Not efficient enough for huge polynomials diff --git a/include/Lcommon_ld.h b/include/Lcommon_ld.h index 86ae4df..33c560c 100644 --- a/include/Lcommon_ld.h +++ b/include/Lcommon_ld.h @@ -53,7 +53,7 @@ const bool outputSeries=true; // Whether to output the coefficients or just th // Loop i from m to n // Useful in tidying up most for loops -#define loop(i,m,n) for(typeof(m) i=(m); i!=(n); i++) +#define loop(i,m,n) for(auto i=(m); i!=(n); i++) // A class for calculations involving polynomials of small degree // Not efficient enough for huge polynomials diff --git a/include/Lglobals.h b/include/Lglobals.h index 60002e4..ca2606c 100644 --- a/include/Lglobals.h +++ b/include/Lglobals.h @@ -24,9 +24,9 @@ #ifndef Lglobals_H #define Lglobals_H +#include using namespace std; -#include #ifdef USE_MPFR #include "Lgmpfrxx.h" typedef mpfr_class Double; cm?id=a2fd72c728461fb5f421b136a05f4e0d48bca34d'>commitdiff
AgeCommit message (Collapse)Author
2016-05-04utils: Move combinators to (guix combinators).Ludovic Courtès
* guix/utils.scm (compile-time-value, memoize, fold2) (fold-tree, fold-tree-leaves): Move to... * guix/combinators: ... here. New file. * tests/utils.scm ("fold2, 1 list", "fold2, 2 lists") (fold-tree tests): Move to... * tests/combinators.scm: ... here. New file. * Makefile.am (MODULES, SCM_TESTS): Add them. * gnu/packages.scm, gnu/packages/bootstrap.scm, gnu/services/herd.scm, guix/build-system/gnu.scm, guix/build-system/python.scm, guix/derivations.scm, guix/gnu-maintenance.scm, guix/import/elpa.scm, guix/scripts/archive.scm, guix/scripts/build.scm, guix/scripts/graph.scm, guix/scripts/lint.scm, guix/scripts/size.scm, guix/scripts/substitute.scm, guix/serialization.scm, guix/store.scm, guix/ui.scm: Adjust imports accordingly.