#3688 is quite a convincing argument for limiting the value of Amount to MAX_MONEY. Also we have #620, which I've read twice in the past and don't want to read again because its so long but I think if we do the following we can close both issues
- Make
Amount::MAX equal to Amount::MAX_MONEY
- Deprecate/remove max_money ?
- Enforce the invariant in all addition and multiplication functions
If someone has the patience to read through #620 again and check I haven't forgotten anything that would be great.
#3688 is quite a convincing argument for limiting the value of
AmounttoMAX_MONEY. Also we have #620, which I've read twice in the past and don't want to read again because its so long but I think if we do the following we can close both issuesAmount::MAXequal toAmount::MAX_MONEYIf someone has the patience to read through #620 again and check I haven't forgotten anything that would be great.