| 316 | } |
| 317 | |
| 318 | Value icinga::operator*(const Value& lhs, const Value& rhs) |
| 319 | { |
| 320 | if ((lhs.IsNumber() || lhs.IsEmpty()) && (rhs.IsNumber() || rhs.IsEmpty()) && !(lhs.IsEmpty() && rhs.IsEmpty())) |
| 321 | return static_cast<double>(lhs) * static_cast<double>(rhs); |
| 322 | else |
| 323 | BOOST_THROW_EXCEPTION(std::invalid_argument("Operator * cannot be applied to values of type '" + lhs.GetTypeName() + "' and '" + rhs.GetTypeName() + "'")); |
| 324 | } |
| 325 | |
| 326 | Value icinga::operator*(const Value& lhs, double rhs) |
| 327 | { |
nothing calls this directly
no test coverage detected