| 982 | |
| 983 | template <typename R, typename ... Args> |
| 984 | CmdHandler Menu::Insert(const std::string& cmdName, R (*f)(std::ostream&, Args...), const std::string& help, const std::vector<std::string>& parDesc) |
| 985 | { |
| 986 | using F = R (*)(std::ostream&, Args...); |
| 987 | return Insert(std::make_unique<VariadicFunctionCommand<F, Args ...>>(cmdName, f, help, parDesc)); |
| 988 | } |
| 989 | |
| 990 | template <typename F, typename R, typename ... Args> |
| 991 | CmdHandler Menu::Insert(const std::string& cmdName, const std::string& help, const std::vector<std::string>& parDesc, F& f, R (F::*)(std::ostream& out, Args...) const ) |
no outgoing calls