Basic Initialization

unsigned_int< 128 > a( 10 ), b = -1, c( 2.4e7 ), d("9"), e( a );

CHECK( a == 10 );
CHECK( b == -1 );
CHECK( c == 2.4e7 );
CHECK( d == 9 );
CHECK( e == a );
//unsigned u;

/* check assignment too
*/
c = 20;
CHECK( c == 20 );
d = c;
CHECK( d == 20 && d == c && c == d );
d = char(9);
CHECK( d == 9 );

std::cout << "Ok\n";

Test Result: gcc34 Passed, msvc80 Passed, msvc71 Passed

Output

Ok
Ok