X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/46b0747592074017ff0ea4b33d4a7194235886e5..bec5d17c77e9cfc8482ffca062b8f500859bfe34:/stargazer/user_impl.cpp 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; } //-----------------------------------------------------------------------------