Mercurial > projects > ddmd
diff dmd/Parser.d @ 121:347de076ad34
TemplateParameters -> Vector
author | Eldar Insafutdinov <e.insafutdinov@gmail.com> |
---|---|
date | Thu, 02 Sep 2010 22:41:12 +0100 |
parents | e28b18c23469 |
children | c77e9f4f1793 |
line wrap: on
line diff
--- a/dmd/Parser.d Thu Sep 02 20:19:14 2010 +0100 +++ b/dmd/Parser.d Thu Sep 02 22:41:12 2010 +0100 @@ -1069,7 +1069,7 @@ } tp = new TemplateValueParameter(loc, tp_ident, tp_valtype, tp_specvalue, tp_defaultvalue); } - tpl.push(cast(void*)tp); + tpl.push(tp); if (token.value != TOKcomma) break; nextToken(); @@ -1238,10 +1238,10 @@ param.ident = pt.ident; Identifier id = Lexer.uniqueId("__T"); param.type = new TypeIdentifier(pt.loc, id); - TemplateParameter tp = new TemplateTypeParameter(fd.loc, id, null, null); + auto tp = new TemplateTypeParameter(fd.loc, id, null, null); if (!tpl) tpl = new TemplateParameters(); - tpl.push(cast(void*)tp); + tpl.push(tp); } } @@ -5196,7 +5196,7 @@ check(TOK.TOKrparen); } TemplateParameter tp = new TemplateTypeParameter(loc2, ident, null, null); - tpl.insert(0, cast(void*)tp); + tpl.insert(0, tp); } else check(TOK.TOKrparen);