From: Douglas Gregor Date: Fri, 28 Aug 2009 20:33:09 +0000 (+0000) Subject: Remove the conversion from a multi-level template argument list back to a single... X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c18faf67c366f79035e364944d7df7f281ddf5a4;p=clang Remove the conversion from a multi-level template argument list back to a single template argument list. We no longer need this crutch git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@80390 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Sema/SemaTemplate.h b/lib/Sema/SemaTemplate.h index 183b5a3733..b400cb3aba 100644 --- a/lib/Sema/SemaTemplate.h +++ b/lib/Sema/SemaTemplate.h @@ -84,14 +84,6 @@ namespace clang { const TemplateArgumentList &getInnermost() const { return *TemplateArgumentLists.front(); } - - // Implicit conversion to a single template argument list, to facilitate a - // gradual transition to MultiLevelTemplateArgumentLists. - operator const TemplateArgumentList &() const { - assert(getNumLevels() == 1 && - "Conversion only works with a single level of template arguments"); - return *TemplateArgumentLists.front(); - } }; }