summaryrefslogtreecommitdiff
path: root/gmpxx.h
diff options
context:
space:
mode:
authorMarc Glisse <marc.glisse@inria.fr>2014-05-08 00:33:09 +0200
committerMarc Glisse <marc.glisse@inria.fr>2014-05-08 00:33:09 +0200
commit8352aebb256079236163589876dbcc901c3ac25a (patch)
tree19ecf0def860ae7471bfd066b19193d1f2c6e6df /gmpxx.h
parentccfcd77b97a5cb3a5b75bb7b0981732817cb2719 (diff)
downloadgmp-8352aebb256079236163589876dbcc901c3ac25a.tar.gz
The C++ standard was modified so common_type now decays.
Diffstat (limited to 'gmpxx.h')
-rw-r--r--gmpxx.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/gmpxx.h b/gmpxx.h
index 6dd9129c5..958136703 100644
--- a/gmpxx.h
+++ b/gmpxx.h
@@ -1232,9 +1232,9 @@ namespace std {
};
template <class T, class U>
- struct common_type <__gmp_expr<T, U>, __gmp_expr<T, U> >
+ struct common_type <__gmp_expr<T, U> >
{
- typedef __gmp_expr<T, U> type;
+ typedef __gmp_expr<T, T> type;
};
#define __GMPXX_DECLARE_COMMON_TYPE(typ) \