[GIT] ppl/ppl(master): Adapted to g++ -std=c++11.

Module: ppl/ppl Branch: master Commit: 886d497f3a818d681025e7e5ca676f2153be8378 URL: http://www.cs.unipr.it/git/gitweb.cgi?p=ppl/ppl.git;a=commit;h=886d497f3a818...
Author: Abramo Bagnara abramo.bagnara@bugseng.com Date: Thu May 8 16:14:12 2014 +0200
Adapted to g++ -std=c++11.
---
src/checked_mpz_inlines.hh | 6 ++---- 1 files changed, 2 insertions(+), 4 deletions(-)
diff --git a/src/checked_mpz_inlines.hh b/src/checked_mpz_inlines.hh index 9deaf74..445010b 100644 --- a/src/checked_mpz_inlines.hh +++ b/src/checked_mpz_inlines.hh @@ -50,14 +50,12 @@ round_gt_mpz(mpz_class& to, Rounding_Dir dir) { return V_GT; }
-#ifdef PPL_HAVE_TYPEOF -#ifdef PPL_HAVE_CXX11 +#if __cplusplus >= 201103L //! Type of the _mp_size field of GMP's __mpz_struct. typedef decltype(__mpz_struct()._mp_size) mp_size_field_t; -#else +#elif PPL_HAVE_TYPEOF //! Type of the _mp_size field of GMP's __mpz_struct. typedef typeof(__mpz_struct()._mp_size) mp_size_field_t; -#endif #else //! This is assumed to be the type of the _mp_size field of GMP's __mpz_struct. typedef int mp_size_field_t;
participants (1)
-
Abramo Bagnara