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

Subscribers:
4,130
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


6 days agoHow to pass a function as a parameter in Java?
6 days agoC# LINQ find duplicates in List
6 days agoHow to map struct to db with EfCore
6 days agoRetrocomputing: Communication between the CPU and the microcontroller through the (pre-)ISA bus
6 days agoSoftwareengineering: Are specific types still necessary?
6 days agoSoftwareengineering: Why is 24 lines a common default terminal height?
6 days agoList vs tuple, when to use each?
6 days agoSalesforce: refreshGraphQL does not retrieve new records when using upperBound and endCursor
6 days agoHow can I set "cr" as the default basis type in mgcv::gam instead of "tp"?
6 days agoSoftwareengineering: Python: mapping the content of a structured text file to dictionary tree
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