| 109 | } |
| 110 | |
| 111 | RangeValue RangeValue::operator/ (size_t other) const { |
| 112 | RangeValue retval; |
| 113 | if (!_isUnbound) { |
| 114 | if (other == 0) { |
| 115 | std::stringstream ss; |
| 116 | ss << "Dividing range " << *this << " by 0."; |
| 117 | throw std::runtime_error(ss.str()); |
| 118 | } |
| 119 | retval.set(_val / other); |
| 120 | } |
| 121 | return retval; |
| 122 | } |
| 123 | |
| 124 | RangeValue RangeValue::operator/ (const RangeValue& other) const { |
| 125 | if (other.isUnbound()) { |