
Hello,
I wanted to do some testing of XInt for the review, so I thought I
could try it with a gaussian elimination code that I'm working on.
I only had a quick glance at the library; the documentation seems very
clear and my code compiled fine with Boost.XInt at the first attempt,
just by changing one typedef. I'd like to join Christofer Jefferson
in his praise of the work done for making XInt easy to use.
However, running it seemed to take forever. After a while I traced
this down to the following bug:
* a very simple I/O program that works with std integral types:
$ cat a.cpp
#include <iostream>
int main(void)
{
int i;
long x;
while (not std::cin.eof()) {
std::cin >> i >> x;
std::cout << "Read i:" << i << ", x:" << x << std::endl;
if (0 == i and 0 == x)
break;
};
return 0;
}
$ c++ a.cpp -I ~/sw/include/
$ ./a.out
1 2
Read i:1, x:2
0 0
Read i:0, x:0
* the same simple program fails and goes in a busy-loop cycle with
XInt:
$ cat a.cpp
#include <iostream>
#include