...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
#include <boost/exception/info.hpp>
namespace
boost
{
template
E const & operator<<( E const & x, error_info const & v );
}
E must be boost::exception, or a type that derives (indirectly) from boost::exception.
A copy of v is stored into x. If x already contains data of type error_info
x.
std::bad_alloc, or any exception emitted by the T copy constructor.