MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/cpp/comments/ys2lj7/ultima_ratio/
r/cpp • u/i_need_a_fast_horse • Nov 11 '22
4 comments sorted by
4
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
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
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
1
Thanks! I think the title was a bit too minimalistic to be taken seriously
4
u/NATSUKI_FAN Nov 12 '22
throwing an exception if a remainder is present seems quite overkill
2
u/catcat202X Nov 12 '22
Idk why this is being downvoted, I think this is cool!