Yeah, this is corporate C++ code. I just came across a #define for the number of bytes in a byte.
The worst part isn't the #define itself but that the authors are confused about whether they're documenting why they're multiplying/dividing by 8 or whether 8 is a variable...
-
-
No, the number of _bytes_ in a byte. The
#define resolves to 1. -
Doh, I misread. Yeah, a sizeof(char)-level piece of nonsense...
-
At least sizeof(char) has one "legitimate" use: obtaining (size_t)-1 (i.e. SIZE_MAX) in contexts where headers to define size_t might not be included, via -sizeof(char).
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.