| 129 | |
| 130 | virtual int64_t as_int() const { throw std::runtime_error(type() + " is not an int value"); } |
| 131 | virtual double as_float() const { throw std::runtime_error(type() + " is not a float value"); } |
| 132 | virtual string as_string() const { throw std::runtime_error(type() + " is not a string value"); } |
| 133 | virtual bool as_bool() const { throw std::runtime_error(type() + " is not a bool value"); } |
| 134 | virtual const std::vector<value> & as_array() const { throw std::runtime_error(type() + " is not an array value"); } |
no test coverage detected