#include #include int main() { try { BOOST_THROW_EXCEPTION(std::runtime_error("")); } catch (...) { // Prints nothing std::cout << "Exception: " << boost::current_exception_diagnostic_information() << std::endl; } try { // Just add a space BOOST_THROW_EXCEPTION(std::runtime_error(" ")); } catch (...) { // Now we error info is printed std::cout << "Exception: " << boost::current_exception_diagnostic_information() << std::endl; } }