Added errinfo_nested_exception typedef. Documentation update.

[SVN r57059]
This commit is contained in:
Emil Dotchevski
2009-10-22 07:14:09 +00:00
parent 502488fd4d
commit 910c081d37
78 changed files with 249 additions and 16970 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(
... )