aboutsummaryrefslogtreecommitdiffstats
path: root/include/numeric.h
diff options
context:
space:
mode:
authorGravatar Sadie Powell2021-04-04 23:42:15 +0100
committerGravatar Sadie Powell2021-04-04 23:42:15 +0100
commit7d84e4900fa8f4ef96e8cf4bb67b76be7902e840 (patch)
treef5a81d03f572392e7547d58f979fdd488de6ff0b /include/numeric.h
parentRemove the unused ExitCodes array. (diff)
Fix a ton of pedantic compiler warnings.
Diffstat (limited to 'include/numeric.h')
-rw-r--r--include/numeric.h8
1 files changed, 6 insertions, 2 deletions
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 <typename T1, typename... T2>
Numeric& push(const T1& x1, T2... x2)
@@ -59,6 +60,9 @@ class Numeric::Numeric
return push(x1).push(std::forward<T2>(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 <typename T>
Numeric& push(const T& x)
{