From: Pedro Lamarão (pedro.lamarao_at_[hidden])
Date: 2006-05-17 10:17:47
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
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk