X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/46b0747592074017ff0ea4b33d4a7194235886e5..f88b8e1e0e34f1e25e86468ca271a89af4872eab:/stargazer/user_impl.cpp?ds=inline diff --git a/stargazer/user_impl.cpp b/stargazer/user_impl.cpp index 09e71a35..77be7fba 100644 --- a/stargazer/user_impl.cpp +++ b/stargazer/user_impl.cpp @@ -581,7 +581,7 @@ std::vector USER_IMPL::GetAuthorizers() const { STG_LOCKER lock(&mutex); std::vector list; - std::transform(authorizedBy.begin(), authorizedBy.end(), std::back_inserter(list), std::mem_fun(&AUTH::GetVersion)); + std::transform(authorizedBy.begin(), authorizedBy.end(), std::back_inserter(list), [](const auto auth){ return auth->GetVersion(); }); return list; } //-----------------------------------------------------------------------------