On Wed Feb 1 20:45:41 2023 +0000, Gabriel Ivăncescu wrote:
It definitely depends on the surrounding code, in some cases it might be too obvious anyway, even if you see "DWORD flags", I just wanted to mention that I vastly prefer enums sometimes when I read new code full of flags, it makes it a lot easier to find out which is which—but yes in this case bool is even easier.
But then you get fun things like, e. g., D3DCULL_FORCE_DWORD in enum to make those flags be 32 bit on some compilers which leaves some room for arguments, but IMO it is still a matter of preference and the local style in a particular module.