25 typename =
typename std::enable_if<std::is_arithmetic<T>::value, T>::type>
26 std::variant<int, std::string, double, uint64_t>
operator()(
const T& a,
const T& b)
const 33 template <
typename T,
typename U>
34 std::variant<int, std::string, double, uint64_t>
operator()(
const T&,
const U&)
const 36 throw MonitoringException(
"DerivedMetrics/Visitor",
"Cannot operate on different or non-numeric types");
std::variant< int, std::string, double, uint64_t > operator()(const T &a, const T &b) const
Overloads operator() that sums numeric values.
Definition: VariantVisitorAdd.h:26
Adds boost variants.
Definition: VariantVisitorAdd.h:19
Internal monitoring exception.
Definition: MonitoringException.h:29
std::variant< int, std::string, double, uint64_t > operator()(const T &, const U &) const
Definition: VariantVisitorAdd.h:34