Date: Tue, 27 Feb 2024 21:06:52 +0000
On Tue, Feb 27, 2024 at 3:58 PM Thiago Macieira wrote:
>
> Never mind, then. I've never used dynamic_cast in that scenario precisely
> because static_cast works, so I didn't actually remember it was already
> forbidden.
We're downcasting here -- not upcasting. Replacing dynamic_cast with
static_cast won't work here.
>
> Never mind, then. I've never used dynamic_cast in that scenario precisely
> because static_cast works, so I didn't actually remember it was already
> forbidden.
We're downcasting here -- not upcasting. Replacing dynamic_cast with
static_cast won't work here.
Received on 2024-02-27 21:07:05