Binary representation similar to 0xFF ?
Is there a binary representation similar to the way hex and octal numbers are represented?
I usually do this:
int MyMask = 0x08 ; // Hex mask format - OK
Is there something like this?
int MyMask = 0b1000 ; // Binary mask format - Wrong!
Im I correct that there is nothing like this in C++ ? I'm shocked that this doesn't seem to exist!
I don't have any problems converting between binary and hex, but I thought it might make the code more readable sometimes.
Ref: Primary compiler = MSVC++