doorxp-blog

doorxp.com

Using enum classes as type-safe bitmasks

IntroIn C++, bitmasks are often represented by eitherpreprocessor defines#define Readable   0x4 #define Writeable  0x2 #define Executable 0x1 unsigned permissions = Readable | E

Powered By Z-BlogPHP 1.5.1 Zero

Copyright doorxp.com Rights Reserved.