mpq_class documentation is not explicit about canonicalization

Marc Glisse marc.glisse at
Tue Feb 9 11:53:35 CET 2010

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 

> 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 ...


Marc Glisse

More information about the gmp-bugs mailing list