From 34e14bb02df84572e33aa6319f918a28f5d0b4fe Mon Sep 17 00:00:00 2001 From: Aditya Atluri Date: Fri, 16 Jun 2017 09:02:26 -0500 Subject: [PATCH] removed bad copy constructor Change-Id: I661991d9d43941a61848b0b8e9879c0bfa811b40 --- hipamd/include/hip/hcc_detail/hip_vector_types.h | 4 ---- 1 file changed, 4 deletions(-) diff --git a/hipamd/include/hip/hcc_detail/hip_vector_types.h b/hipamd/include/hip/hcc_detail/hip_vector_types.h index 9da34d9f32..93c82cc0cb 100644 --- a/hipamd/include/hip/hcc_detail/hip_vector_types.h +++ b/hipamd/include/hip/hcc_detail/hip_vector_types.h @@ -36,25 +36,21 @@ THE SOFTWARE. #define MAKE_DEFAULT_CONSTRUCTOR_ONE_COMPONENT(type) \ __device__ __host__ type() {} \ -__device__ __host__ type(type& val) : x(val.x) { } \ __device__ __host__ type(const type& val) : x(val.x) { } \ __device__ __host__ ~type() {} #define MAKE_DEFAULT_CONSTRUCTOR_TWO_COMPONENT(type) \ __device__ __host__ type() {} \ -__device__ __host__ type(type& val) : x(val.x), y(val.y) { } \ __device__ __host__ type(const type& val) : x(val.x), y(val.y) { } \ __device__ __host__ ~type() {} #define MAKE_DEFAULT_CONSTRUCTOR_THREE_COMPONENT(type) \ __device__ __host__ type() {} \ -__device__ __host__ type(type& val) : x(val.x), y(val.y), z(val.z) { } \ __device__ __host__ type(const type& val) : x(val.x), y(val.y), z(val.z) { } \ __device__ __host__ ~type() {} #define MAKE_DEFAULT_CONSTRUCTOR_FOUR_COMPONENT(type) \ __device__ __host__ type() {} \ -__device__ __host__ type(type& val) : x(val.x), y(val.y), z(val.z), w(val.w) { } \ __device__ __host__ type(const type& val) : x(val.x), y(val.y), z(val.z), w(val.w) { } \ __device__ __host__ ~type() {}