Skip to content

Instantly share code, notes, and snippets.

@Leandros
Created November 6, 2017 12:17
Show Gist options
  • Save Leandros/7ba9b487cf9391b1f5154d310c49ef40 to your computer and use it in GitHub Desktop.
Save Leandros/7ba9b487cf9391b1f5154d310c49ef40 to your computer and use it in GitHub Desktop.
auto PtrLiteral = new (S.Context) CXXNullPtrLiteralExpr(
S.Context.NullPtrTy, NTTP->getLocation());
Expr *Value =
S.ImpCastExprToType(PtrLiteral, NullPtrType, CK_NullToPointer)
.get();
DeducedTemplateArgument NewDeduced(S.Context.getCanonicalTemplateName(Arg));
DeducedTemplateArgument Result = checkDeducedTemplateArguments(
S.Context,
Deduced[TempParam->getIndex()],
NewDeduced);
Sema::SubstituteExplicitTemplateArguments(
FunctionTemplateDecl *FunctionTemplate,
TemplateArgumentListInfo &ExplicitTemplateArgs,
SmallVectorImpl<DeducedTemplateArgument> &Deduced,
SmallVectorImpl<QualType> &ParamTypes,
QualType *FunctionType,
TemplateDeductionInfo &Info);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment