C++: Difference between revisions

49 bytes added ,  14 October 2019
Line 108: Line 108:
* <code>static_cast</code>
* <code>static_cast</code>
* <code>dynamic_cast</code>
* <code>dynamic_cast</code>
If you're casting between things you know are compatible, you can also use <code>reinterpret_cast</code>.
If you're casting between things but do not want to change the bit-pattern (e.g. binary data or pointers), you can also use <code>reinterpret_cast</code>.


==Programming Styles==
==Programming Styles==