|
Boost : |
From: Pavel Vozenilek (pavel_vozenilek_at_[hidden])
Date: 2004-04-15 03:34:56
"Brian McNamara" <lorgon_at_[hidden]> wrote
> More generally, I would really like a Boost library which lets me
> generate custom error messages portably.
[snip]
> What I would really love is if there were a boost library which enabled
> me to dispatch messages along the lines of
>
> BOOST_CUSTOM_ERROR( b, msg )
> BOOST_CUSTOM_WARNING( b, msg )
>
> where in both cases "b" is a compile-time boolean, "msg" is the name of
> a type, and the behavior is
>
> if the boolean is true
> force this compiler to generate a short diagnostic with typename
> "msg" featured prominently
>
Serialization library contains macro BOOST_STATIC_WARNING.
It would be useful to lift this feature into utility or static assert
or other visible place.
/Pavel
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk