From: NAKAMURA Takumi Date: Thu, 17 Apr 2014 08:42:31 +0000 (+0000) Subject: SemaTemplate.cpp: Appease msvc to get rid of default argument in lambda definition. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=394588fbc8246a2576422b17ee685c55f369ba8a;p=clang SemaTemplate.cpp: Appease msvc to get rid of default argument in lambda definition. clang\lib\Sema\SemaTemplate.cpp(1826) : error C2064: term does not evaluate to a function taking 1 arguments git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@206451 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Sema/SemaTemplate.cpp b/lib/Sema/SemaTemplate.cpp index 2ef144f158..e4d2a41f5a 100644 --- a/lib/Sema/SemaTemplate.cpp +++ b/lib/Sema/SemaTemplate.cpp @@ -1722,8 +1722,8 @@ TemplateParameterList *Sema::MatchTemplateParametersToScopeSpecifier( // explicitly specialized. bool SawNonEmptyTemplateParameterList = false; - auto CheckExplicitSpecialization = [&](SourceRange Range, - bool Recovery = false) { + auto CheckExplicitSpecialization = [&](SourceRange Range) { + bool Recovery = false; if (SawNonEmptyTemplateParameterList) { Diag(DeclLoc, diag::err_specialize_member_of_template) << !Recovery << Range;