Is reinterpret_cast between unrelated polymorphic types always UB, even if the v-table layouts ma...
Is reinterpret_cast between unrelated polymorphic types always UB, even if the v-table layouts match?
I hope you found a solution that worked for you :)
The Content is licensed under (https://meta.stackexchange.com/help/licensing) CC BY-SA.
Attention! This video does always use the same license as the source!
Thanks to all those great people for their contributions!
(stackoverflow.com/users/9363996/sergey-kolesnik)Sergey Kolesnik
(stackoverflow.com/users/1554020/yuri-kilochek)yuri kilochek
(stackoverflow.com/users/1386054/adrian-mccarthy)Adrian McCarthy
A special thanks goes out to the (stackoverflow.com/questions/79612744/is-reinterpret-cast-between-unrelated-polymorphic-types-always-ub-even-if-the-v)Stackexchange community
I wish you all a wonderful day! Stay safe :)
If anything is off, please write me at peter D.O.T schneider A.T ois42.de
undefined-behavior reinterpret-cast language-lawyer type-punning c++