diff options
author | Marc Glisse <marc.glisse@inria.fr> | 2011-05-06 23:31:07 +0200 |
---|---|---|
committer | Marc Glisse <marc.glisse@inria.fr> | 2011-05-06 23:31:07 +0200 |
commit | 8e28b13a11b763fe57d2890833bc3e534a0e30c4 (patch) | |
tree | 340cc8e15c9247440f8da36ee7dd8acbd3d35b8b /doc | |
parent | 80aa8191296bb40a8a35e03db6c6d2eae329cb52 (diff) | |
download | gmp-8e28b13a11b763fe57d2890833bc3e534a0e30c4.tar.gz |
Make some conversions between C++ types explicit.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/gmp.texi | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/doc/gmp.texi b/doc/gmp.texi index 516478520..d61c62f99 100644 --- a/doc/gmp.texi +++ b/doc/gmp.texi @@ -6499,8 +6499,10 @@ anything. @deftypefun {} mpz_class::mpz_class (type @var{n}) Construct an @code{mpz_class}. All the standard C++ types may be used, except @code{long long} and @code{long double}, and all the GMP C++ classes can be -used. Any necessary conversion follows the corresponding C function, for -example @code{double} follows @code{mpz_set_d} (@pxref{Assigning Integers}). +used, although conversions from @code{mpq_class} and @code{mpf_class} are +@code{explicit}. Any necessary conversion follows the corresponding C +function, for example @code{double} follows @code{mpz_set_d} +(@pxref{Assigning Integers}). @end deftypefun @deftypefun explicit mpz_class::mpz_class (mpz_t @var{z}) @@ -6583,9 +6585,10 @@ canonical form, or if not then @code{mpq_class::canonicalize} called. @deftypefun {} mpq_class::mpq_class (type @var{op}) @deftypefunx {} mpq_class::mpq_class (integer @var{num}, integer @var{den}) Construct an @code{mpq_class}. The initial value can be a single value of any -type, or a pair of integers (@code{mpz_class} or standard C++ integer types) -representing a fraction, except that @code{long long} and @code{long double} -are not supported. For example, +type (conversion from @code{mpf_class} is @code{explicit}), or a pair of +integers (@code{mpz_class} or standard C++ integer types) representing a +fraction, except that @code{long long} and @code{long double} are not +supported. For example, @example mpq_class q (99); |