Array2D now has private copy constructor and assignment operator to prevent accidental copying.

This commit is contained in:
David Williams 2014-08-22 15:49:30 +02:00
parent 0ff0234ce1
commit ad73caf368

View File

@ -73,6 +73,10 @@ namespace PolyVox
private:
// These are private to avoid accidental copying.
Array2D<ElementType>(const Array2D<ElementType>& rhs);
Array2D<ElementType>& operator=(const Array2D<ElementType>& rhs);
uint32_t m_uWidth;
uint32_t m_uHeight;
ElementType* m_pData;