Browse Source

Fixed a regression when searching for type maps of template specialisations.

Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
pull/661/head
Dimitar Dobrev 9 years ago
parent
commit
22d823f50a
  1. 8
      src/Generator/Types/TypeMap.cs

8
src/Generator/Types/TypeMap.cs

@ -191,6 +191,14 @@ namespace CppSharp.Types @@ -191,6 +191,14 @@ namespace CppSharp.Types
return true;
}
var specialization = decl as ClassTemplateSpecialization;
if (specialization != null &&
FindTypeMap(specialization.TemplatedDecl.Visit(typePrinter), out typeMap))
{
typeMap.Type = type;
return true;
}
return false;
}

Loading…
Cancel
Save