C++11 standard conformant bitmasks using enum class
I think you can… You’ll have to add operators for bitmasky things. I didn’t do it here but you could easily overload any relational operator. /** * */ // NOTE: I changed to a more descriptive and consistent name // This needs to be a real bitmask type. enum class file_permissions : int { no_perms … Read more