Boost logo

Boost :

From: Matt Calabrese (rivorus_at_[hidden])
Date: 2005-10-21 21:26:14


On 10/21/05, Paul Mensonides <pmenso57_at_[hidden]> 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

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk