[Gmp-commit] /var/hg/gmp: Fix __gmp_set_expr declaration.

mercurial at gmplib.org mercurial at gmplib.org
Sun Mar 20 11:57:46 CET 2011


details:   /var/hg/gmp/rev/79f0ae1c3b9b
changeset: 14071:79f0ae1c3b9b
user:      Marc Glisse <marc.glisse at inria.fr>
date:      Sun Mar 20 11:57:33 2011 +0100
description:
Fix __gmp_set_expr declaration.

diffstat:

 ChangeLog |   4 ++++
 gmpxx.h   |  17 -----------------
 2 files changed, 4 insertions(+), 17 deletions(-)

diffs (101 lines):

diff -r 2a9f1b958fd9 -r 79f0ae1c3b9b ChangeLog
--- a/ChangeLog	Sat Mar 19 19:38:58 2011 +0100
+++ b/ChangeLog	Sun Mar 20 11:57:33 2011 +0100
@@ -1,3 +1,7 @@
+2011-03-16  Marc Glisse  <marc.glisse at inria.fr>
+
+	* gmpxx.h (__gmp_set_expr): Remove broken declarations.
+
 2011-03-19  Torbjorn Granlund  <tege at gmplib.org>
 
 	* mpz/fac_ui.c (mpz_fac_ui): Use MPZ_REALLOC for standard, conditional
diff -r 2a9f1b958fd9 -r 79f0ae1c3b9b gmpxx.h
--- a/gmpxx.h	Sat Mar 19 19:38:58 2011 +0100
+++ b/gmpxx.h	Sun Mar 20 11:57:33 2011 +0100
@@ -1432,14 +1432,6 @@
 };
 
 
-// functions for evaluating expressions
-template <class T, class U>
-void __gmp_set_expr(mpz_ptr, const __gmp_expr<T, U> &);
-template <class T, class U>
-void __gmp_set_expr(mpq_ptr, const __gmp_expr<T, U> &);
-template <class T, class U>
-void __gmp_set_expr(mpf_ptr, const __gmp_expr<T, U> &);
-
 
 /**************** Macros for in-class declarations ****************/
 /* This is just repetitive code that is easier to maintain if it's written
@@ -2056,7 +2048,6 @@
 
 /**************** Functions for type conversion ****************/
 
-template <>
 inline void __gmp_set_expr(mpz_ptr z, const mpz_class &w)
 {
   mpz_set(z, w.get_mpz_t());
@@ -2068,7 +2059,6 @@
   expr.eval(z);
 }
 
-template <>
 inline void __gmp_set_expr(mpz_ptr z, const mpq_class &q)
 {
   mpz_set_q(z, q.get_mpq_t());
@@ -2081,7 +2071,6 @@
   mpz_set_q(z, temp.get_mpq_t());
 }
 
-template <class T>
 inline void __gmp_set_expr(mpz_ptr z, const mpf_class &f)
 {
   mpz_set_f(z, f.get_mpf_t());
@@ -2094,7 +2083,6 @@
   mpz_set_f(z, temp.get_mpf_t());
 }
 
-template <>
 inline void __gmp_set_expr(mpq_ptr q, const mpz_class &z)
 {
   mpq_set_z(q, z.get_mpz_t());
@@ -2107,7 +2095,6 @@
   mpq_set_z(q, temp.get_mpz_t());
 }
 
-template <>
 inline void __gmp_set_expr(mpq_ptr q, const mpq_class &r)
 {
   mpq_set(q, r.get_mpq_t());
@@ -2119,7 +2106,6 @@
   expr.eval(q);
 }
 
-template <class T>
 inline void __gmp_set_expr(mpq_ptr q, const mpf_class &f)
 {
   mpq_set_f(q, f.get_mpf_t());
@@ -2132,7 +2118,6 @@
   mpq_set_f(q, temp.get_mpf_t());
 }
 
-template <class T>
 inline void __gmp_set_expr(mpf_ptr f, const mpz_class &z)
 {
   mpf_set_z(f, z.get_mpz_t());
@@ -2145,7 +2130,6 @@
   mpf_set_z(f, temp.get_mpz_t());
 }
 
-template <class T>
 inline void __gmp_set_expr(mpf_ptr f, const mpq_class &q)
 {
   mpf_set_q(f, q.get_mpq_t());
@@ -2158,7 +2142,6 @@
   mpf_set_q(f, temp.get_mpq_t());
 }
 
-template <>
 inline void __gmp_set_expr(mpf_ptr f, const mpf_class &g)
 {
   mpf_set(f, g.get_mpf_t());


More information about the gmp-commit mailing list