Browse Source

Fixed the C++-printing of templated types not to append an additional "::".

Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
pull/118/head
Dimitar Dobrev 12 years ago
parent
commit
511957882a
  1. 3
      src/Generator/Types/CppTypePrinter.cs
  2. 1
      tests/CSharpTemp/CSharpTemp.Tests.cs

3
src/Generator/Types/CppTypePrinter.cs

@ -121,8 +121,7 @@ namespace CppSharp.Types @@ -121,8 +121,7 @@ namespace CppSharp.Types
public string VisitTemplateSpecializationType(TemplateSpecializationType template, TypeQualifiers quals)
{
string prefix = PrintLocalName ? string.Empty : "::";
return string.Format("{0}{1}<{2}>", prefix, template.Template.TemplatedDecl.Visit(this),
return string.Format("{0}<{1}>", template.Template.TemplatedDecl.Visit(this),
string.Join(", ",
template.Arguments.Where(
a => a.Type.Type != null &&

1
tests/CSharpTemp/CSharpTemp.Tests.cs

@ -79,5 +79,6 @@ public class CSharpTempTests @@ -79,5 +79,6 @@ public class CSharpTempTests
Assert.That(p.ComplexType.Check(), Is.EqualTo(5));
Assert.That(p.Test, Is.True);
Assert.That(p.IsBool, Is.False);
}
}
Loading…
Cancel
Save