From 7d84e4900fa8f4ef96e8cf4bb67b76be7902e840 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Sun, 4 Apr 2021 23:42:15 +0100 Subject: Fix a ton of pedantic compiler warnings. --- include/numeric.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'include/numeric.h') diff --git a/include/numeric.h b/include/numeric.h index b6069e85e..79a569c22 100644 --- a/include/numeric.h +++ b/include/numeric.h @@ -50,8 +50,9 @@ class Numeric::Numeric { } - /** Add a parameter to the numeric. The parameter will be converted to a string first with ConvToStr(). - * @param x Parameter to add + /** Add a parameter pack to the numeric. + * @param x1 The first element of the parameter pack. + * @param x2 The rest of the parameter pack. */ template Numeric& push(const T1& x1, T2... x2) @@ -59,6 +60,9 @@ class Numeric::Numeric return push(x1).push(std::forward(x2)...); } + /** Add a parameter to the numeric. The parameter will be converted to a string first with ConvToStr(). + * @param x The parameter to add to the numeric. + */ template Numeric& push(const T& x) { -- cgit v1.3.1-10-gc9f91