Give all complex lambdas an explicit return type

This commit is contained in:
baldurk 2016-10-13 19:23:39 +02:00
parent e3aa654c4b
commit 54a28de4a9
3 changed files with 8 additions and 8 deletions

View file

@ -253,7 +253,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) {