From: Android Tools Maintainers Date: Fri, 27 Jan 2023 05:43:52 +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-25+rpi1^2~31 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=660ab14e96b8dee7c2bd6c1340a3656807d5af03;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; }