| 50 | } |
| 51 | |
| 52 | static int64_t toInt64(const std::string& value) |
| 53 | { |
| 54 | size_t idx; |
| 55 | int64_t d = std::stoll(value, &idx); |
| 56 | if (value[idx] != '\0') |
| 57 | error("invalid number '{}'", value); |
| 58 | return d; |
| 59 | } |
| 60 | |
| 61 | static uint64_t toUint64(const std::string& value) |
| 62 | { |