From 884fe50dd78a204089674c1d312bc6f7a7fe5a95 Mon Sep 17 00:00:00 2001 From: drmortalwombat <90205530+drmortalwombat@users.noreply.github.com> Date: Sat, 25 May 2024 21:26:23 +0200 Subject: [PATCH] Add missing assigns for opp::function --- include/opp/functional.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/opp/functional.h b/include/opp/functional.h index 96807c2..d0c4ddf 100644 --- a/include/opp/functional.h +++ b/include/opp/functional.h @@ -44,7 +44,7 @@ public: { c = f.c->clone(); } -#if 0 + function(function && f) { c = f.c; @@ -70,7 +70,7 @@ public: } return *this; } -#endif + ~function(void) { delete c;