[cfe-commits] r80390 - /cfe/trunk/lib/Sema/SemaTemplate.h
Douglas Gregor
dgregor at apple.com
Fri Aug 28 13:33:10 PDT 2009
Author: dgregor
Date: Fri Aug 28 15:33:09 2009
New Revision: 80390
URL: http://llvm.org/viewvc/llvm-project?rev=80390&view=rev
Log:
Remove the conversion from a multi-level template argument list back to a single template argument list. We no longer need this crutch
Modified:
cfe/trunk/lib/Sema/SemaTemplate.h
Modified: cfe/trunk/lib/Sema/SemaTemplate.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaTemplate.h?rev=80390&r1=80389&r2=80390&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaTemplate.h (original)
+++ cfe/trunk/lib/Sema/SemaTemplate.h Fri Aug 28 15:33:09 2009
@@ -84,14 +84,6 @@
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();
- }
};
}
More information about the cfe-commits
mailing list