Skip to content

Commit

Permalink
Fix lambda param type inference in linux
Browse files Browse the repository at this point in the history
By expliciting it
  • Loading branch information
nico-abram committed Nov 24, 2018
1 parent eed136a commit 63846a2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/DownloadManager.cpp
Expand Up @@ -1510,7 +1510,7 @@ DownloadManager::RequestChartLeaderBoard(string chartkey, LuaReference ref)
transform(vec.begin(),
vec.end(),
back_inserter(leaderboardHS),
[](auto s) { return &(s.hs); });
[](OnlineScore s) { return &(s.hs); });

if (!ref.IsNil() && ref.IsSet()) {
Lua* L = LUA->Get();
Expand Down Expand Up @@ -2251,7 +2251,7 @@ class LunaDownloadManager : public Luna<DownloadManager>
transform(leaderboardScores.begin(),
leaderboardScores.end(),
back_inserter(leaderboardHS),
[](auto s) { return &(s.hs); });
[](OnlineScore s) { return &(s.hs); });
if (!ref.IsNil()) {
ref.PushSelf(L);
if (!lua_isnil(L, -1)) {
Expand Down

0 comments on commit 63846a2

Please sign in to comment.