faheel / BigInt

Arbitrary-sized integer class for C++
https://faheel.github.io/BigInt
MIT License
390 stars 132 forks source link

Operations on integers and strings with a BigInt should return a BigInt #2

Closed faheel closed 6 years ago

faheel commented 6 years ago

Performing binary operations on integers or strings with a BigInt object as the second operand should return a BigInt:

big_int_1 =  5  + big_int_2;
big_int_1 = "5" + big_int_2;
// similarly for all other binary arithmetic and relational operators
faheel commented 6 years ago

Closed in commits e7bcce9 and c5a9e77.