Merge pull request #548 from baldurk/vs2010-compile-fixes

VS2010 compile fixes
This commit is contained in:
John Kessenich 2016-10-15 23:09:31 -06:00 committed by GitHub
commit 1fabc0f697
9 changed files with 170 additions and 164 deletions

View file

@ -361,7 +361,7 @@ const TFunction* TParseContextBase::selectFunction(
return viableCandidates.front();
// 4. find best...
auto betterParam = [&call, &better](const TFunction& can1, const TFunction& can2){
auto betterParam = [&call, &better](const TFunction& can1, const TFunction& can2) -> bool {
// is call -> can2 better than call -> can1 for any parameter
bool hasBetterParam = false;
for (int param = 0; param < call.getParamCount(); ++param) {