
17 May
2006
17 May
'06
4:22 p.m.
-----Original Message----- From: boost-bounces@lists.boost.org [mailto:boost-bounces@lists.boost.org] On Behalf Of Gerhard Wesp Sent: Wednesday, May 17, 2006 2:29 AM To: boost@lists.boost.org Subject: Re: [boost] BigInt divide-by-zero handling
Since ordinary ints just throw an exception, and my goal is to make
I don't think ordinary ints throw exceptions. Nevertheless, I think you should.
I disagree. I check for divide by zero or write code that doesn't allow them to happen. If I wanted an exception for any possible operation, I'd use java (I'm not flaming - I think). Do an assertion in debug mode, U.B. in release. This is most sensible for a type that is an extension of a built-in type.