mpq_class documentation is not explicit about canonicalization

gsauthof at gsauthof at
Tue Feb 9 12:11:22 CET 2010

On Tue, Feb 09, 2010 at 11:53:35AM +0100, Marc Glisse wrote:
> On Mon, 8 Feb 2010, gsauthof at wrote:


> >the paragraph about the mpq_class(integer num, integer den) constructor
> >does not state if the rational num/den needs to be in canonical form.
> >[1]
> Actually, this is specified globally for the whole page in the first
> sentence.

sorry, I overead this - probably was too tired that evening.
> >PS: Btw, prefixing the constructor name with 'void' gives the wrong
> >impression that this is valid C++ syntax and/or that constuctors may
> >have return values ...

> Indeed.

Best regards

More information about the gmp-bugs mailing list