diff --git a/doc/boost-exception.html b/doc/boost-exception.html index 68ec166..3914d22 100644 --- a/doc/boost-exception.html +++ b/doc/boost-exception.html @@ -77,7 +77,6 @@ boost public: virtual char const * diagnostic_information() const throw(); - virtual char const * what() const throw(); protected: @@ -167,7 +166,6 @@ boost public: virtual char const * diagnostic_information() const throw(); - virtual char const * what() const throw(); protected: @@ -202,14 +200,6 @@ boost

Nothing.

Note:

The return value remains valid until the exception object from which it is obtained is destroyed or modified.

-

exception::what

-
virtual char const * what() const throw();
-

Returns:

-

The default implementation is equivalent to return exception::diagnostic_information(). The signature of boost::exception::what is identical to the familiar std::exception::what function, so that when an exception type that derives both std::exception and boost::exception overrides the what function, it overrides both std::exception::what and boost::exception::what.

-

Throws:

-

Nothing.

-

Note:

-

The return value remains valid until the exception object from which it is obtained is destroyed or modified.

Transporting of Arbitrary Data to the Catch Site

error_info

#include <boost/exception/info.hpp>

diff --git a/doc/exception.html b/doc/exception.html index 2b7f81b..fa4f0b8 100644 --- a/doc/exception.html +++ b/doc/exception.html @@ -30,7 +30,6 @@ boost public: virtual char const * diagnostic_information() const throw(); - virtual char const * what() const throw(); protected: @@ -65,14 +64,6 @@ boost

Nothing.

Note:

The return value remains valid until the exception object from which it is obtained is destroyed or modified.

-

exception::what

-
virtual char const * what() const throw();
-

Returns:

-

The default implementation is equivalent to return exception::diagnostic_information(). The signature of boost::exception::what is identical to the familiar std::exception::what function, so that when an exception type that derives both std::exception and boost::exception overrides the what function, it overrides both std::exception::what and boost::exception::what.

-

Throws:

-

Nothing.

-

Note:

-

The return value remains valid until the exception object from which it is obtained is destroyed or modified.

See also:

BOOST_ERROR_INFO
Boost Exception
diff --git a/doc/exception_diagnostic_information.html b/doc/exception_diagnostic_information.html index f68a336..73c63f6 100644 --- a/doc/exception_diagnostic_information.html +++ b/doc/exception_diagnostic_information.html @@ -30,7 +30,6 @@

See also:

diagnostic_information
exception
-
exception::what
Tutorial: Diagnostic Information
diff --git a/doc/exception_exception_hpp.html b/doc/exception_exception_hpp.html index c16e1a4..1ab0283 100644 --- a/doc/exception_exception_hpp.html +++ b/doc/exception_exception_hpp.html @@ -30,7 +30,6 @@ boost public: virtual char const * diagnostic_information() const throw(); - virtual char const * what() const throw(); protected: diff --git a/doc/name_idx.html b/doc/name_idx.html index 00633eb..cff1a2e 100644 --- a/doc/name_idx.html +++ b/doc/name_idx.html @@ -45,7 +45,6 @@

exception

exception::diagnostic_information

exception::exception

-

exception::what

exception::~exception

exception_ptr

g

diff --git a/doc/source/boost-exception.reno b/doc/source/boost-exception.reno index 8e65761..47999d1 100644 --- a/doc/source/boost-exception.reno +++ b/doc/source/boost-exception.reno @@ -44,7 +44,7 @@ - 40 + 39 0 @@ -243,9 +243,9 @@ 1 - 251773B273187F592361DB0624E7F5D52C95845C3A6562F4A0F830C46D775BC8 - 3425410730 - 3294 + 9CC0F5ADB1C04555FD571DABD1D7D6775D8B11977ECC8320AD4451FC435E89A1 + 1325628148 + 3147 323 @@ -513,18 +513,18 @@ 4 - A8142902F961A340F0621653A76FC7941054FFA10ADADB1018A2E797D7EB1FE9 - 665149135 - 3114 + 13F58566E4D9F20B49F3F30B28528AEE562CD709108ADC1AE19A2F01D86C62F4 + 1430141721 + 2967 503 - FA32C25852E9BB3A713A7790E50C8060367F9810A8B03F3E63338FBF590F1EB9 - 201993397 - 2071 + 09CB6839AC1E71887371FB8159C2BFCD273A397C54E07B25CEF2EEF2FA24286A + 4111403263 + 1924 878 85EE1980CFB24E054EDB1B3BDFA61FD4D65AD0EF248A1A42D4C2552700459327 2238151539 428 - 1070 + 923 AD3F339F7126003907BCBDB3EF846FCACA895132E1100D202DA67D2B7846EE65 3032091776 60 @@ -1049,13 +1049,13 @@ 2 - A8142902F961A340F0621653A76FC7941054FFA10ADADB1018A2E797D7EB1FE9 - 665149135 - 3114 + 13F58566E4D9F20B49F3F30B28528AEE562CD709108ADC1AE19A2F01D86C62F4 + 1430141721 + 2967 503 - FA32C25852E9BB3A713A7790E50C8060367F9810A8B03F3E63338FBF590F1EB9 - 201993397 - 2071 + 09CB6839AC1E71887371FB8159C2BFCD273A397C54E07B25CEF2EEF2FA24286A + 4111403263 + 1924 878 @@ -1202,13 +1202,13 @@ 2 - 6BE9712680D0514BFC3D878FEA4DD229F4D7354F822CEE0088C260175DAA536A - 1707118066 - 2456 + D36D37BED1D119D9CB6040BE4A9694586CC5EFF7A50C30AB59BB06BF70458015 + 993620616 + 2321 457 - 1203100C7C62C4006CF1C69686685819E118A3DF3E3774867C8A064F1BE6E707 - 342590922 - 2424 + 248C5047CA4021C30DE8853D6AEBD138D11A76B3571C856A48C0A442D6D040A5 + 1700162144 + 2289 26 @@ -1703,9 +1703,9 @@ 1 - 6A493A8C485B322041944D321FD34F6CC4D67ABA527387BDD5DA6287C5E4B966 - 1638644878 - 2590 + 091CEE4B0BEBD40D864A1BC8288C10A248BEFFD4E472647343F2BEDE0BDE0F10 + 2732630308 + 2455 323 @@ -2027,6 +2027,123 @@ :) + + + 0 + + -26 + + + + 1 + 2 + (:include include:) !!!See also: (:pagelist link="backlink" except_tags="noalso,exception":) + + + + + 0 + + -27 + + + + 1 + 2 + (:include include:) !!!See also: (:pagelist link="backlink" except_tags="noalso":) + + + + + 0 + + -28 + + + + 1 + 2 + (:include include:) !!!See also: (:pagelist link="backlink" except_tags="noalso":) + + + + + 0 + + -29 + + + + 1 + 2 + (:include include:) !!!See also: (:pagelist link="backlink" except_tags="noalso":) + + + + + 0 + + -30 + + + + 1 + 2 + (:include include:) !!!See also: (:pagelist link="backlink" except_tags="noalso":) + + + + + 0 + + -31 + + + + 1 + 2 + (:include include:) !!!See also: (:pagelist link="backlink" except_tags="noalso":) + + + + + 0 + + -32 + + + + 1 + 2 + (:include include:) !!!See also: (:pagelist link="backlink" except_tags="noalso":) + + + + + 0 + + -33 + + + + 1 + 2 + (:include include:) !!!See also: (:pagelist link="backlink" except_tags="noalso":) + + + + + 0 + + -34 + + + + 1 + 2 + (:include include:) !!!See also: (:pagelist link="backlink" except_tags="noalso":) + + 0 @@ -2044,7 +2161,7 @@ 0 - -38 + -36 @@ -2066,6 +2183,58 @@ (:include include:) !!!See also: (:pagelist link="backlink" except_tags="noalso":) + + + 0 + + -38 + + + + 1 + 2 + (:include include:) !!!See also: (:pagelist link="backlink" except_tags="noalso":) + + + + + 0 + + -39 + + + + 1 + 2 + (:include include:) !!!See also: (:pagelist link="backlink" except_tags="noalso":) + + + + + 0 + + -40 + + + + 1 + 2 + (:include include:) !!!See also: (:pagelist link="backlink" except_tags="noalso":) + + + + + 0 + + -41 + + + + 1 + 2 + !Index (:pagelist fmt="index" except_tags="index,noindex":) + + 0 @@ -2080,18 +2249,18 @@ 3 - A8142902F961A340F0621653A76FC7941054FFA10ADADB1018A2E797D7EB1FE9 - 665149135 - 3114 + 13F58566E4D9F20B49F3F30B28528AEE562CD709108ADC1AE19A2F01D86C62F4 + 1430141721 + 2967 503 - FA32C25852E9BB3A713A7790E50C8060367F9810A8B03F3E63338FBF590F1EB9 - 201993397 - 2071 + 09CB6839AC1E71887371FB8159C2BFCD273A397C54E07B25CEF2EEF2FA24286A + 4111403263 + 1924 878 BAC52AC87CFA3174B3352140A8DC10BB7F48C945FC87787C3AC96F0FC2CFDB40 1066412964 165 - 204 + 57 @@ -2119,84 +2288,6 @@ (:include include:) !!!See also: (:pagelist link="backlink" except_tags="noalso":) - - - 0 - - -36 - - - - 1 - 2 - (:include include:) !!!See also: (:pagelist link="backlink" except_tags="noalso":) - - - - - 0 - - -34 - - - - 1 - 2 - (:include include:) !!!See also: (:pagelist link="backlink" except_tags="noalso":) - - - - - 0 - - -30 - - - - 1 - 2 - (:include include:) !!!See also: (:pagelist link="backlink" except_tags="noalso":) - - - - - 0 - - -31 - - - - 1 - 2 - (:include include:) !!!See also: (:pagelist link="backlink" except_tags="noalso":) - - - - - 0 - - -33 - - - - 1 - 2 - (:include include:) !!!See also: (:pagelist link="backlink" except_tags="noalso":) - - - - - 0 - - -32 - - - - 1 - 2 - (:include include:) !!!See also: (:pagelist link="backlink" except_tags="noalso":) - - 0 @@ -2211,110 +2302,18 @@ 3 - A8142902F961A340F0621653A76FC7941054FFA10ADADB1018A2E797D7EB1FE9 - 665149135 - 3114 + 13F58566E4D9F20B49F3F30B28528AEE562CD709108ADC1AE19A2F01D86C62F4 + 1430141721 + 2967 503 - FA32C25852E9BB3A713A7790E50C8060367F9810A8B03F3E63338FBF590F1EB9 - 201993397 - 2071 - 878 - E1E6A9EFC3D0DCF4197171BA3C804656908C414424194530416F69E471FC99AD - 120398751 - 145 - 57 - - - - - - 0 - ../../../../boost/exception/exception.hpp - 0 - 0 - - - - - <string>exception::what</string> - - - - - - - - - 1 - 2 - (:include include:) !!!See also: (:pagelist link="backlink" except_tags="noalso":) - - - - - 0 - - -40 - - - - 1 - 2 - (:include include:) !!!See also: (:pagelist link="backlink" except_tags="noalso":) - - - - - 0 - - -29 - - - - 1 - 2 - (:include include:) !!!See also: (:pagelist link="backlink" except_tags="noalso":) - - - - - 0 - - -28 - - - - 1 - 2 - (:include include:) !!!See also: (:pagelist link="backlink" except_tags="noalso":) - - - - - 0 - - 44 - - reno_context - - - - - - - 3 - A8142902F961A340F0621653A76FC7941054FFA10ADADB1018A2E797D7EB1FE9 - 665149135 - 3114 - 503 - FA32C25852E9BB3A713A7790E50C8060367F9810A8B03F3E63338FBF590F1EB9 - 201993397 - 2071 + 09CB6839AC1E71887371FB8159C2BFCD273A397C54E07B25CEF2EEF2FA24286A + 4111403263 + 1924 878 BACD79DFB4C710C1A67687FC6344DF2251E2379613C2DF5B2729B2CD37E24EA3 458367129 154 - 393 + 246 @@ -2342,58 +2341,6 @@ (:include include:) !!!See also: (:pagelist link="backlink" except_tags="noalso":) - - - 0 - - -27 - - - - 1 - 2 - (:include include:) !!!See also: (:pagelist link="backlink" except_tags="noalso":) - - - - - 0 - - -39 - - - - 1 - 2 - (:include include:) !!!See also: (:pagelist link="backlink" except_tags="noalso":) - - - - - 0 - - -26 - - - - 1 - 2 - (:include include:) !!!See also: (:pagelist link="backlink" except_tags="noalso,exception":) - - - - - 0 - - -41 - - - - 1 - 2 - !Index (:pagelist fmt="index" except_tags="index,noindex":) - - @@ -2401,13 +2348,13 @@ headers - 45 + 44 reno_layer - 40 + 39 0 @@ -2643,7 +2590,7 @@ 0 - -35 + -26 @@ -2654,7 +2601,7 @@ 0 - -38 + -27 @@ -2665,7 +2612,7 @@ 0 - -37 + -28 @@ -2676,43 +2623,13 @@ 0 - -42 + -29 0 - - - 0 - - -36 - - - - 0 - - - - - 0 - - -34 - - - - 3 - 2 - [@#include < - 1 - - 1 - - 2 - >@] - - 0 @@ -2743,17 +2660,6 @@ 0 - - - 0 - - -33 - - - - 0 - - 0 @@ -2769,7 +2675,7 @@ 0 - -43 + -33 @@ -2780,7 +2686,26 @@ 0 - -40 + -34 + + + + 3 + 2 + [@#include < + 1 + + 1 + + 2 + >@] + + + + + 0 + + -35 @@ -2791,7 +2716,7 @@ 0 - -29 + -36 @@ -2802,7 +2727,7 @@ 0 - -28 + -37 @@ -2813,18 +2738,7 @@ 0 - -44 - - - - 0 - - - - - 0 - - -27 + -38 @@ -2846,7 +2760,7 @@ 0 - -26 + -40 @@ -2864,6 +2778,28 @@ 0 + + + 0 + + -42 + + + + 0 + + + + + 0 + + -43 + + + + 0 + + @@ -2871,13 +2807,13 @@ ctors - 46 + 45 reno_layer - 40 + 39 0 @@ -3113,7 +3049,7 @@ 0 - -35 + -26 @@ -3124,7 +3060,7 @@ 0 - -38 + -27 @@ -3135,7 +3071,7 @@ 0 - -37 + -28 @@ -3146,29 +3082,7 @@ 0 - -42 - - - - 0 - - - - - 0 - - -36 - - - - 0 - - - - - 0 - - -34 + -29 @@ -3197,17 +3111,6 @@ 0 - - - 0 - - -33 - - - - 0 - - 0 @@ -3223,7 +3126,7 @@ 0 - -43 + -33 @@ -3234,7 +3137,7 @@ 0 - -40 + -34 @@ -3245,7 +3148,7 @@ 0 - -29 + -35 @@ -3256,7 +3159,7 @@ 0 - -28 + -36 @@ -3267,7 +3170,7 @@ 0 - -44 + -37 @@ -3278,7 +3181,7 @@ 0 - -27 + -38 @@ -3300,7 +3203,7 @@ 0 - -26 + -40 @@ -3318,6 +3221,28 @@ 0 + + + 0 + + -42 + + + + 0 + + + + + 0 + + -43 + + + + 0 + + @@ -3325,13 +3250,13 @@ free - 47 + 46 reno_layer - 40 + 39 0 @@ -3567,7 +3492,7 @@ 0 - -35 + -26 @@ -3578,7 +3503,7 @@ 0 - -38 + -27 @@ -3589,7 +3514,7 @@ 0 - -37 + -28 @@ -3600,29 +3525,7 @@ 0 - -42 - - - - 0 - - - - - 0 - - -36 - - - - 0 - - - - - 0 - - -34 + -29 @@ -3651,17 +3554,6 @@ 0 - - - 0 - - -33 - - - - 0 - - 0 @@ -3677,7 +3569,7 @@ 0 - -43 + -33 @@ -3688,7 +3580,7 @@ 0 - -40 + -34 @@ -3699,7 +3591,7 @@ 0 - -29 + -35 @@ -3710,7 +3602,7 @@ 0 - -28 + -36 @@ -3721,7 +3613,7 @@ 0 - -44 + -37 @@ -3732,7 +3624,7 @@ 0 - -27 + -38 @@ -3754,7 +3646,7 @@ 0 - -26 + -40 @@ -3772,6 +3664,28 @@ 0 + + + 0 + + -42 + + + + 0 + + + + + 0 + + -43 + + + + 0 + + @@ -3779,13 +3693,13 @@ decl - 48 + 47 reno_layer - 40 + 39 0 @@ -4259,23 +4173,14 @@ 0 - -35 + -26 - 5 + 9 2 [@class (:link 1 - - 0 - - -35 - - - 2 - :): public std::exception public boost:: - 1 0 @@ -4283,53 +4188,7 @@ 2 - { ---unspecified--- };@] - - - - - 0 - - -38 - - - - 3 - 2 - [@(:include - 1 - - 0 - - -36 - - - 2 - decl:)@] - - - - - 0 - - -37 - - - - 0 - - - - - 0 - - -42 - - - - 3 - 2 - [@virtual char const * (:link + :) { public: (:include 1 0 @@ -4338,60 +4197,100 @@ 2 - :::)() const throw();@] + decl pre_indent="4":) protected: (:include + 1 + + 0 + + -43 + + + 2 + decl pre_indent="4":) (:include + 1 + + 0 + + -15 + + + 2 + decl pre_indent="4":) };@] 0 - -36 + -27 3 2 - [@std::string + [@template <class Tag,class T> class (:link 1 0 - -36 + -27 2 - ( std::exception const & x );@] + :) { public: typedef T value_type; error_info( value_type const & ); };@] 0 - -34 + -28 5 2 - [@void (:link + [@template <class E, class Tag, class T> E const & (:link 1 0 - -34 + -28 2 - :)( (:link + |operator<<:)( E const & x, (:link 1 0 - -30 + -27 2 - :) const & ep ); + :)<Tag,T> const & v );@] + + + + + 0 + + -29 + + + + 3 + 2 + [@template <class T> ---unspecified--- (:link + 1 + + 0 + + -29 + + + 2 + :)( T const & x );@] @@ -4438,37 +4337,6 @@ :)( T const & e );@] - - - 0 - - -33 - - - - 5 - 2 - [@template <class T> (:link - 1 - - 0 - - -30 - - - 2 - :) (:link - 1 - - 0 - - -33 - - - 2 - :)( T const & e );@] - - 0 @@ -4504,29 +4372,133 @@ 0 - -43 + -33 - 3 + 5 2 - [@virtual char const * (:link + [@template <class T> (:link 1 0 - -43 + -30 2 - :::)() const throw();@] + :) (:link + 1 + + 0 + + -33 + + + 2 + :)( T const & e );@] 0 - -40 + -34 + + + + 5 + 2 + [@void (:link + 1 + + 0 + + -34 + + + 2 + :)( (:link + 1 + + 0 + + -30 + + + 2 + :) const & ep ); + + + + + 0 + + -35 + + + + 5 + 2 + [@class (:link + 1 + + 0 + + -35 + + + 2 + :): public std::exception public boost:: + 1 + + 0 + + -26 + + + 2 + { ---unspecified--- };@] + + + + + 0 + + -36 + + + + 3 + 2 + [@std::string + 1 + + 0 + + -36 + + + 2 + ( std::exception const & x );@] + + + + + 0 + + -37 + + + + 0 + + + + + 0 + + -38 @@ -4537,128 +4509,13 @@ 0 - -29 + -36 2 decl:)@] - - - 0 - - -29 - - - - 3 - 2 - [@template <class T> ---unspecified--- (:link - 1 - - 0 - - -29 - - - 2 - :)( T const & x );@] - - - - - 0 - - -28 - - - - 5 - 2 - [@template <class E, class Tag, class T> E const & (:link - 1 - - 0 - - -28 - - - 2 - |operator<<:)( E const & x, (:link - 1 - - 0 - - -27 - - - 2 - :)<Tag,T> const & v );@] - - - - - 0 - - -44 - - - - 7 - 2 - [@(:link - 1 - - 0 - - -44 - - - 2 - :::)(); (:link - 1 - - 0 - - -44 - - - 2 - :::)( (:link - 1 - - 0 - - -26 - - - 2 - :) const & x );@] - - - - - 0 - - -27 - - - - 3 - 2 - [@template <class Tag,class T> class (:link - 1 - - 0 - - -27 - - - 2 - :) { public: typedef T value_type; error_info( value_type const & ); };@] - - 0 @@ -4685,58 +4542,22 @@ 0 - -26 + -40 - 11 + 3 2 - [@class (:link + [@(:include 1 0 - -26 + -29 2 - :) { public: (:include - 1 - - 0 - - -42 - - - 2 - decl pre_indent="4":) (:include - 1 - - 0 - - -43 - - - 2 - decl pre_indent="4":) protected: (:include - 1 - - 0 - - -44 - - - 2 - decl pre_indent="4":) (:include - 1 - - 0 - - -15 - - - 2 - decl pre_indent="4":) };@] + decl:)@] @@ -4750,6 +4571,68 @@ 0 + + + 0 + + -42 + + + + 3 + 2 + [@virtual char const * (:link + 1 + + 0 + + -42 + + + 2 + :::)() const throw();@] + + + + + 0 + + -43 + + + + 7 + 2 + [@(:link + 1 + + 0 + + -43 + + + 2 + :::)(); (:link + 1 + + 0 + + -43 + + + 2 + :::)( (:link + 1 + + 0 + + -26 + + + 2 + :) const & x );@] + + @@ -4757,13 +4640,13 @@ include - 49 + 48 reno_layer - 40 + 39 0 @@ -5894,70 +5777,13 @@ 0 - -35 + -26 - 5 + 19 2 - !!!unknown_exception (:include synopsis:) This type is used by the - 1 - - 0 - - -30 - - - 2 - support in Boost Exception. Please see (:link - 1 - - 0 - - -32 - - - 2 - :). - - - - - 0 - - -38 - - - - 1 - 2 - !!boost/exception/diagnostic_information.hpp !!!Synopsis (:include synopsis:) - - - - - 0 - - -37 - - - - 1 - 2 - !!boost/exception.hpp !!Synopsis (:include synopsis:) - - - - - 0 - - -42 - - - - 7 - 2 - !!!exception::diagnostic_information (:include decl:) !!!!Returns: An string representation of all data stored in the boost::(:link + !!!exception (:include synopsis:) Class boost::(:link 1 0 @@ -5966,7 +5792,25 @@ 2 - :) object by the (:link + :) is designed to be used as a universal base for user-defined exception types. An object of any type deriving from boost::(:link + 1 + + 0 + + -26 + + + 2 + :) can store data of arbitrary types, using the (:link + 1 + + 0 + + -27 + + + 2 + :) wrapper and (:link 1 0 @@ -5975,29 +5819,7 @@ 2 - |operator<<:) function. See "(:link - 1 - - 0 - - -10 - - - 2 - :)" for details. !!!!Throws: Nothing. !!!!Note: The return value remains valid until the exception object from which it is obtained is destroyed or modified. - - - - - 0 - - -36 - - - - 5 - 2 - !!!diagnostic_information (:include synopsis:) !!!!Returns: If dynamic_cast<boost::(:link + |operator<<:). To retrieve data from a boost::(:link 1 0 @@ -6006,7 +5828,34 @@ 2 - :) *>(&x) is not null, the returned string is initialized by a call to (:link + :) object, use the (:link + 1 + + 0 + + -7 + + + 2 + :) function template. (:include + 1 + + 0 + + -43 + + + 2 + :) (:include + 1 + + 0 + + -15 + + + 2 + :) (:include 1 0 @@ -6015,20 +5864,190 @@ 2 - :); otherwise, the returned string combines the output of x.what() and typeid(x).name(). + :) 0 - -34 + -27 - 1 + 21 2 - !!!rethrow_exception (:include synopsis:) !!!!Precondition: ep shall not be null. !!!!Throws: The exception to which ep refers. + !!!error_info (:include synopsis:) !!!!Requirements: T must have accessible copy constructor and must not be a reference. !!!!Description: This class template is used to associate a Tag type with a value type T. Objects of type (:link + 1 + + 0 + + -27 + + + 2 + :)<Tag,T> can be passed to (:link + 1 + + 0 + + -28 + + + 2 + |operator<<:) to be stored in objects of type boost::(:link + 1 + + 0 + + -26 + + + 2 + :). !!!!Note: The header <(:link + 1 + + 0 + + -5 + + + 2 + :)> provides a declaration of the (:link + 1 + + 0 + + -27 + + + 2 + :) template, which is sufficient for the purpose of typedefing an instance for specific Tag and T, like this: [@#include <(:link + 1 + + 0 + + -5 + + + 2 + :)> typedef boost::(:link + 1 + + 0 + + -27 + + + 2 + :)<struct tag_errno,int> errno_info;@] Of course, to actually add an errno_info object to exceptions using (:link + 1 + + 0 + + -28 + + + 2 + |operator<<:), or to retrieve it using (:link + 1 + + 0 + + -7 + + + 2 + :), you must first #include <(:link + 1 + + 0 + + -16 + + + 2 + :)>. + + + + + 0 + + -28 + + + + 7 + 2 + !!!operator<<, error_info overload (:include synopsis:) !!!!Requirements: E must be boost::(:link + 1 + + 0 + + -26 + + + 2 + :), or a type that derives (indirectly) from boost::(:link + 1 + + 0 + + -26 + + + 2 + :). !!!!Effects: Stores a copy of v into x. If x already contains data of type (:link + 1 + + 0 + + -27 + + + 2 + :)<Tag1,T1>, that data is overwritten. !!!!Returns: x. (:include throws:) + + + + + 0 + + -29 + + + + 7 + 2 + !!!enable_error_info (:include synopsis:) !!!!Requirements: T must be a user-defined type with accessible no-throw copy constructor. !!!!Returns: An object of unspecified type with no-throw copy semantics, which derives publicly from both T, and class boost::(:link + 1 + + 0 + + -26 + + + 2 + :). The T sub-object is initialized from x by the T copy constructor. If T already derives from boost::(:link + 1 + + 0 + + -26 + + + 2 + :), then the type of the returned object does not derive boost::(:link + 1 + + 0 + + -26 + + + 2 + :). !!!!Throws: Nothing. @@ -6192,28 +6211,6 @@ :) and supports exception_ptr functionality. - - - 0 - - -33 - - - - 3 - 2 - !!!copy_exception (:include synopsis:) !!!!Effects: As if try { throw e; } catch( ... ) { return (:link - 1 - - 0 - - -32 - - - 2 - :)(); } - - 0 @@ -6357,31 +6354,79 @@ 0 - -43 + -33 - 9 + 3 2 - !!!exception::what (:include decl:) !!!!Returns: The default implementation is equivalent to return (:link + !!!copy_exception (:include synopsis:) !!!!Effects: As if try { throw e; } catch( ... ) { return (:link 1 0 - -42 + -32 2 - :)(). The signature of boost::(:link + :)(); } + + + + + 0 + + -34 + + + + 1 + 2 + !!!rethrow_exception (:include synopsis:) !!!!Precondition: ep shall not be null. !!!!Throws: The exception to which ep refers. + + + + + 0 + + -35 + + + + 5 + 2 + !!!unknown_exception (:include synopsis:) This type is used by the 1 0 - -43 + -30 2 - :) is identical to the familiar std::exception::what function, so that when an exception type that derives both std::exception and boost::(:link + support in Boost Exception. Please see (:link + 1 + + 0 + + -32 + + + 2 + :). + + + + + 0 + + -36 + + + + 5 + 2 + !!!diagnostic_information (:include synopsis:) !!!!Returns: If dynamic_cast<boost::(:link 1 0 @@ -6390,16 +6435,55 @@ 2 - :) overrides the what function, it overrides both std::exception::what and boost::(:link + :) *>(&x) is not null, the returned string is initialized by a call to (:link 1 0 - -43 + -42 2 - :). !!!!Throws: Nothing. !!!!Note: The return value remains valid until the exception object from which it is obtained is destroyed or modified. + :); otherwise, the returned string combines the output of x.what() and typeid(x).name(). + + + + + 0 + + -37 + + + + 1 + 2 + !!boost/exception.hpp !!Synopsis (:include synopsis:) + + + + + 0 + + -38 + + + + 1 + 2 + !!boost/exception/diagnostic_information.hpp !!!Synopsis (:include synopsis:) + + + + + 0 + + -39 + + + + 1 + 2 + !!boost/exception/enable_current_exception.hpp !!!Synopsis (:include synopsis:) @@ -6419,53 +6503,24 @@ 0 - -29 + -41 - 7 - 2 - !!!enable_error_info (:include synopsis:) !!!!Requirements: T must be a user-defined type with accessible no-throw copy constructor. !!!!Returns: An object of unspecified type with no-throw copy semantics, which derives publicly from both T, and class boost::(:link - 1 - - 0 - - -26 - - - 2 - :). The T sub-object is initialized from x by the T copy constructor. If T already derives from boost::(:link - 1 - - 0 - - -26 - - - 2 - :), then the type of the returned object does not derive boost::(:link - 1 - - 0 - - -26 - - - 2 - :). !!!!Throws: Nothing. + 0 0 - -28 + -42 7 2 - !!!operator<<, error_info overload (:include synopsis:) !!!!Requirements: E must be boost::(:link + !!!exception::diagnostic_information (:include decl:) !!!!Returns: An string representation of all data stored in the boost::(:link 1 0 @@ -6474,32 +6529,32 @@ 2 - :), or a type that derives (indirectly) from boost::(:link + :) object by the (:link 1 0 - -26 + -28 2 - :). !!!!Effects: Stores a copy of v into x. If x already contains data of type (:link + |operator<<:) function. See "(:link 1 0 - -27 + -10 2 - :)<Tag1,T1>, that data is overwritten. !!!!Returns: x. (:include throws:) + :)" for details. !!!!Throws: Nothing. !!!!Note: The return value remains valid until the exception object from which it is obtained is destroyed or modified. 0 - -44 + -43 @@ -6535,236 +6590,6 @@ |operator<<:), including data that is added at a future time. !!!!Throws: Nothing. - - - 0 - - -27 - - - - 21 - 2 - !!!error_info (:include synopsis:) !!!!Requirements: T must have accessible copy constructor and must not be a reference. !!!!Description: This class template is used to associate a Tag type with a value type T. Objects of type (:link - 1 - - 0 - - -27 - - - 2 - :)<Tag,T> can be passed to (:link - 1 - - 0 - - -28 - - - 2 - |operator<<:) to be stored in objects of type boost::(:link - 1 - - 0 - - -26 - - - 2 - :). !!!!Note: The header <(:link - 1 - - 0 - - -5 - - - 2 - :)> provides a declaration of the (:link - 1 - - 0 - - -27 - - - 2 - :) template, which is sufficient for the purpose of typedefing an instance for specific Tag and T, like this: [@#include <(:link - 1 - - 0 - - -5 - - - 2 - :)> typedef boost::(:link - 1 - - 0 - - -27 - - - 2 - :)<struct tag_errno,int> errno_info;@] Of course, to actually add an errno_info object to exceptions using (:link - 1 - - 0 - - -28 - - - 2 - |operator<<:), or to retrieve it using (:link - 1 - - 0 - - -7 - - - 2 - :), you must first #include <(:link - 1 - - 0 - - -16 - - - 2 - :)>. - - - - - 0 - - -39 - - - - 1 - 2 - !!boost/exception/enable_current_exception.hpp !!!Synopsis (:include synopsis:) - - - - - 0 - - -26 - - - - 21 - 2 - !!!exception (:include synopsis:) Class boost::(:link - 1 - - 0 - - -26 - - - 2 - :) is designed to be used as a universal base for user-defined exception types. An object of any type deriving from boost::(:link - 1 - - 0 - - -26 - - - 2 - :) can store data of arbitrary types, using the (:link - 1 - - 0 - - -27 - - - 2 - :) wrapper and (:link - 1 - - 0 - - -28 - - - 2 - |operator<<:). To retrieve data from a boost::(:link - 1 - - 0 - - -26 - - - 2 - :) object, use the (:link - 1 - - 0 - - -7 - - - 2 - :) function template. (:include - 1 - - 0 - - -44 - - - 2 - :) (:include - 1 - - 0 - - -15 - - - 2 - :) (:include - 1 - - 0 - - -42 - - - 2 - :) (:include - 1 - - 0 - - -43 - - - 2 - :) - - - - - 0 - - -41 - - - - 0 - - @@ -6772,13 +6597,13 @@ throws - 50 + 49 reno_layer - 40 + 39 0 @@ -7016,7 +6841,7 @@ 0 - -35 + -26 @@ -7027,7 +6852,7 @@ 0 - -38 + -27 @@ -7038,40 +6863,20 @@ 0 - -37 + -28 - 0 + 1 + 2 + !!!!Throws: std::bad_alloc, or any exception emitted by the T copy constructor. 0 - -42 - - - - 0 - - - - - 0 - - -36 - - - - 0 - - - - - 0 - - -34 + -29 @@ -7100,17 +6905,6 @@ 0 - - - 0 - - -33 - - - - 0 - - 0 @@ -7126,7 +6920,7 @@ 0 - -43 + -33 @@ -7137,7 +6931,7 @@ 0 - -40 + -34 @@ -7148,7 +6942,7 @@ 0 - -29 + -35 @@ -7159,20 +6953,7 @@ 0 - -28 - - - - 1 - 2 - !!!!Throws: std::bad_alloc, or any exception emitted by the T copy constructor. - - - - - 0 - - -44 + -36 @@ -7183,7 +6964,18 @@ 0 - -27 + -37 + + + + 0 + + + + + 0 + + -38 @@ -7205,7 +6997,7 @@ 0 - -26 + -40 @@ -7223,6 +7015,28 @@ 0 + + + 0 + + -42 + + + + 0 + + + + + 0 + + -43 + + + + 0 + + @@ -7230,13 +7044,13 @@ members - 51 + 50 reno_layer - 40 + 39 0 @@ -7472,7 +7286,7 @@ 0 - -35 + -26 @@ -7483,7 +7297,7 @@ 0 - -38 + -27 @@ -7494,7 +7308,7 @@ 0 - -37 + -28 @@ -7505,29 +7319,7 @@ 0 - -42 - - - - 0 - - - - - 0 - - -36 - - - - 0 - - - - - 0 - - -34 + -29 @@ -7556,17 +7348,6 @@ 0 - - - 0 - - -33 - - - - 0 - - 0 @@ -7582,7 +7363,7 @@ 0 - -43 + -33 @@ -7593,7 +7374,7 @@ 0 - -40 + -34 @@ -7604,7 +7385,7 @@ 0 - -29 + -35 @@ -7615,7 +7396,7 @@ 0 - -28 + -36 @@ -7626,7 +7407,7 @@ 0 - -44 + -37 @@ -7637,7 +7418,7 @@ 0 - -27 + -38 @@ -7659,7 +7440,7 @@ 0 - -26 + -40 @@ -7677,6 +7458,28 @@ 0 + + + 0 + + -42 + + + + 0 + + + + + 0 + + -43 + + + + 0 + + @@ -7684,13 +7487,13 @@ synopsis - 52 + 51 reno_layer - 40 + 39 0 @@ -8023,6 +7826,204 @@ 0 + + + 0 + + -26 + + + + 3 + 2 + `#include <(:link + 1 + + 0 + + -9 + + + 2 + :)> [@namespace boost { (:include decl pre_indent="4":) }@] + + + + + 0 + + -27 + + + + 3 + 2 + `#include <(:link + 1 + + 0 + + -16 + + + 2 + :)> [@namespace boost { (:include decl pre_indent="4":) }@] + + + + + 0 + + -28 + + + + 3 + 2 + `#include <(:link + 1 + + 0 + + -16 + + + 2 + :)>\\ [@namespace boost { (:include decl pre_indent="4":) }@] + + + + + 0 + + -29 + + + + 3 + 2 + `#include <(:link + 1 + + 0 + + -40 + + + 2 + :)> [@namespace boost { (:include decl pre_indent="4":) }@] + + + + + 0 + + -30 + + + + 3 + 2 + `#include <(:link + 1 + + 0 + + -21 + + + 2 + :)> [@namespace boost { (:include decl pre_indent="4":) }@] + + + + + 0 + + -31 + + + + 3 + 2 + `#include <(:link + 1 + + 0 + + -39 + + + 2 + :)> [@namespace boost { (:include decl pre_indent="4":) }@] + + + + + 0 + + -32 + + + + 3 + 2 + `#include <(:link + 1 + + 0 + + -21 + + + 2 + :)> [@namespace boost { (:include decl pre_indent="4":) }@] + + + + + 0 + + -33 + + + + 3 + 2 + `#include <(:link + 1 + + 0 + + -21 + + + 2 + :)> [@namespace boost { (:include decl pre_indent="4":) }@] + + + + + 0 + + -34 + + + + 3 + 2 + `#include <(:link + 1 + + 0 + + -21 + + + 2 + :)> [@namespace boost { (:include decl pre_indent="4":) }@] + + 0 @@ -8049,13 +8050,22 @@ 0 - -38 + -36 - 1 + 3 2 - [@#include <exception> namespace boost { (:include decl pre_indent="4":) }@] + `#include < + 1 + + 0 + + -38 + + + 2 + > [@namespace boost { (:include decl pre_indent="4":) }@] @@ -8120,253 +8130,13 @@ 0 - -42 + -38 - 0 - - - - - 0 - - -36 - - - - 3 + 1 2 - `#include < - 1 - - 0 - - -38 - - - 2 - > [@namespace boost { (:include decl pre_indent="4":) }@] - - - - - 0 - - -34 - - - - 3 - 2 - `#include <(:link - 1 - - 0 - - -21 - - - 2 - :)> [@namespace boost { (:include decl pre_indent="4":) }@] - - - - - 0 - - -30 - - - - 3 - 2 - `#include <(:link - 1 - - 0 - - -21 - - - 2 - :)> [@namespace boost { (:include decl pre_indent="4":) }@] - - - - - 0 - - -31 - - - - 3 - 2 - `#include <(:link - 1 - - 0 - - -39 - - - 2 - :)> [@namespace boost { (:include decl pre_indent="4":) }@] - - - - - 0 - - -33 - - - - 3 - 2 - `#include <(:link - 1 - - 0 - - -21 - - - 2 - :)> [@namespace boost { (:include decl pre_indent="4":) }@] - - - - - 0 - - -32 - - - - 3 - 2 - `#include <(:link - 1 - - 0 - - -21 - - - 2 - :)> [@namespace boost { (:include decl pre_indent="4":) }@] - - - - - 0 - - -43 - - - - 0 - - - - - 0 - - -40 - - - - 3 - 2 - [@#include < - 1 - - 0 - - -9 - - - 2 - > namespace boost { (:include decl pre_indent="4":) }@] - - - - - 0 - - -29 - - - - 3 - 2 - `#include <(:link - 1 - - 0 - - -40 - - - 2 - :)> [@namespace boost { (:include decl pre_indent="4":) }@] - - - - - 0 - - -28 - - - - 3 - 2 - `#include <(:link - 1 - - 0 - - -16 - - - 2 - :)>\\ [@namespace boost { (:include decl pre_indent="4":) }@] - - - - - 0 - - -44 - - - - 0 - - - - - 0 - - -27 - - - - 3 - 2 - `#include <(:link - 1 - - 0 - - -16 - - - 2 - :)> [@namespace boost { (:include decl pre_indent="4":) }@] + [@#include <exception> namespace boost { (:include decl pre_indent="4":) }@] @@ -8395,13 +8165,13 @@ 0 - -26 + -40 3 2 - `#include <(:link + [@#include < 1 0 @@ -8410,7 +8180,7 @@ 2 - :)> [@namespace boost { (:include decl pre_indent="4":) }@] + > namespace boost { (:include decl pre_indent="4":) }@] @@ -8424,6 +8194,28 @@ 0 + + + 0 + + -42 + + + + 0 + + + + + 0 + + -43 + + + + 0 + + @@ -8434,14 +8226,14 @@ - 53 + 52 reno_context_map - 40 + 39 -5 @@ -8506,22 +8298,16 @@ -25 - -35 + -26 - -38 + -27 - -37 + -28 - -42 - - - -36 - - - -34 + -29 -30 @@ -8529,44 +8315,47 @@ -31 - - -33 - -32 - -43 + -33 - -40 + -34 - -29 + -35 - -28 + -36 - -44 + -37 - -27 + -38 -39 - -26 + -40 -41 + + -42 + + + -43 + - 40 + 39 @@ -8659,6 +8448,58 @@ -21 + + + + + 1 + 091CEE4B0BEBD40D864A1BC8288C10A248BEFFD4E472647343F2BEDE0BDE0F10 + 2732630308 + 2455 + 323 + + + + + + 0 + ../../../../boost/exception/enable_error_info.hpp + 0 + 0 + + + + -40 + + + + + + + 2 + D36D37BED1D119D9CB6040BE4A9694586CC5EFF7A50C30AB59BB06BF70458015 + 993620616 + 2321 + 457 + 248C5047CA4021C30DE8853D6AEBD138D11A76B3571C856A48C0A442D6D040A5 + 1700162144 + 2289 + 26 + + + + + + 0 + ../../../../boost/exception/enable_error_info.hpp + 0 + 0 + + + + -29 + + @@ -8995,30 +8836,6 @@ -16 - - - - - 1 - 6A493A8C485B322041944D321FD34F6CC4D67ABA527387BDD5DA6287C5E4B966 - 1638644878 - 2590 - 323 - - - - - - 0 - ../../../../boost/exception/enable_error_info.hpp - 0 - 0 - - - - -40 - - @@ -9043,34 +8860,6 @@ -39 - - - - - 2 - 6BE9712680D0514BFC3D878FEA4DD229F4D7354F822CEE0088C260175DAA536A - 1707118066 - 2456 - 457 - 1203100C7C62C4006CF1C69686685819E118A3DF3E3774867C8A064F1BE6E707 - 342590922 - 2424 - 26 - - - - - - 0 - ../../../../boost/exception/enable_error_info.hpp - 0 - 0 - - - - -29 - - @@ -9235,6 +9024,30 @@ -23 + + + + + 1 + 9CC0F5ADB1C04555FD571DABD1D7D6775D8B11977ECC8320AD4451FC435E89A1 + 1325628148 + 3147 + 323 + + + + + + 0 + ../../../../boost/exception/exception.hpp + 0 + 0 + + + + -9 + + @@ -9311,30 +9124,6 @@ -19 - - - - - 1 - 251773B273187F592361DB0624E7F5D52C95845C3A6562F4A0F830C46D775BC8 - 3425410730 - 3294 - 323 - - - - - - 0 - ../../../../boost/exception/exception.hpp - 0 - 0 - - - - -9 - - @@ -9383,166 +9172,6 @@ -10 - - - - - 2 - A8142902F961A340F0621653A76FC7941054FFA10ADADB1018A2E797D7EB1FE9 - 665149135 - 3114 - 503 - FA32C25852E9BB3A713A7790E50C8060367F9810A8B03F3E63338FBF590F1EB9 - 201993397 - 2071 - 878 - - - - - - 0 - ../../../../boost/exception/exception.hpp - 0 - 0 - - - - -26 - - - - - - - 4 - A8142902F961A340F0621653A76FC7941054FFA10ADADB1018A2E797D7EB1FE9 - 665149135 - 3114 - 503 - FA32C25852E9BB3A713A7790E50C8060367F9810A8B03F3E63338FBF590F1EB9 - 201993397 - 2071 - 878 - 85EE1980CFB24E054EDB1B3BDFA61FD4D65AD0EF248A1A42D4C2552700459327 - 2238151539 - 428 - 1070 - AD3F339F7126003907BCBDB3EF846FCACA895132E1100D202DA67D2B7846EE65 - 3032091776 - 60 - 369 - - - - - - 0 - ../../../../boost/exception/exception.hpp - 0 - 0 - - - - -15 - - - - - - - 3 - A8142902F961A340F0621653A76FC7941054FFA10ADADB1018A2E797D7EB1FE9 - 665149135 - 3114 - 503 - FA32C25852E9BB3A713A7790E50C8060367F9810A8B03F3E63338FBF590F1EB9 - 201993397 - 2071 - 878 - BAC52AC87CFA3174B3352140A8DC10BB7F48C945FC87787C3AC96F0FC2CFDB40 - 1066412964 - 165 - 204 - - - - - - 0 - ../../../../boost/exception/exception.hpp - 0 - 0 - - - - -42 - - - - - - - 3 - A8142902F961A340F0621653A76FC7941054FFA10ADADB1018A2E797D7EB1FE9 - 665149135 - 3114 - 503 - FA32C25852E9BB3A713A7790E50C8060367F9810A8B03F3E63338FBF590F1EB9 - 201993397 - 2071 - 878 - BACD79DFB4C710C1A67687FC6344DF2251E2379613C2DF5B2729B2CD37E24EA3 - 458367129 - 154 - 393 - - - - - - 0 - ../../../../boost/exception/exception.hpp - 0 - 0 - - - - -44 - - - - - - - 3 - A8142902F961A340F0621653A76FC7941054FFA10ADADB1018A2E797D7EB1FE9 - 665149135 - 3114 - 503 - FA32C25852E9BB3A713A7790E50C8060367F9810A8B03F3E63338FBF590F1EB9 - 201993397 - 2071 - 878 - E1E6A9EFC3D0DCF4197171BA3C804656908C414424194530416F69E471FC99AD - 120398751 - 145 - 57 - - - - - - 0 - ../../../../boost/exception/exception.hpp - 0 - 0 - - - - -43 - - @@ -9591,6 +9220,134 @@ -12 + + + + + 2 + 13F58566E4D9F20B49F3F30B28528AEE562CD709108ADC1AE19A2F01D86C62F4 + 1430141721 + 2967 + 503 + 09CB6839AC1E71887371FB8159C2BFCD273A397C54E07B25CEF2EEF2FA24286A + 4111403263 + 1924 + 878 + + + + + + 0 + ../../../../boost/exception/exception.hpp + 0 + 0 + + + + -26 + + + + + + + 4 + 13F58566E4D9F20B49F3F30B28528AEE562CD709108ADC1AE19A2F01D86C62F4 + 1430141721 + 2967 + 503 + 09CB6839AC1E71887371FB8159C2BFCD273A397C54E07B25CEF2EEF2FA24286A + 4111403263 + 1924 + 878 + 85EE1980CFB24E054EDB1B3BDFA61FD4D65AD0EF248A1A42D4C2552700459327 + 2238151539 + 428 + 923 + AD3F339F7126003907BCBDB3EF846FCACA895132E1100D202DA67D2B7846EE65 + 3032091776 + 60 + 369 + + + + + + 0 + ../../../../boost/exception/exception.hpp + 0 + 0 + + + + -15 + + + + + + + 3 + 13F58566E4D9F20B49F3F30B28528AEE562CD709108ADC1AE19A2F01D86C62F4 + 1430141721 + 2967 + 503 + 09CB6839AC1E71887371FB8159C2BFCD273A397C54E07B25CEF2EEF2FA24286A + 4111403263 + 1924 + 878 + BAC52AC87CFA3174B3352140A8DC10BB7F48C945FC87787C3AC96F0FC2CFDB40 + 1066412964 + 165 + 57 + + + + + + 0 + ../../../../boost/exception/exception.hpp + 0 + 0 + + + + -42 + + + + + + + 3 + 13F58566E4D9F20B49F3F30B28528AEE562CD709108ADC1AE19A2F01D86C62F4 + 1430141721 + 2967 + 503 + 09CB6839AC1E71887371FB8159C2BFCD273A397C54E07B25CEF2EEF2FA24286A + 4111403263 + 1924 + 878 + BACD79DFB4C710C1A67687FC6344DF2251E2379613C2DF5B2729B2CD37E24EA3 + 458367129 + 154 + 246 + + + + + + 0 + ../../../../boost/exception/exception.hpp + 0 + 0 + + + + -43 + + @@ -9598,14 +9355,14 @@ - 54 + 53 tag_index - 41 + 40 1 @@ -9805,55 +9562,37 @@ 0 - -35 + -26 - exception_ptr,type,unknown_exception + exception,type 0 - -38 + -27 - boost/exception/diagnostic_information.hpp,diagnostic_information,header + error_info,free,type 0 - -37 + -28 - boost/exception.hpp,header + error_info,free,function,operator<<,operator<</exception 0 - -42 + -29 - diagnostic_information,exception,exception::diagnostic_information,function,member - - - - 0 - - -36 - - - diagnostic_information,free,function - - - - 0 - - -34 - - - exception_ptr,free,function,rethrow_exception + enable_error_info,error_info,free,function @@ -9873,15 +9612,6 @@ enable_current_exception,exception_ptr,free,function - - - 0 - - -33 - - - copy_exception,exception_ptr,free,function - 0 @@ -9895,55 +9625,55 @@ 0 - -43 + -33 - exception,exception::what,function,member + copy_exception,exception_ptr,free,function 0 - -40 + -34 - boost/exception/enable_error_info.hpp,enable_error_info,error_info,header + exception_ptr,free,function,rethrow_exception 0 - -29 + -35 - enable_error_info,error_info,free,function + exception_ptr,type,unknown_exception 0 - -28 + -36 - error_info,free,function,operator<<,operator<</exception + diagnostic_information,free,function 0 - -44 + -37 - exception,exception::exception,function,member + boost/exception.hpp,header 0 - -27 + -38 - error_info,free,type + boost/exception/diagnostic_information.hpp,diagnostic_information,header @@ -9958,10 +9688,10 @@ 0 - -26 + -40 - exception,type + boost/exception/enable_error_info.hpp,enable_error_info,error_info,header @@ -9972,6 +9702,24 @@ index,noindex + + + 0 + + -42 + + + diagnostic_information,exception,exception::diagnostic_information,function,member + + + + 0 + + -43 + + + exception,exception::exception,function,member + diff --git a/include/boost/exception/enable_error_info.hpp b/include/boost/exception/enable_error_info.hpp index fa98983..6782d46 100644 --- a/include/boost/exception/enable_error_info.hpp +++ b/include/boost/exception/enable_error_info.hpp @@ -33,12 +33,6 @@ boost { } - char const * - what() const throw() - { - return T::what(); - } - char const * diagnostic_information() const throw() { diff --git a/include/boost/exception/exception.hpp b/include/boost/exception/exception.hpp index c8a7e72..d128cd3 100644 --- a/include/boost/exception/exception.hpp +++ b/include/boost/exception/exception.hpp @@ -47,13 +47,6 @@ boost { public: - virtual - char const * - what() const throw() - { - return diagnostic_information(); - } - virtual char const * diagnostic_information() const throw() diff --git a/test/Jamfile.v2 b/test/Jamfile.v2 index f532e3e..ab465fe 100644 --- a/test/Jamfile.v2 +++ b/test/Jamfile.v2 @@ -29,7 +29,6 @@ run throw_exception_test.cpp helper2.cpp ; run errno_test.cpp ; run error_info_test.cpp ; run diagnostic_information_test.cpp ; -run what_test.cpp ; compile-fail exception_fail.cpp ; compile-fail throw_exception_fail.cpp ; diff --git a/test/diagnostic_information_test.cpp b/test/diagnostic_information_test.cpp index 873f835..51fefa5 100644 --- a/test/diagnostic_information_test.cpp +++ b/test/diagnostic_information_test.cpp @@ -44,26 +44,20 @@ get_diagnostic_information( std::exception const & x ) return boost::diagnostic_information(x); } -std::string -get_what( std::exception const & x ) - { - return x.what(); - } - int main() { using namespace boost; { error1 x; - BOOST_TEST(get_what(x)=="error1"); + BOOST_TEST(x.what()==std::string("error1")); std::string di=get_diagnostic_information(x); BOOST_TEST(di.find("type:")!=std::string::npos); BOOST_TEST(di.find("error1")!=std::string::npos); } { error2 x; x << tag_int(42); - BOOST_TEST(get_what(x)=="error2"); + BOOST_TEST(x.what()==std::string("error2")); std::string di=get_diagnostic_information(x); BOOST_TEST(di.find("type:")!=std::string::npos); BOOST_TEST(di.find("error2")!=std::string::npos); diff --git a/test/enable_error_info_test.cpp b/test/enable_error_info_test.cpp index eaa34ff..0d7c150 100644 --- a/test/enable_error_info_test.cpp +++ b/test/enable_error_info_test.cpp @@ -46,7 +46,6 @@ main() { BOOST_TEST( 42==*boost::get_error_info(x) ); BOOST_TEST( std::string(x.what())==std::string("exception test length error") ); - BOOST_TEST( std::string(x.what())!=std::string(boost::diagnostic_information(x)) ); } catch( ... ) diff --git a/test/what_test.cpp b/test/what_test.cpp deleted file mode 100644 index cc7021a..0000000 --- a/test/what_test.cpp +++ /dev/null @@ -1,32 +0,0 @@ -//Copyright (c) 2006-2008 Emil Dotchevski and Reverge Studios, Inc. - -//Distributed under the Boost Software License, Version 1.0. (See accompanying -//file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) - -#include -#include -#include -#include - -struct -test_exception: - std::exception, - boost::exception - { - char const * - what() const throw() - { - return "test_exception"; - } - }; - -int -main() - { - test_exception x; - std::exception & sx(x); - boost::exception & bx(x); - BOOST_TEST(std::string(sx.what())=="test_exception"); - BOOST_TEST(std::string(bx.what())=="test_exception"); - return boost::report_errors(); - }