From ddf6711a446ed8f65fdb8cbf7801a08fde0e2ba1 Mon Sep 17 00:00:00 2001 From: zawz Date: Tue, 11 Aug 2020 16:26:21 +0200 Subject: [PATCH] options: add variadic call of add() --- include/options.hpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/options.hpp b/include/options.hpp index edf1ab3..729ed2b 100644 --- a/include/options.hpp +++ b/include/options.hpp @@ -115,6 +115,9 @@ namespace ztd /*CREATION FUNCTIONS*/ //! @brief Add option to the set inline void add(option opt) { option_vec.push_back(opt); } + //! @brief Variadic call of add() + template + void add(Args... args) { std::vector