X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/46b0747592074017ff0ea4b33d4a7194235886e5..02b5dcd27ece461f9dbe122771c4b740dd909d67:/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; } //-----------------------------------------------------------------------------