Is reinterpret_cast between unrelated polymorphic types always UB, even if the v-table layouts ma...

Subscribers:
4,440
Published on ● Video Link: https://www.youtube.com/watch?v=U4SGy0ao02k



Duration: 0:00
1 views
0


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++




Other Videos By Peter Schneider


2025-05-11Where is the first destructor being called here?
2025-05-11How do I turn off the unlimited whitespace in IntelliJ editor?
2025-05-11target="_blank" vs. target="_new"
2025-05-11What in the world are Spring beans?
2025-05-11Dba: Is it possible to create a database not in the "base" directory, in Postgres 9.6 or later
2025-05-11How can I set "cr" as the default basis type in mgcv::gam instead of "tp"?
2025-05-11MySQL: Why does MySQL show "No database selected" for a typo in the "select database()" query?
2025-05-11Softwareengineering: Python: mapping the content of a structured text file to dictionary tree
2025-05-11Softwareengineering: what should a developer know/address to build commercial Android Apps? closed
2025-05-11Is there a way to use boost::equality_comparable with aggregates without messing up the initializ...
2025-05-10Is reinterpret_cast between unrelated polymorphic types always UB, even if the v-table layouts ma...
2025-05-09Security: Does karabiner elements on Mac OSX contain, or potentially contain, malware?
2025-05-093dprinting: Distortion and discoloration of corner of print
2025-05-09Gis: QGIS Tool "Save vector features to file" where can I find available GDAL dataset / layer opt...
2025-05-09What determines how float.PositiveInfinity is displayed?
2025-05-09I keep getting LNK2019 error even though I have a main() function. What is the issue?
2025-05-09Unable to package Log4j2 in maven project
2025-05-09Match start of line in multiline string in lua?
2025-05-09macOS Sequoia 15.4.1: Compiled C++ binary instantly killed on run (zsh: killed)
2025-05-09How can I count lines of code in an R package?
2025-05-09Displaying valid records with self join using CTE