Boost logo

Boost :

From: Guillaume Melquiond (guillaume.melquiond_at_[hidden])
Date: 2003-10-28 11:23:53


I find the C++ version of GMP to be a bit bloated. So I searched another
'big integer' library. I gave a try to the bigint library in the
sandbox. I used the GMP version of the library since its implementation
was rather trivial.

However I needed to apply this patch for it to work:

--- bigint_gmp.hpp.old 2003-10-28 17:06:07.000000000 +0100
+++ 2003-10-28 17:07:15.000000000 +0100
@@ -107,6 +107,7 @@
     if (&other != this) {
+ return *this;
   ~bigint() {
@@ -179,7 +180,7 @@
 void swap(bigint& lhs, bigint& rhs) {

I also needed to add a 'data' member in order to get a reference on the
underlying GMP datatype. The GMP library is indeed a lot more powerful
than the small subset present in the bigint library. May I suggest its



Boost list run by bdawes at, gregod at, cpdaniel at, john at