From de56168ab1592297e814d942571dcc94d1408304 Mon Sep 17 00:00:00 2001 From: josetr <37419832+josetr@users.noreply.github.com> Date: Mon, 14 Mar 2022 16:12:59 +0000 Subject: [PATCH] Dont attempt to generate symbols using deleted functions --- src/Generator/Passes/SymbolsCodeGenerator.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Generator/Passes/SymbolsCodeGenerator.cs b/src/Generator/Passes/SymbolsCodeGenerator.cs index dedc7f71..98fb3cba 100644 --- a/src/Generator/Passes/SymbolsCodeGenerator.cs +++ b/src/Generator/Passes/SymbolsCodeGenerator.cs @@ -80,6 +80,8 @@ namespace CppSharp.Passes } if (method.IsConstructor) { + if (method.IsDeleted) + return true; WrapConstructor(method, wrapper, @params); return true; } @@ -222,6 +224,9 @@ namespace CppSharp.Passes private void TakeFunctionAddress(Function function, string wrapper) { string @namespace = function.OriginalNamespace.Visit(cppTypePrinter); + if (function.IsDeleted) + return; + if (function.Access == AccessSpecifier.Protected) { Write($"class {wrapper}{function.Namespace.Name} : public {@namespace} {{ public: ");