Re: [boost] BigInt divide-by-zero handling

16 May
2006
16 May
'06
11:34 p.m.
-----Original Message----- From: boost-bounces@lists.boost.org [mailto:boost-bounces@lists.boost.org] On Behalf Of Jonathan Ray Sent: Tuesday, May 16, 2006 3:11 PM To: boost@lists.boost.org Subject: [boost] BigInt divide-by-zero handling
I'm planning to finish the BigInt library for SoC. I'm looking for some input about whether divide-by-zero should throw an exception, or just store a NaN and propagate that through any subsequent operations. Since ordinary ints just throw an exception, and my goal is to make BigInts have virtually the same interface as ints but never overflow, it seems reasonable to throw an exception. Any objections?
Isn't it a hardware exception here? I don't think it's a C++ exception.
6969
Age (days ago)
6969
Last active (days ago)
0 comments
1 participants
participants (1)
-
Sohail Somani