From: Android Tools Maintainers Date: Tue, 2 Aug 2022 15:23:27 +0000 (+0100) Subject: Fix the weird error by GCC7 that fails to match the correct parent method. X-Git-Tag: archive/raspbian/29.0.6-21+rpi1^2~26 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=214f451adb27c4eb6c244f9c9fee95209eaba36b;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; }