Function Approx

Summary

#include <include/internal/catch_approx.h>

(1) explicit Approx(double value)

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

Function overload

Synopsis

#include <include/internal/catch_approx.h>

explicit Approx(double value)

Description

No description yet.

Source

Lines 28-33 in include/internal/catch_approx.cpp. Line 29 in include/internal/catch_approx.h.

Approx::Approx ( double value )
:   m_epsilon( std::numeric_limits<float>::epsilon()*100 ),
    m_margin( 0.0 ),
    m_scale( 0.0 ),
    m_value( value )
{}

Synopsis

#include <include/internal/catch_approx.h>

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

Description

No description yet.

Source

Lines 44-46 in include/internal/catch_approx.h.

template <typename T, typename = typename std::enable_if<std::is_constructible<double, T>::value>::type>
explicit Approx( T const& value ): Approx(static_cast<double>(value))
{}





Add Discussion as Guest

Log in