| 456 | } |
| 457 | |
| 458 | Value operator-() const { |
| 459 | if (is_number_integer()) |
| 460 | return -get<int64_t>(); |
| 461 | else |
| 462 | return -get<double>(); |
| 463 | } |
| 464 | std::string to_str() const { |
| 465 | if (is_string()) return get<std::string>(); |
| 466 | if (is_number_integer()) return std::to_string(get<int64_t>()); |
nothing calls this directly
no test coverage detected