Boost C++ Libraries: Ticket #9292: event_log example crashes. https://svn.boost.org/trac10/ticket/9292 <p> In supplied event_log_messages.mc: </p> <p> <a class="missing wiki">SeverityNames</a>=(Debug=0x0:MY_SEVERITY_DEBUG </p> <blockquote> <p> Info=0x1:MY_SEVERITY_INFO Warning=0x2:MY_SEVERITY_WARNING Error=0x3:MY_SEVERITY_ERROR ) </p> </blockquote> <p> Which translates into: </p> <p> <em> </em> Define the severity codes <em> #define MY_SEVERITY_WARNING 0x2 #define MY_SEVERITY_INFO 0x0 #define MY_SEVERITY_ERROR 0x3 </em></p> <p> in the generated event_log_messages.h </p> <p> When trying to execute the code: </p> <blockquote> <p> type_mapping[error] = sinks::event_log::make_event_type(MY_SEVERITY_ERROR); </p> </blockquote> <p> in supplied main.cpp </p> <p> the call to make_event_type throws out_of_range, because only levels 0, 1, 2, and 4 are allowed. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/9292 Trac 1.4.3