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
public override string CLISignature(TypePrinterContext ctx) public override string CLISignature(TypePrinterContext ctx)
{ {
var type = Type as TemplateSpecializationType; return string.Format("System::Collections::Generic::List<{0}>^",
var typeName = type.Arguments[0].Type.ToString(); ctx.GetTemplateParameterList());
return string.Format("System::Collections::Generic::List<{0}>^", typeName);
} }
public override void CLIMarshalToNative(MarshalContext ctx) public override void CLIMarshalToNative(MarshalContext ctx)

Loading…
Cancel
Save