C++ : Is it valid to cast from A* to B* via dynamic_cast when A and B haven't a common ancestor?
C++ : Is it valid to cast from A* to B* via dynamic_cast when A and B haven't a common ancestor?
To Access My Live Chat Page,
On Google, Search for "hows tech developer connect"
As promised, I have a secret feature that I want to reveal to you.
This is a YouTube's feature which works on Desktop.
First, Ensure that the video is playing before proceeding.
Then, type the letters 'awesome' on the keyboard.
The progress bar on YouTube will be altered to a flashing rainbow.
A quick introduction about me,
Hey, I'm known as Delphi.
Allow me to support you in answering your questions.
C++ : Is it valid to cast from A* to B* via dynamic_cast when A and B haven't a common ancestor?
I welcome your comments and chats if you have more detailed queries.
Don't hesitate to provide your answer or insights by leaving a comment below.
A 'heart' from me will indicate my appreciation for your answer.
A* to when A B* dynamic_cast via from and valid ancestor? cast to : Is a B it common C++ haven't