|
Boost : |
Subject: Re: [boost] [safe_numerics] One more review
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2017-03-11 15:52:01
AMDG
On 03/11/2017 02:00 AM, Antony Polukhin via Boost wrote:
>
> I'd like to see an additional statefull ExceptionPolicy that remembers
> that an UB was triggered, but does not throw at all. Here's how it
> could be used:
>
This also requires an extra function to combine two
ExceptionPolicies for binary operators. You'll
run into problems with comparison operators,
though, as a bool can't hold an ExceptionPolicy.
In Christ,
Steven Watanabe
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk