
15 Apr
2004
15 Apr
'04
8:34 a.m.
"Brian McNamara" <lorgon@cc.gatech.edu> 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