| 101 | |
| 102 | template <typename T, typename... As> |
| 103 | inline T *CommandLineParser::add_option(const std::string &name, As &&...args) |
| 104 | { |
| 105 | auto result = _options.emplace(name, std::make_unique<T>(name, std::forward<As>(args)...)); |
| 106 | return static_cast<T *>(result.first->second.get()); |
| 107 | } |
| 108 | |
| 109 | template <typename T, typename... As> |
| 110 | inline T *CommandLineParser::add_positional_option(As &&...args) |