Skip to content

Commit 8683546

Browse files
committed
Generate valid C++ for pointers in template args
Signed-off-by: Dimitar Dobrev <[email protected]>
1 parent f5a46b8 commit 8683546

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Generator/Passes/SymbolsCodeGenerator.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -312,9 +312,9 @@ private IEnumerable<string> GetTemplateArguments(
312312
switch (a.Kind)
313313
{
314314
case TemplateArgument.ArgumentKind.Type:
315-
return a.Type.Visit(cppTypePrinter).Type;
315+
return a.Type.Visit(cppTypePrinter).ToString();
316316
case TemplateArgument.ArgumentKind.Declaration:
317-
return a.Declaration.Visit(cppTypePrinter).Type;
317+
return a.Declaration.Visit(cppTypePrinter).ToString();
318318
case TemplateArgument.ArgumentKind.Integral:
319319
return a.Integral.ToString(CultureInfo.InvariantCulture);
320320
}

0 commit comments

Comments
 (0)