Array2D now has private copy constructor and assignment operator to prevent accidental copying.
This commit is contained in:
		| @@ -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; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user