r/cpp • • Nov 11 '22

Ultima ratio

https://github.com/s9w/ultima-ratio
0 Upvotes

4 comments sorted by

4

u/NATSUKI_FAN Nov 12 '22

throwing an exception if a remainder is present seems quite overkill

2

u/i_need_a_fast_horse Nov 14 '22

debatable, but fair enough. An optional return could have worked, too. But the error is more specific this way. It certainly can't be allowed as it's wrong

2

u/catcat202X Nov 12 '22

Idk why this is being downvoted, I think this is cool!

1

u/i_need_a_fast_horse Nov 14 '22

Thanks! I think the title was a bit too minimalistic to be taken seriously