From 80e0819d715f0f3bd5eec55cb591821d8fd98e81 Mon Sep 17 00:00:00 2001 From: triton Date: Thu, 7 Mar 2013 19:48:25 +0000 Subject: [PATCH] Check for the type map of the template type itself. --- src/Generator/Generators/CLI/CLITypePrinter.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Generator/Generators/CLI/CLITypePrinter.cs b/src/Generator/Generators/CLI/CLITypePrinter.cs index 865ebbdd..92d8d342 100644 --- a/src/Generator/Generators/CLI/CLITypePrinter.cs +++ b/src/Generator/Generators/CLI/CLITypePrinter.cs @@ -164,7 +164,7 @@ namespace Cxxi.Generators.CLI var decl = template.Template.TemplatedDecl; TypeMap typeMap = null; - if (TypeMapDatabase.FindTypeMap(decl, out typeMap)) + if (TypeMapDatabase.FindTypeMap(template, out typeMap)) { typeMap.Declaration = decl; typeMap.Type = template;