From: Android Tools Maintainers Date: Thu, 24 Feb 2022 16:58:51 +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-18+rpi1~1^2~24 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=f7b331a9f1da40a52322e96ba435658355cc25e7;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; }