C++ Logo

std-proposals

Advanced search

[std-proposals] Fwd: Detect non overriden function

From: Jason McKesson <jmckesson_at_[hidden]>
Date: Sat, 19 Mar 2022 11:45:04 -0400
---------- Forwarded message ---------
From: Jason McKesson <jmckesson_at_[hidden]>
Date: Sat, Mar 19, 2022 at 11:34 AM
Subject: Re: [std-proposals] Detect non overriden function
To: organicoman <organicoman_at_[hidden]>


On Sat, Mar 19, 2022 at 11:13 AM organicoman <organicoman_at_[hidden]> wrote:
>
> Ah, ok,
> It is a third party library.

If you don't control the code, there's nothing to be done. C++
generally doesn't allow code external to a class to modify the way you
interface with that class, so I highly doubt the committee would
introduce a feature to do that for something like this. You can create
a new class that inherits from the base class, but that would require
users to use your class instead of the base class.

Received on 2022-03-19 15:45:28