C++ Logo


Advanced search

Re: [std-proposals] Detect non overriden function

From: Thiago Macieira <thiago_at_[hidden]>
Date: Sun, 20 Mar 2022 21:45:58 -0300
On Sunday, 20 March 2022 15:53:22 -03 organicoman via Std-Proposals wrote:
> Jason, All your explanations and reasoning is correct, but if didn't see the
> case I'm talking about in production, i wouldn't think about this feature.
> Please check the implementation of QProcess, which is a derived class of
> QIODevice, especially the function QProcess::readAll, and its 2
> specialization, QProcess:: readAllStandardOutput,
> QProcess::readAllStandardError.QProcess::readAll is not overriding the base
> class QIODevice::readAll

Because readAll is not virtual.

Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
   Software Architect - Intel DPG Cloud Engineering

Received on 2022-03-21 00:46:00