Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Static cast of Enum
//Microsoft (R) C/C++ Optimizing Compiler Version 19.00.23506 for x64 #include <iostream> int main() { int zero = 0; int five = 5; enum TestEnum { TestEnum_One = 1, TestEnum_Two = 2, TestEnum_Three = 3, TestEnum_Four = 4, }; std::cout << static_cast<TestEnum>(zero) << ' ' << static_cast<TestEnum>(five); }
run
|
edit
|
history
|
help
0
Error log b is an undeclared identifier...
sharedptr emptiness
Adaptive return type
#18
const reference life time extension
Say if number is prime and give its factors
#8
Policy class partial specialization inheritance
problem_soultion2
what is this