From fa96125efba6a65bb6f1fe52c9739d612fb7ad98 Mon Sep 17 00:00:00 2001 From: Emil Dotchevski Date: Fri, 21 Aug 2009 22:28:44 +0000 Subject: [PATCH] mutable get_error_info support [SVN r55707] --- doc/boost_exception_get_error_info_hpp.html | 5 +- doc/boost_exception_info_hpp.html | 3 +- doc/error_info.html | 3 +- doc/error_info_value.html | 5 +- doc/error_info_value_type.html | 1 - doc/get_error_info.html | 5 +- doc/source/boost-exception.reno | 7550 ++++++++--------- doc/synopsis.html | 3 +- example/cloning_1.cpp | 2 +- example/errinfos.cpp | 42 +- example/error_info_2.cpp | 4 +- example/example_io.cpp | 10 +- example/info_tuple.cpp | 2 +- .../exception/detail/error_info_impl.hpp | 8 +- include/boost/exception/exception.hpp | 4 +- include/boost/exception/get_error_info.hpp | 31 +- include/boost/exception/info.hpp | 10 +- test/errinfos_test.cpp | 14 +- test/error_info_test.cpp | 40 + 19 files changed, 3910 insertions(+), 3832 deletions(-) diff --git a/doc/boost_exception_get_error_info_hpp.html b/doc/boost_exception_get_error_info_hpp.html index 8acdee3..1ef8347 100644 --- a/doc/boost_exception_get_error_info_hpp.html +++ b/doc/boost_exception_get_error_info_hpp.html @@ -28,7 +28,10 @@ namespace boost { template <class ErrorInfo,class E> - typename ErrorInfo::value_type const * get_error_info( E const & x ); + typename ErrorInfo::error_info::value_type const * get_error_info( E const & x ); + + template <class ErrorInfo,class E> + typename ErrorInfo::error_info::value_type * get_error_info( E & x ); }

See Also:

diff --git a/doc/boost_exception_info_hpp.html b/doc/boost_exception_info_hpp.html index 275c420..2a448fe 100644 --- a/doc/boost_exception_info_hpp.html +++ b/doc/boost_exception_info_hpp.html @@ -36,7 +36,8 @@ boost typedef T value_type; error_info( value_type const & v ); - value_type const & value() const; + value_type const & value() const; + value_type & value(); }; template <class E, class Tag, class T> diff --git a/doc/error_info.html b/doc/error_info.html index 15a36ee..9103c9b 100644 --- a/doc/error_info.html +++ b/doc/error_info.html @@ -34,7 +34,8 @@ boost typedef T value_type; error_info( value_type const & v ); - value_type const & value() const; + value_type const & value() const; + value_type & value(); }; }

Requirements:

diff --git a/doc/error_info_value.html b/doc/error_info_value.html index 0d19a84..1a5b4c1 100644 --- a/doc/error_info_value.html +++ b/doc/error_info_value.html @@ -22,9 +22,10 @@

error_info::value

#include <boost/exception/info.hpp>

-
value_type const & value() const;
+
value_type const & value() const;
+value_type & value();

Description:

-

Returns a const reference to the copy of the value passed to error_info's constructor stored in the error_info object.

+

Returns a (const) reference to the copy of the value passed to error_info's constructor stored in the error_info object.

Throws:

Nothing.


diff --git a/doc/error_info_value_type.html b/doc/error_info_value_type.html index 96eab3c..e5f900b 100644 --- a/doc/error_info_value_type.html +++ b/doc/error_info_value_type.html @@ -30,7 +30,6 @@
diff --git a/doc/get_error_info.html b/doc/get_error_info.html index 8f64bc1..31cda0d 100644 --- a/doc/get_error_info.html +++ b/doc/get_error_info.html @@ -25,7 +25,10 @@ boost { template <class ErrorInfo,class E> - typename ErrorInfo::value_type const * get_error_info( E const & x ); + typename ErrorInfo::error_info::value_type const * get_error_info( E const & x ); + + template <class ErrorInfo,class E> + typename ErrorInfo::error_info::value_type * get_error_info( E & x ); }

Requirements: