| 1055 | protected: |
| 1056 | template <typename ScalarType> |
| 1057 | Status CompareFloating(const ScalarType& left) { |
| 1058 | using CType = decltype(left.value); |
| 1059 | const auto& right = checked_cast<const ScalarType&>(right_); |
| 1060 | |
| 1061 | auto visitor = [&](auto&& compare_func) { |
| 1062 | result_ = compare_func(left.value, right.value); |
| 1063 | }; |
| 1064 | VisitFloatingEquality<CType>(options_, std::move(visitor)); |
| 1065 | return Status::OK(); |
| 1066 | } |
| 1067 | |
| 1068 | const Scalar& right_; |
| 1069 | const EqualOptions options_; |