X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fbin%2Flttng-sessiond%2Fconsumer.hpp;fp=src%2Fbin%2Flttng-sessiond%2Fconsumer.hpp;h=6851edbf6c8e5dbd82c09b44f8f6ee296780f049;hp=5d05c1cbf985327ae1dbd77336efe6683c14bf7d;hb=31375c424ac115fc0373237207fed795849e26ba;hpb=e0252788784c4c7392e5105aed0eaf745798482e diff --git a/src/bin/lttng-sessiond/consumer.hpp b/src/bin/lttng-sessiond/consumer.hpp index 5d05c1cbf..6851edbf6 100644 --- a/src/bin/lttng-sessiond/consumer.hpp +++ b/src/bin/lttng-sessiond/consumer.hpp @@ -27,8 +27,8 @@ struct ltt_session; * C++. */ static_assert(__cplusplus == 201103L, ""); -template -constexpr T max_constexpr(T l, T r) +template +constexpr NumericalType max_constexpr(NumericalType l, NumericalType r) { return l > r ? l : r; }