Boost logo

Boost :

Subject: Re: [boost] Design question SafeFloat
From: Robert Ramey (ramey_at_[hidden])
Date: 2018-07-27 14:05:18


On 7/26/18 8:25 PM, Damian Vicino via Boost wrote:
> Hi,
> I'm working in simplifying safe_float to prepare it for future review.
>
> For now I'm focusing in a C++17 compatible version.
>
> Currently safefloat receives 2 template parameters:
>
> template<typename FP, typename P>
> class safe_float ...
>
> Where FP is the floating point value being made "safe", float, double, long
> double ...
> and P is a Policy of what to check and how to react.

It might be helpful to look at how safe numerics does it.

Robert Ramey


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk