From 866dc2c6c7e7b5ec01a1941259b7c23d38193adc Mon Sep 17 00:00:00 2001 From: "erwin.coumans" Date: Tue, 22 Nov 2011 00:21:48 +0000 Subject: [PATCH] operator argument had to be const --- src/LinearMath/btAlignedObjectArray.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/LinearMath/btAlignedObjectArray.h b/src/LinearMath/btAlignedObjectArray.h index 69b54cc3d..fab6e7e63 100644 --- a/src/LinearMath/btAlignedObjectArray.h +++ b/src/LinearMath/btAlignedObjectArray.h @@ -56,14 +56,14 @@ class btAlignedObjectArray #ifdef BT_ALLOW_ARRAY_COPY_OPERATOR public: - SIMD_FORCE_INLINE btAlignedObjectArray& operator=(btAlignedObjectArray &other) + SIMD_FORCE_INLINE btAlignedObjectArray& operator=(const btAlignedObjectArray &other) { copyFromArray(other); return *this; } #else//BT_ALLOW_ARRAY_COPY_OPERATOR private: - SIMD_FORCE_INLINE btAlignedObjectArray& operator=(btAlignedObjectArray &other); + SIMD_FORCE_INLINE btAlignedObjectArray& operator=(const btAlignedObjectArray &other); #endif//BT_ALLOW_ARRAY_COPY_OPERATOR protected: