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 -