Give all complex lambdas an explicit return type
This commit is contained in:
parent
e3aa654c4b
commit
54a28de4a9
3 changed files with 8 additions and 8 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue