
22 Oct
2005
22 Oct
'05
2:26 a.m.
On 10/21/05, Paul Mensonides <pmenso57@comcast.net> wrote:
Other then the ability to tack UL (etc.) onto the end, it isn't a great strength that the macro produces a literal--only that it produces a compile-time constant suitably typed.
Another somewhat nice side-effect is that since it resolves to an octal literal, you get a more readable error message if your value is too large. For instance, in VC++ 7.1, if I try to make a literal over 8 bytes in size, I get a single, easy-to-read message, which is consistent with the errors I'd get with hex or octal literals: error C2177: constant too big -- -Matt Calabrese