diff --git a/include/cxxopts.hpp b/include/cxxopts.hpp index b9c7407..b969dc2 100644 --- a/include/cxxopts.hpp +++ b/include/cxxopts.hpp @@ -1299,8 +1299,6 @@ template <> class standard_value : public abstract_value { public: - ~standard_value() override = default; - standard_value() { set_default_and_implicit(); @@ -2773,18 +2771,18 @@ Options::help_one_group(const std::string& g) const { using OptionHelp = std::vector>; + String result; + auto group = m_help.find(g); if (group == m_help.end()) { - return ""; + return result; } OptionHelp format; std::size_t longest = 0; - String result; - if (!g.empty()) { result += toLocalString(" " + g + " options:\n");