| 531 | } |
| 532 | } |
| 533 | JsonValue::Integer JsonValue::get_integer() const { |
| 534 | if (type != NUMBER) |
| 535 | throw std::runtime_error("JsonValue type is not NUMBER"); |
| 536 | const auto &s = reinterpret_cast<const String &>(value_string); |
| 537 | // return get_integer_impl<JsonValue::Integer>(s, -9223372036854775808.0, 9223372036854775808.0); |
| 538 | return get_integer_impl2<JsonValue::Integer>(s); |
| 539 | } |
| 540 | |
| 541 | JsonValue::Unsigned JsonValue::get_unsigned() const { |
| 542 | if (type != NUMBER) |