X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/c00e81f9f50c4fe50ee32b02a689d68c9bc595b6..51998949e60e2a7e86e4393b315cfb76a58ca80d:/projects/sgconf/options.cpp?ds=inline 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