From: Android Tools Maintainers Date: Fri, 20 Jan 2023 08:36:41 +0000 (+0000) Subject: Fix the weird error by GCC7 that fails to match the correct parent method. X-Git-Tag: archive/raspbian/29.0.6-23+rpi1^2~30 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=29c0e0c7dbddd11b86d172bd8fd650a199204ee1;p=android-platform-tools.git Fix the weird error by GCC7 that fails to match the correct parent method. Forwarded: not-needed Gbp-Pq: Topic system/core Gbp-Pq: Name Vector-cast.patch --- diff --git a/system/core/libutils/include/utils/Vector.h b/system/core/libutils/include/utils/Vector.h index ddf71de2..7f91a35e 100644 --- a/system/core/libutils/include/utils/Vector.h +++ b/system/core/libutils/include/utils/Vector.h @@ -258,7 +258,7 @@ Vector& Vector::operator = (const Vector& rhs) { template inline const Vector& Vector::operator = (const Vector& rhs) const { - VectorImpl::operator = (static_cast(rhs)); + VectorImpl::operator = (rhs); return *this; }