Quantcast
Channel: User Peter - Reinstate Monica - Stack Overflow
Viewing all articles
Browse latest Browse all 223

Comment by Peter - Reinstate Monica on What does statically casting enumerator T to std::underlying_type actually do?

$
0
0
The main thing it does is that it changes the type of the expression to std::underlying_type<T> ;-). if you ask "what does it do that the C style cast doesn't do" then the answer is "nothing". The C style cast is a static cast here.

Viewing all articles
Browse latest Browse all 223

Trending Articles



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