gridcoin-community / Gridcoin-Research

Gridcoin-Research
MIT License
585 stars 172 forks source link

util: Improve allocation class #2740

Closed jamescowens closed 7 months ago

jamescowens commented 7 months ago

This is a short PR to add the operator overloads to the allocation class to avoid having to do static casting after arithmetic operations involving allocations. It also cleans up wallet_tests.cpp and removes the rest of the double usage as a second try to eliminate the test errors encountered with the GCC 13 compiler with OpenSUSE and x86 32 bit.

Possibly closes #2691.