]> git.stg.codes - stg.git/blobdiff - stargazer/user_impl.cpp
Fix build on OSX.
[stg.git] / stargazer / user_impl.cpp
index 09e71a35bc2051a006f755eff573c967a3097335..77be7fba51d7f6b5cbe6ed58ea3a19fea62b04fc 100644 (file)
@@ -581,7 +581,7 @@ std::vector<std::string> USER_IMPL::GetAuthorizers() const
 {
     STG_LOCKER lock(&mutex);
     std::vector<std::string> 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;
 }
 //-----------------------------------------------------------------------------