Quantcast
Channel: User Karthik T - Stack Overflow
Viewing all articles
Browse latest Browse all 42

Answer by Karthik T for Why can't I reinterpret_cast uint to int?

$
0
0

From C++11 Standard(N3376) 5.2.10.1 this document, page 101:

Conversions that can be performed explicitly using reinterpret_cast are listed below. Noother conversion can be performed explicitly using reinterpret_cast.

The only conversion from integral type to integral type allowed is infact if the types are identical.

Others involve pointers.


Viewing all articles
Browse latest Browse all 42

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>