| 410 | } |
| 411 | |
| 412 | Value icinga::operator^(const Value& lhs, const Value& rhs) |
| 413 | { |
| 414 | if ((lhs.IsNumber() || lhs.IsEmpty()) && (rhs.IsNumber() || rhs.IsEmpty()) && !(lhs.IsEmpty() && rhs.IsEmpty())) |
| 415 | return static_cast<int>(lhs) ^ static_cast<int>(rhs); |
| 416 | else |
| 417 | BOOST_THROW_EXCEPTION(std::invalid_argument("Operator & cannot be applied to values of type '" + lhs.GetTypeName() + "' and '" + rhs.GetTypeName() + "'")); |
| 418 | } |
| 419 | |
| 420 | Value icinga::operator^(const Value& lhs, double rhs) |
| 421 | { |
nothing calls this directly
no test coverage detected