From 480d13196ef70506dc571b30014de5e367a89550 Mon Sep 17 00:00:00 2001 From: heckflosse Date: Sun, 18 Jun 2017 01:21:08 +0200 Subject: [PATCH] Removed operator= from array2D because array2D is NonCopyable --- rtengine/array2D.h | 28 ---------------------------- 1 file changed, 28 deletions(-) diff --git a/rtengine/array2D.h b/rtengine/array2D.h index 9645a3a6e..25d644c85 100644 --- a/rtengine/array2D.h +++ b/rtengine/array2D.h @@ -281,34 +281,6 @@ public: return (x > 0 && y > 0); } - array2D & operator=( array2D & rhs) - { - if (this != &rhs) - - { - flags = rhs.flags; - lock = rhs.lock; - if (!owner) { // we can only copy same size data - if ((x != rhs.x) || (y != rhs.y)) { - printf(" assignment error in array2D\n"); - printf(" sizes differ and not owner\n"); - raise( SIGSEGV); - } - - } else { - ar_realloc(rhs.x, rhs.y); - } - - // we could have been created from a different - // array format where each row is created by 'new' - for (int i = 0; i < y; i++) { - memcpy(ptr[i], rhs.ptr[i], x * sizeof(T)); - } - } - - return *this; - } - }; template class multi_array2D