[Gmp-commit] /var/hg/gmp: specializing numeric_limits is useless if the conte...

mercurial at gmplib.org mercurial at gmplib.org
Sat Jun 23 00:18:06 CEST 2012


details:   /var/hg/gmp/rev/81826c10a262
changeset: 15055:81826c10a262
user:      Marc Glisse <marc.glisse at inria.fr>
date:      Sat Jun 23 00:17:36 2012 +0200
description:
specializing numeric_limits is useless if the content is private...
I'll add some tests later to make sure I don't accidentally revert it some day.

diffstat:

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

diffs (38 lines):

diff -r 3700547fffb1 -r 81826c10a262 ChangeLog
--- a/ChangeLog	Tue Jun 19 15:03:50 2012 +0200
+++ b/ChangeLog	Sat Jun 23 00:17:36 2012 +0200
@@ -1,3 +1,7 @@
+2012-06-23  Marc Glisse  <marc.glisse at inria.fr>
+
+	* gmpxx.h (numeric_limits): Make content public.
+
 2012-06-09  Marc Glisse  <marc.glisse at inria.fr>
 
 	* gmpxx.h (__gmp_resolve_expr::srcptr_type): New typedef.
diff -r 3700547fffb1 -r 81826c10a262 gmpxx.h
--- a/gmpxx.h	Tue Jun 19 15:03:50 2012 +0200
+++ b/gmpxx.h	Sat Jun 23 00:17:36 2012 +0200
@@ -3241,6 +3241,7 @@
 namespace std {
   template <> class numeric_limits<mpz_class>
   {
+  public:
     static const bool is_specialized = true;
     static mpz_class min() { return mpz_class(); }
     static mpz_class max() { return mpz_class(); }
@@ -3277,6 +3278,7 @@
 
   template <> class numeric_limits<mpq_class>
   {
+  public:
     static const bool is_specialized = true;
     static mpq_class min() { return mpq_class(); }
     static mpq_class max() { return mpq_class(); }
@@ -3313,6 +3315,7 @@
 
   template <> class numeric_limits<mpf_class>
   {
+  public:
     static const bool is_specialized = true;
     static mpf_class min() { return mpf_class(); }
     static mpf_class max() { return mpf_class(); }


More information about the gmp-commit mailing list