Function margin

Synopsis

#include <include/internal/catch_approx.h>

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

Description

No description yet.

Mentioned in

Source

Lines 97-102 in include/internal/catch_approx.h.

template <typename T, typename = typename std::enable_if<std::is_constructible<double, T>::value>::type>
Approx& margin( T const& newMargin ) {
    double marginAsDouble = static_cast<double>(newMargin);
    setMargin(marginAsDouble);
    return *this;
}





Add Discussion as Guest

Log in