MCPcopy Create free account
hub / github.com/ChaiScript/ChaiScript / operator()

Method operator()

unittests/catch.hpp:2073–2079  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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))

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected