Implement support for template template parameter packs, e.g.,

template<template<class> class ...Metafunctions>
    struct apply_to_each;

llvm-svn: 122874
This commit is contained in:
Douglas Gregor
2011-01-05 15:48:55 +00:00
parent c7d65b42fc
commit f550077ef5
19 changed files with 152 additions and 51 deletions

View File

@@ -412,9 +412,10 @@ SourceLocation NonTypeTemplateParmDecl::getDefaultArgumentLoc() const {
TemplateTemplateParmDecl *
TemplateTemplateParmDecl::Create(ASTContext &C, DeclContext *DC,
SourceLocation L, unsigned D, unsigned P,
IdentifierInfo *Id,
bool ParameterPack, IdentifierInfo *Id,
TemplateParameterList *Params) {
return new (C) TemplateTemplateParmDecl(DC, L, D, P, Id, Params);
return new (C) TemplateTemplateParmDecl(DC, L, D, P, ParameterPack, Id,
Params);
}
//===----------------------------------------------------------------------===//