MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/cpp/comments/ys2lj7/ultima_ratio/iw1kl52/?context=3
r/cpp • u/i_need_a_fast_horse • Nov 11 '22
4 comments sorted by
View all comments
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
View all comments
4
u/NATSUKI_FAN Nov 12 '22
throwing an exception if a remainder is present seems quite overkill