Subject: Re: [boost] [safe_numerics] One more review
From: Robert Ramey (ramey_at_[hidden])
Date: 2017-03-11 17:22:45
On 3/11/17 7:52 AM, Steven Watanabe via Boost wrote:
> 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.
Couldn't the addressed by a variation of the "ignore exception" policy
which is meant to just return?
A simple extension to log such errors could be crafted from this idea
and would make a great example on how to make one's own exception policy.
What is missing from this idea?
> In Christ,
> Steven Watanabe
> Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk