SigProcLib: Use available copyTo Vector API instead of memcopy
This change allows to remove some wrong use of code as per compilation
warning:
osmo-trx/Transceiver52M/sigProcLib.cpp:1266:40: error:
‘void* memcpy(void*, const void*, size_t)’ writing to an object of non-trivially copyable type ‘class Complex<float>’; use copy-assignment or copy-initialization instead [-Werror=class-memaccess]
midMidamble->size() * sizeof(complex));
Change-Id: Id446711349bec70fa4e7c8efe0f7f9faf7e4f277
diff --git a/CommonLibs/Vector.h b/CommonLibs/Vector.h
index 15d6710..0ba1b9e 100644
--- a/CommonLibs/Vector.h
+++ b/CommonLibs/Vector.h
@@ -107,7 +107,7 @@
void clone(const Vector<T>& other)
{
resize(other.size());
- memcpy(mData,other.mStart,other.bytes());
+ other.copyTo(*this);
}