X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/d8845c7819caac09b95c4cdf1e8d48cc1cb1b7a6..51998949e60e2a7e86e4393b315cfb76a58ca80d:/projects/sgconf/options.cpp diff --git a/projects/sgconf/options.cpp b/projects/sgconf/options.cpp index 49e04d64..e431bcb0 100644 --- a/projects/sgconf/options.cpp +++ b/projects/sgconf/options.cpp @@ -198,7 +198,7 @@ if (!m_description.empty()) std::cout << m_description << ":\n"; std::for_each(m_options.begin(), m_options.end(), - std::bind2nd(std::mem_fun_ref(&OPTION::Help), level + 1)); + [&level](const auto& opt){ opt.Help(level + 1); }); } PARSER_STATE OPTION_BLOCK::Parse(int argc, char ** argv, void * data) @@ -208,12 +208,11 @@ if (state.argc == 0) return state; while (state.argc > 0 && !state.stop) { - std::vector