|
Boost : |
From: Gerhard Wesp (gwesp_at_[hidden])
Date: 2006-05-17 12:39:54
On Wed, May 17, 2006 at 09:22:58AM -0700, Sohail Somani wrote:
> 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.
Seems OK also. I just happen to think that whereever behaviour *can* be
defined, it should (and do it as the ints whereever it is defined what
they do!). There's already too much U.B. in C++.
A division by zero exception in an arbitrary size integer package would
not incur any measurable overhead, I think.
Regards
-Gerhard
-- Gerhard Wesp ZRH office voice: +41 (0)44 668 1878 ZRH office fax: +41 (0)44 200 1818 For the rest I claim that raw pointers must be abolished.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk