From 86835469ac4a79904fc8e5d08ce134f74554ae0f Mon Sep 17 00:00:00 2001 From: Dimitar Dobrev Date: Sat, 26 Dec 2020 07:12:47 +0200 Subject: [PATCH] Generate valid C++ for pointers in template args Signed-off-by: Dimitar Dobrev --- src/Generator/Passes/SymbolsCodeGenerator.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Generator/Passes/SymbolsCodeGenerator.cs b/src/Generator/Passes/SymbolsCodeGenerator.cs index ff986ae3..a890af99 100644 --- a/src/Generator/Passes/SymbolsCodeGenerator.cs +++ b/src/Generator/Passes/SymbolsCodeGenerator.cs @@ -312,9 +312,9 @@ namespace CppSharp.Passes switch (a.Kind) { case TemplateArgument.ArgumentKind.Type: - return a.Type.Visit(cppTypePrinter).Type; + return a.Type.Visit(cppTypePrinter).ToString(); case TemplateArgument.ArgumentKind.Declaration: - return a.Declaration.Visit(cppTypePrinter).Type; + return a.Declaration.Visit(cppTypePrinter).ToString(); case TemplateArgument.ArgumentKind.Integral: return a.Integral.ToString(CultureInfo.InvariantCulture); }