Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Enum Class Comparisons
//Microsoft (R) C/C++ Optimizing Compiler Version 19.00.23506 for x64 #include <iostream> #include <type_traits> enum class TypeA : uint32_t { First, Second }; enum class TypeB : uint64_t { First, Second }; int main() { // This won't assert static_assert(std::underlying_type_t<TypeA>(TypeA::First) == std::underlying_type_t<TypeB>(TypeB::First), ""); // This also won't assert static_assert(TypeA::First == TypeA(TypeB::First), ""); std::cout << "Hello, world!\n"; }
run
|
edit
|
history
|
help
0
kkk
div64 inline asm
No UD
Affine Key Finder and Decrypter
MSVC alias template
#22.1
IBE FT ParseFileName
ria
fatal error LNK1123: failure during conversion to COFF: file invalid or corrupt
Chord Note Finder