
17 May
2006
17 May
'06
2:17 p.m.
Jonathan Ray escreveu:
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?
std::logic_error comes to mind. -- Pedro LamarĂ£o Desenvolvimento Intersix Technologies S.A. SP: (55 11 3803-9300) RJ: (55 21 3852-3240) www.intersix.com.br Your Security is our Business