| 142 | |
| 143 | template<class Compare> |
| 144 | bool compareValue(const Value& rhs, Compare compare) const { |
| 145 | assert((!this->isSymbolicValue() && !rhs.isSymbolicValue()) || |
| 146 | (this->valueType == rhs.valueType && sameToken(this->tokvalue, rhs.tokvalue))); |
| 147 | bool result = false; |
| 148 | visitValue( |
| 149 | *this, |
| 150 | std::bind(compareVisitor{}, std::ref(result), std::ref(rhs), std::move(compare), std::placeholders::_1)); |
| 151 | return result; |
| 152 | } |
| 153 | |
| 154 | bool operator==(const Value &rhs) const { |
| 155 | if (!equalValue(rhs)) |
nothing calls this directly
no test coverage detected