Browse Source

Use the new template parameter helper for type printing std::vector.

pull/1/head
triton 12 years ago
parent
commit
8ad8da7d40
  1. 5
      src/Generator/Types/Std/Stdlib.cs

5
src/Generator/Types/Std/Stdlib.cs

@ -73,9 +73,8 @@ namespace Cxxi.Types.Std @@ -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)

Loading…
Cancel
Save