| 466 | } |
| 467 | |
| 468 | Value icinga::operator|(const Value& lhs, const Value& rhs) |
| 469 | { |
| 470 | if ((lhs.IsNumber() || lhs.IsEmpty()) && (rhs.IsNumber() || rhs.IsEmpty()) && !(lhs.IsEmpty() && rhs.IsEmpty())) |
| 471 | return static_cast<int>(lhs) | static_cast<int>(rhs); |
| 472 | else |
| 473 | BOOST_THROW_EXCEPTION(std::invalid_argument("Operator | cannot be applied to values of type '" + lhs.GetTypeName() + "' and '" + rhs.GetTypeName() + "'")); |
| 474 | } |
| 475 | |
| 476 | Value icinga::operator|(const Value& lhs, double rhs) |
| 477 | { |
nothing calls this directly
no test coverage detected