Commit 9f450e7c authored by Tobias Hansen's avatar Tobias Hansen

Add using_namespace_std.patch from sagemath.

parent d5975258
......@@ -7,6 +7,9 @@ lcalc (1.23+dfsg-8) UNRELEASED; urgency=medium
[ Jelmer Vernooij ]
* Use secure copyright file specification URI.
[ Tobias Hansen ]
* Add using_namespace_std.patch from sagemath.
-- Julien Puydt <jpuydt@debian.org> Sat, 11 Aug 2018 15:47:33 +0200
lcalc (1.23+dfsg-7) unstable; urgency=medium
......
......@@ -9,3 +9,4 @@ pari-apell.patch
pari-init-stack.patch
clang.patch
spelling.patch
using_namespace_std.patch
Origin: https://git.sagemath.org/sage.git/tree/build/pkgs/lcalc/patches/using_namespace_std.patch?h=develop
--- a/include/Lcommon.h
+++ b/include/Lcommon.h
@@ -48,7 +48,7 @@
// 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
--- a/include/Lcommon_ld.h
+++ b/include/Lcommon_ld.h
@@ -53,7 +53,7 @@
// 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
--- a/include/Lglobals.h
+++ b/include/Lglobals.h
@@ -24,9 +24,9 @@
#ifndef Lglobals_H
#define Lglobals_H
+#include <valarray>
using namespace std;
-#include <valarray>
#ifdef USE_MPFR
#include "Lgmpfrxx.h"
typedef mpfr_class Double;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment