Function epsilon

Synopsis

#include <include/internal/catch_approx.h>

template <typename T, typename = typename std::enable_if<std::is_constructible<double, T>::value>::type>
Approx & epsilon(T const &newEpsilon)

Description

No description yet.

Mentioned in

Source

Lines 90-95 in include/internal/catch_approx.h.

template <typename T, typename = typename std::enable_if<std::is_constructible<double, T>::value>::type>
Approx& epsilon( T const& newEpsilon ) {
    double epsilonAsDouble = static_cast<double>(newEpsilon);
    setEpsilon(epsilonAsDouble);
    return *this;
}





Add Discussion as Guest

Log in