MCPcopy Create free account
hub / github.com/ChaiScript/ChaiScript / operator ==

Method operator ==

unittests/catch.hpp:2086–2089  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2084
2085 template <typename T, typename = typename std::enable_if<std::is_constructible<double, T>::value>::type>
2086 friend bool operator == ( const T& lhs, Approx const& rhs ) {
2087 auto lhs_v = static_cast<double>(lhs);
2088 return rhs.equalityComparisonImpl(lhs_v);
2089 }
2090
2091 template <typename T, typename = typename std::enable_if<std::is_constructible<double, T>::value>::type>
2092 friend bool operator == ( Approx const& lhs, const T& rhs ) {

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected