| 2071 | |
| 2072 | template <typename T, typename = typename std::enable_if<std::is_constructible<double, T>::value>::type> |
| 2073 | Approx operator()( T const& value ) { |
| 2074 | Approx approx( static_cast<double>(value) ); |
| 2075 | approx.epsilon( m_epsilon ); |
| 2076 | approx.margin( m_margin ); |
| 2077 | approx.scale( m_scale ); |
| 2078 | return approx; |
| 2079 | } |
| 2080 | |
| 2081 | template <typename T, typename = typename std::enable_if<std::is_constructible<double, T>::value>::type> |
| 2082 | explicit Approx( T const& value ): Approx(static_cast<double>(value)) |
nothing calls this directly
no outgoing calls
no test coverage detected