C++ Logo

std-proposals

Advanced search

Re: [std-proposals] dynamic_cast<void*>(void*)

From: Frederick Virchanza Gotham <cauldwell.thomas_at_[hidden]>
Date: Tue, 27 Feb 2024 09:28:05 +0000
On Mon, Feb 26, 2024 at 11:24 PM Thiago Macieira wrote:
>
> And why would we want that? dynamic_cast does work on non-polymorphic types;
> the fact that it knows the answer statically and you could have used
> static_cast are irrelevant.


I'm not sure what you're saying here . . . the following doesn't
compile on all g++, clang++, intel:

        https://godbolt.org/z/1MEW6b1zY

Received on 2024-02-27 09:28:17