diff options
author | Pau Espin Pedrol <pespin@sysmocom.de> | 2018-08-30 20:45:14 +0200 |
---|---|---|
committer | Pau Espin Pedrol <pespin@sysmocom.de> | 2018-09-10 10:30:06 +0200 |
commit | 5e68cde779dc6ef4f84f32422c25c558dea650d3 (patch) | |
tree | b2b54681ef2569fb226c8f683b4bbfd53eb9ebcf /CommonLibs | |
parent | 1f4a009c67d61bca2d7b150492fb3b7e25867820 (diff) |
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
Diffstat (limited to 'CommonLibs')
-rw-r--r-- | CommonLibs/Vector.h | 2 |
1 files changed, 1 insertions, 1 deletions
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 @@ template <class T> class Vector { void clone(const Vector<T>& other) { resize(other.size()); - memcpy(mData,other.mStart,other.bytes()); + other.copyTo(*this); } |