diff --git a/sources/ClangSharp.PInvokeGenerator/PInvokeGenerator.cs b/sources/ClangSharp.PInvokeGenerator/PInvokeGenerator.cs index 30236598..6edb8098 100644 --- a/sources/ClangSharp.PInvokeGenerator/PInvokeGenerator.cs +++ b/sources/ClangSharp.PInvokeGenerator/PInvokeGenerator.cs @@ -4587,7 +4587,7 @@ bool IsAlwaysIncluded(Cursor cursor) bool IsExcludedByConfig(Cursor cursor) { return (_config.ExcludeFunctionsWithBody && (cursor is FunctionDecl functionDecl) && functionDecl.HasBody) - || (!_config.GenerateTemplateBindings && (cursor is TemplateDecl)); + || (!_config.GenerateTemplateBindings && ((cursor is TemplateDecl) || (cursor is ClassTemplateSpecializationDecl))); } bool IsExcludedByFile(Cursor cursor)