From ad73caf36873ff8fb0509f4f8ec81983f489c253 Mon Sep 17 00:00:00 2001 From: David Williams Date: Fri, 22 Aug 2014 15:49:30 +0200 Subject: [PATCH] Array2D now has private copy constructor and assignment operator to prevent accidental copying. --- library/PolyVoxCore/include/PolyVoxCore/Impl/Array2D.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/library/PolyVoxCore/include/PolyVoxCore/Impl/Array2D.h b/library/PolyVoxCore/include/PolyVoxCore/Impl/Array2D.h index b6713ae9..062e61e0 100644 --- a/library/PolyVoxCore/include/PolyVoxCore/Impl/Array2D.h +++ b/library/PolyVoxCore/include/PolyVoxCore/Impl/Array2D.h @@ -73,6 +73,10 @@ namespace PolyVox private: + // These are private to avoid accidental copying. + Array2D(const Array2D& rhs); + Array2D& operator=(const Array2D& rhs); + uint32_t m_uWidth; uint32_t m_uHeight; ElementType* m_pData;