From fccfdd93ef30598c78599f206786359cc85821a7 Mon Sep 17 00:00:00 2001 From: Brad Davis Date: Sat, 15 Jun 2019 10:28:00 -0700 Subject: [PATCH] Properly disable copy ctor and assignment operator --- transcoder/basisu.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/transcoder/basisu.h b/transcoder/basisu.h index 8ab1143..17d326a 100644 --- a/transcoder/basisu.h +++ b/transcoder/basisu.h @@ -69,7 +69,7 @@ #define BASISU_NOTE_UNUSED(x) (void)(x) #define BASISU_ARRAY_SIZE(x) (sizeof(x) / sizeof(x[0])) -#define BASISU_NO_EQUALS_OR_COPY_CONSTRUCT(x) x(x &); x& operator= (const x&); +#define BASISU_NO_EQUALS_OR_COPY_CONSTRUCT(x) x(const x &) = delete; x& operator= (const x &) = delete; #define BASISU_ASSUME(x) static_assert(x, #x); #define BASISU_OFFSETOF(s, m) (uint32_t)(intptr_t)(&((s *)(0))->m) #define BASISU_STRINGIZE(x) #x