When should static_cast, dynamic_cast, const_cast, and reinterpret_cast be used?
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++