Browse Source

Fixed the message when an unsupported template specialisation is used.

Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
pull/911/head
Dimitar Dobrev 8 years ago
parent
commit
ee174c1649
  1. 2
      src/Generator/Generators/CSharp/CSharpSourcesExtensions.cs

2
src/Generator/Generators/CSharp/CSharpSourcesExtensions.cs

@ -132,7 +132,7 @@ namespace CppSharp.Generators.CSharp @@ -132,7 +132,7 @@ namespace CppSharp.Generators.CSharp
var managedTypes = string.Join(", ", @class.TemplateParameters.Select(p => $"typeof({p.Name}).FullName"));
gen.WriteLine($"throw new ArgumentOutOfRangeException(\"{typeArguments}\", "
+ $@"string.Join("", "", new[] {{ {managedTypes} }}), "
+ $"\"{@class.Visit(typePrinter)}<{typeArguments}> maps a C++ template class and therefore it only supports a limited set of types and their subclasses: {supportedTypes}.\");");
+ $"\"{@class.Visit(typePrinter)} maps a C++ template class and therefore it only supports a limited set of types and their subclasses: {supportedTypes}.\");");
}
}
}

Loading…
Cancel
Save