I was trying to run the log basic usage (libs/log/example/basic_usage/main.cpp) example in visual studio. And it crashed at line
logging::add_console_log(std::clog, keywords::format = "%TimeStamp%: %Message%");
// For compatibility with Boost.Log v1 we recognize %_% as the message attribute name
const std::size_t len = end - begin;
if (std::char_traits< char_type >::length(constants::message_text_keyword()) == len &&
std::char_traits< char_type >::compare(constants::message_text_keyword(), begin, len) == 0)
{
m_AttrName = log::aux::default_attribute_names::message();
}
else
{
m_AttrName = attribute_name(log::aux::to_narrow(string_type(begin, end)));
}