Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Stringify enum
//Microsoft (R) C/C++ Optimizing Compiler Version 19.00.23506 for x64 #include <iostream> #define STRIGIFY_GEMMIMPL_ENUM( enumName ) # enumName + strlen("Enum::") enum class Enum : uint32_t { None = 0, // There is no appropriate meta command implementation. A, B, C, Count }; int main() { std::cout << STRIGIFY_GEMMIMPL_ENUM(Enum::None) << std::endl; }
run
|
edit
|
history
|
help
-1
Struct packing
print adapted struct
regex select, find
Constant table but dynamic initialization at runtime
derived_tempalte
"Mostly invalid states" and unordered_set
test
Increment pointer to struct
C++ standard violation: [templates][explicit instantiation][access checking]
algorithm_1