From 8ad8da7d4030b0409b09ab2e1798997f2ed94f35 Mon Sep 17 00:00:00 2001 From: triton Date: Sat, 23 Mar 2013 18:38:16 +0000 Subject: [PATCH] Use the new template parameter helper for type printing std::vector. --- src/Generator/Types/Std/Stdlib.cs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/Generator/Types/Std/Stdlib.cs b/src/Generator/Types/Std/Stdlib.cs index b90432e5..168a3fb5 100644 --- a/src/Generator/Types/Std/Stdlib.cs +++ b/src/Generator/Types/Std/Stdlib.cs @@ -73,9 +73,8 @@ namespace Cxxi.Types.Std public override string CLISignature(TypePrinterContext ctx) { - var type = Type as TemplateSpecializationType; - var typeName = type.Arguments[0].Type.ToString(); - return string.Format("System::Collections::Generic::List<{0}>^", typeName); + return string.Format("System::Collections::Generic::List<{0}>^", + ctx.GetTemplateParameterList()); } public override void CLIMarshalToNative(MarshalContext ctx)