From 3b3f6e7e12a67701e143dc0415acbef2d592083b Mon Sep 17 00:00:00 2001 From: hyzboy Date: Thu, 20 Mar 2025 02:11:16 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E8=BF=9BNO=5FCOPY=E5=AE=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- inc/hgl/platform/Platform.h | 4 +++- inc/hgl/type/object/Object.h | 1 - 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/inc/hgl/platform/Platform.h b/inc/hgl/platform/Platform.h index 499f633..33513da 100644 --- a/inc/hgl/platform/Platform.h +++ b/inc/hgl/platform/Platform.h @@ -277,7 +277,9 @@ namespace hgl #define __HGL_FUNC__ __FUNCTION__ #endif// - #define NO_COPY(className) className(const className &)=delete; \ + #define NO_COPY(className) className(const className &)=delete; \ + className(const className *)=delete; \ + className &operator=(const className *)=delete; \ className &operator=(const className &)=delete; #define NO_MOVE(className) className(className &&)=delete; \ diff --git a/inc/hgl/type/object/Object.h b/inc/hgl/type/object/Object.h index 186eaa4..ea18234 100644 --- a/inc/hgl/type/object/Object.h +++ b/inc/hgl/type/object/Object.h @@ -44,4 +44,3 @@ namespace hgl return obj; } }//namespace hgl -