From 2af84878d20d005c07839c59991fc00611b5970a Mon Sep 17 00:00:00 2001 From: Emil Dotchevski Date: Tue, 29 Sep 2009 20:38:11 +0000 Subject: [PATCH] Merging from trunk: new function diagnostic_information_what, and mutable error info access. [SVN r56477] --- include/boost/exception/exception.hpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/include/boost/exception/exception.hpp b/include/boost/exception/exception.hpp index 6233f19..e7faf59 100644 --- a/include/boost/exception/exception.hpp +++ b/include/boost/exception/exception.hpp @@ -143,9 +143,9 @@ boost struct error_info_container { - virtual char const * diagnostic_information() const = 0; - virtual shared_ptr get( type_info_ const & ) const = 0; - virtual void set( shared_ptr const &, type_info_ const & ) = 0; + virtual char const * diagnostic_information( char const * ) const = 0; + virtual shared_ptr get( type_info_ const & ) const = 0; + virtual void set( shared_ptr const &, type_info_ const & ) = 0; virtual void add_ref() const = 0; virtual void release() const = 0; @@ -169,7 +169,7 @@ boost template <> struct get_info; - char const * get_diagnostic_information( exception const & ); + char const * get_diagnostic_information( exception const &, char const * ); } class @@ -231,7 +231,7 @@ boost return x; } - friend char const * exception_detail::get_diagnostic_information( exception const & ); + friend char const * exception_detail::get_diagnostic_information( exception const &, char const * ); template friend E const & operator<<( E const &, error_info const & );