Added errinfo_nested_exception typedef. Fixed minor documentation error.

[SVN r56766]
This commit is contained in:
Emil Dotchevski
2009-10-13 01:47:22 +00:00
parent 2c0599b885
commit 17951c2b7d
18 changed files with 8664 additions and 8080 deletions

View File

@ -5,6 +5,7 @@
#include <boost/exception_ptr.hpp>
#include <boost/exception/get_error_info.hpp>
#include <boost/exception/errinfo_nested_exception.hpp>
#include <boost/detail/lightweight_test.hpp>
#include <boost/detail/workaround.hpp>
#include <string>
@ -13,8 +14,6 @@
struct my_tag {};
#endif
typedef boost::error_info<struct nested_exception_tag,boost::exception_ptr> nested_exception;
typedef boost::error_info<struct my_tag,int> my_info;
template <class T>
@ -557,7 +556,7 @@ main()
}
try
{
throw boost::enable_current_exception(derives_std_boost_exception("what2") << nested_exception(p) );
throw boost::enable_current_exception(derives_std_boost_exception("what2") << boost::errinfo_nested_exception(p) );
}
catch(
... )