When should static_cast, dynamic_cast, const_cast, and reinterpret_cast be used?

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



Duration: 6:35
14 views
0


When should static_cast, dynamic_cast, const_cast, and reinterpret_cast be used?
I hope you found a solution that worked for you :)
The Content (except music & images) is licensed under (https://meta.stackexchange.com/help/licensing)CC BY-SA |
Thanks to all those great people for their contributions!

(stackoverflow.com/users/33686/e-james)e.James |
(stackoverflow.com/users/16855)coppro |
(stackoverflow.com/users/10077/fred-larson)Fred Larson |
(stackoverflow.com/users/671170/sumit-arora)Sumit Arora |
(stackoverflow.com/users/207661/shital-shah)Shital Shah |
(stackoverflow.com/users/19863/andreas-buykx)andreas buykx |
A special thanks goes out to the (https://stackoverflow.com/questions/332030/when-should-static-cast-dynamic-cast-const-cast-and-reinterpret-cast-be-used)Stackexchange community |

I wish you all a wonderful day! Stay safe :)

pointers c++-faq casting c++




Other Videos By Peter Schneider


2023-02-01Can't query GeoPackage geometry via SQLite client
2023-02-01How immediately pause a thread?
2023-02-01How can I add a button to every row of custom column?
2023-02-01A general way to make Lined Background independent to papersize/orientation
2023-02-01Is it possible to use a Macbook Air M1 with a resolution of 2560x1080/60Hz? If not, what are feas...
2023-02-01Automating interesting ways to write 2023
2023-02-01Struggling with uint64_t
2023-02-01Padding bytes were not empty : while decoding txn input data
2023-02-01Shell script to download, compile and run Analog Clock in AEC
2023-02-01Pass component name in onChange
2023-02-01When should static_cast, dynamic_cast, const_cast, and reinterpret_cast be used?
2023-01-31While and for loops not giving the right answer
2023-01-31How to turn an image into a short video with specific aspect ratio and fill empty areas with some...
2023-01-31Rotate polygons inside of a polygon to align with the longest side without manually adding a rota...
2023-01-31Multiple plots in a grid
2023-01-319V battery open circuit 8.5 volts but reduces to 2V when connected in series with a 300 ohm resis...
2023-01-31Web scraper for e-commerce sites Part II
2023-01-31How to see the number of layers currently selected in QGIS
2023-01-31Categorizing labels using same categorization as labeled layer in QGIS
2023-01-31How to annotate calculations?
2023-01-31Spring Boot 3.x upgrade. Could not resolve org.springframework.boot:spring-boot-gradle-plugin:3.0.1



Tags:
pointers
c++-faq
casting
c++