enum severity { severity_remark = 0, severity_warning, severity_error, severity_fatal, severity_commandline_error }; inline char const *get_severity(severity level) { static char const *severity_text[] = // static char const * { "remark", // severity_remark "warning", // severity_warning "error", // severity_error "fatal error", // severity_fatal "command line error" // severity_commandline_error }; BOOST_ASSERT(severity_remark <= level && level <= severity_commandline_error); return severity_text[level]; }
severity
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)