mpz_class initialization

Dmitry Panteleev from-gmp at dpantele.com
Mon Mar 11 17:39:14 CET 2013


For some reason mpz_class is initialized with 1-bit length assigned. Why it
is not just zero-initialized, as soon as most(or all?) algorithms works
well with such variables? It would be better for move semantics, which is
now supported in gmp. Also then it will be possible to make default
constuctor return constexpr.


More information about the gmp-discuss mailing list