| 304 | return number_value_; |
| 305 | } |
| 306 | |
| 307 | int64_t Value::as_i64() const { |
| 308 | const double value = as_number(); |
| 309 | if (!std::isfinite(value) || std::floor(value) != value) { |
| 310 | throw std::runtime_error("json number is not an integer"); |
| 311 | } |
no test coverage detected