[Gmp-commit] /var/hg/gmp: Include <math.h> instead of <cmath> followed by usi...
mercurial at gmplib.org
mercurial at gmplib.org
Sun Feb 17 21:07:40 CET 2013
details: /var/hg/gmp/rev/23c4a66dd85c
changeset: 15453:23c4a66dd85c
user: Marc Glisse <marc.glisse at inria.fr>
date: Sun Feb 17 21:07:38 2013 +0100
description:
Include <math.h> instead of <cmath> followed by using namespace std. Don't include unused <iostream>.
diffstat:
ChangeLog | 3 ++-
tests/cxx/t-ops2.cc | 5 +----
2 files changed, 3 insertions(+), 5 deletions(-)
diffs (34 lines):
diff -r 7d5b3f42ed8e -r 23c4a66dd85c ChangeLog
--- a/ChangeLog Sun Feb 17 18:00:40 2013 +0100
+++ b/ChangeLog Sun Feb 17 21:07:38 2013 +0100
@@ -10,7 +10,8 @@
and <cstring> (revert 2002-12-21).
* tests/cxx/Makefile.am: Link with libm.
- * tests/cxx/t-ops2.cc: Comment about more tests.
+ * tests/cxx/t-ops2.cc: Comment about more tests. Use <math.h> rather
+ than <cmath> and using namespace. Don't include <iostream>.
2013-02-16 Marc Glisse <marc.glisse at inria.fr>
diff -r 7d5b3f42ed8e -r 23c4a66dd85c tests/cxx/t-ops2.cc
--- a/tests/cxx/t-ops2.cc Sun Feb 17 18:00:40 2013 +0100
+++ b/tests/cxx/t-ops2.cc Sun Feb 17 21:07:38 2013 +0100
@@ -19,16 +19,13 @@
#include "config.h"
-#include <iostream>
-#include <cmath>
+#include <math.h>
#include "gmp.h"
#include "gmpxx.h"
#include "gmp-impl.h"
#include "tests.h"
-using namespace std;
-
#define CHECK1(Type,a,fun) \
ASSERT_ALWAYS(fun((Type)(a))==fun(a))
More information about the gmp-commit
mailing list