diff --git a/doc/source/boost-exception.reno b/doc/source/boost-exception.reno index 5a73f75..5397313 100644 --- a/doc/source/boost-exception.reno +++ b/doc/source/boost-exception.reno @@ -48,96 +48,6 @@ reno_context - - - - - - 1 - 50E48ABD58B427E16B2EFA345D5FE67159057CB90F19AA1AD52C11991FD8500E - 4076172629 - 8577 - 323 - - - - - - 0 - ../../../../boost/exception/exception.hpp - 0 - 0 - - - - - <string>boost/exception/exception.hpp</string> - - - exception_exception_hpp - - - - - - 1 - 2 - (:include include:) (:auto also:) - - - - - 0 - - 6 - - reno_context - - - - - - - 1 - 25DF01CCA9425952104C6606C336BB091879E4A22680790BBB352670DFB0E0CD - 4271502180 - 8870 - 323 - - - - - - 0 - ../../../../boost/exception_ptr.hpp - 0 - 0 - - - - - <string>boost/exception_ptr.hpp</string> - - - exception_cloning_hpp - - - - - - 1 - 2 - (:include include:) (:auto also:) - - - - - 0 - - 7 - - reno_context - @@ -187,876 +97,7 @@ 0 - 8 - - reno_context - - - - - - - 2 - 86E1196533E771AEFD141DA43FCD980AE3D7689A45EDD54A2DF28B1943E0E7DB - 941210061 - 8706 - 487 - 448B6444D4B3E46F822F56C14FDA3F6F96B869543EBA1E291C5E3D36F73AF24B - 2443226110 - 700 - 1496 - - - - - - 0 - ../../../../boost/exception_ptr.hpp - 0 - 0 - - - - - <string>unknown_exception</string> - - - - - - - - - 1 - 2 - (:include include:) (:auto also:) - - - - - 0 - - 9 - - reno_context - - - - - - - 1 - CAD6C404CB725D336A44920D2341ECA131149AB02C368B59028F8147F16737BF - 2258638601 - 94 - 227 - - - - - - 0 - ../../../../boost/exception/info_tuple.hpp - 0 - 0 - - - - - <string>boost/exception/info_tuple.hpp</string> - - - exception_error_info_group_hpp - - - - - - 1 - 2 - (:include include:) (:auto also:) - - - - - 0 - - 10 - - reno_context - - - - - - - 2 - 50E48ABD58B427E16B2EFA345D5FE67159057CB90F19AA1AD52C11991FD8500E - 4076172629 - 8577 - 323 - DF9EA87B0140AACF4422F1B76F6A6A409C15F32858BBBA85A35981A824C56BA9 - 1137981799 - 192 - 8379 - - - - - - 0 - ../../../../boost/exception/exception.hpp - 0 - 0 - - - - - <string>enable_current_exception</string> - - - - - - - - - 1 - 2 - (:include include:) (:auto also:) - - - - - 0 - - 11 - - reno_context - - - - - - - 2 - 86E1196533E771AEFD141DA43FCD980AE3D7689A45EDD54A2DF28B1943E0E7DB - 941210061 - 8706 - 487 - 0066D4E6E6B189906E6DE04F08509F3737511701A1B1355B37511EC18E8371F4 - 2078296250 - 305 - 8138 - - - - - - 0 - ../../../../boost/exception_ptr.hpp - 0 - 0 - - - - - <string>copy_exception</string> - - - - - - - - - 1 - 2 - (:include include:) (:auto also:) - - - - - 0 - - 12 - - reno_context - - - - - - - 1 - 772781E5C169713B0AAF4BF73D567AB51C65D3D2DE185E43BDD75B8C3E0090AE - 2533913088 - 1998 - 91 - - - - - - 0 - ../../../../boost/throw_exception.hpp - 0 - 0 - - - - - <string>boost/throw_exception.hpp</string> - - - throw_exception_hpp - - - - - - 1 - 2 - (:include include:) (:auto also:) - - - - - 0 - - 13 - - reno_context - - - - - - - 2 - 9A4ECF9A49A73AED83C1565CB8C67AE1519E8AFE6818F968B4C4733CB9E86CEF - 1615599655 - 68 - 227 - 34F0583BC8DE767CE2D79721E1F956895E43E5397473B1050F59BE7E26C773DB - 805836816 - 66 - 1 - - - - - - 0 - ../../../../boost/exception/error_info.hpp - 0 - 0 - - - - - <string>boost/exception/error_info.hpp</string> - - - exception_error_info_value_hpp - - - - - - 1 - 2 - (:include include:) (:auto also:) - - - - - 0 - - 14 - - reno_context - - - - - - - 1 - F6A7A960DE8CB8740E206D2585D4C83854DE073ABDAFFB8BD1C9A6B73428197D - 129904804 - 4115 - 323 - - - - - - 0 - ../../../../boost/exception/get_error_info.hpp - 0 - 0 - - - - - <string>boost/exception/get_error_info.hpp</string> - - - exception_get_error_info_hpp - - - - - - 1 - 2 - (:include include:) (:auto also:) - - - - - 0 - - 15 - - reno_context - - - - - - - 1 - F4C951B28F7DE500973AA3DFAA99F2BADA6EDAFA2B406C30BEF3B7FBE6FD57D7 - 2263754923 - 982 - 306 - - - - - - 0 - ../../example/error_info_2.cpp - 0 - 0 - - - - - <string>adding of arbitrary data to active exception objects</string> - - - adding_data_later - - - - - - 0 - - - - - 0 - - 16 - - reno_context - - - - - - - 2 - 50E48ABD58B427E16B2EFA345D5FE67159057CB90F19AA1AD52C11991FD8500E - 4076172629 - 8577 - 323 - 17E691632123EB67BA67D590B49EB8094F462F5A10A66A1C5438E1867EF1478E - 765399792 - 77 - 5326 - - - - - - 0 - ../../../../boost/exception/exception.hpp - 0 - 0 - - - - - <string>exception::~exception</string> - - - exception_destructor - - - - - - 1 - 2 - (:include include:) (:auto also:) - - - - - 0 - - 17 - - reno_context - - - - - - - 1 - A08B750D3232ABEE88525742EFF8F342E5B2E4DE52BA6F55A8CFED666A50756E - 4268561218 - 4003 - 323 - - - - - - 0 - ../../../../boost/exception/info.hpp - 0 - 0 - - - - - <string>boost/exception/info.hpp</string> - - - exception_error_info_hpp - - - - - - 1 - 2 - (:include include:) (:auto also:) - - - - - 0 - - 18 - - reno_context - - - - - - - 2 - 86E1196533E771AEFD141DA43FCD980AE3D7689A45EDD54A2DF28B1943E0E7DB - 941210061 - 8706 - 487 - 0E9DF8366080712A816BE91ABCEF1E2044145B63D75B0B995B537900F378189E - 1069696031 - 255 - 8445 - - - - - - 0 - ../../../../boost/exception_ptr.hpp - 0 - 0 - - - - - <string>rethrow_exception</string> - - - - - - - - - 1 - 2 - (:include include:) (:auto also:) - - - - - 0 - - 19 - - reno_context - - - - - - - 0 - - - - - - 1 - - - - - <string>boost/exception/enable_error_info.hpp</string> - - - exception_enable_error_info_hpp - - - - - - 1 - 2 - (:include include:) (:auto also:) - - - - - 0 - - 20 - - reno_context - - - - - - - 2 - 86E1196533E771AEFD141DA43FCD980AE3D7689A45EDD54A2DF28B1943E0E7DB - 941210061 - 8706 - 487 - E23085202D084CBB50F289988A6A592F06D923B77D0AB25D7A98A7188DF5BE3B - 1414247481 - 766 - 7370 - - - - - - 0 - ../../../../boost/exception_ptr.hpp - 0 - 0 - - - - - <string>current_exception</string> - - - - - - - - - 1 - 2 - (:include include:) (:auto also:) - - - - - 0 - - 21 - - reno_context - - - - - - - 1 - 17FF6C63843EE64ED66CB038DD95B4C4D6BA1B0FD36B27BEFD84A909161D2853 - 1237535165 - 231 - 1171 - - - - - - 0 - ../../../../boost/throw_exception.hpp - 0 - 0 - - - - - <string>BOOST_THROW_EXCEPTION</string> - - - - - - - - - 1 - 2 - (:include include:) (:pagelist link="backlink":) - - - - - 0 - - 22 - - reno_context - - - - - - - 0 - - - - - - 1 - - - - - <string>boost/exception/enable_current_exception.hpp</string> - - - exception_enable_current_exception_hpp - - - - - - 1 - 2 - (:include include:) (:auto also:) - - - - - 0 - - 23 - - reno_context - - - - - - - 1 - 265AFB67CCEF87EC9B58DB910ED23C0B1A5546C44767E2FFD6829ABADAF4828B - 1235989793 - 1632 - 323 - - - - - - 0 - ../../../../boost/exception/diagnostic_information.hpp - 0 - 0 - - - - - <string>boost/exception/diagnostic_information.hpp</string> - - - exception_diagnostic_information_hpp - - - - - - 1 - 2 - (:include include:) (:auto also:) - - - - - 0 - - 24 - - reno_context - - - - - - - 2 - 50E48ABD58B427E16B2EFA345D5FE67159057CB90F19AA1AD52C11991FD8500E - 4076172629 - 8577 - 323 - B4D37C317A3B45825DDA1A8C8B1CE71CC2E530D15090D05995FCBEC4247F49C4 - 2742768198 - 258 - 6714 - - - - - - 0 - ../../../../boost/exception/exception.hpp - 0 - 0 - - - - - <string>enable_error_info</string> - - - - - - - - - 1 - 2 - (:include include:) (:auto also:) - - - - - 0 - - 25 - - reno_context - - - - - - - 1 - 67D64FAD0AB7CA6B2173A14F363D19B27F59EEBDB5C1076F8BCCA1B54D4CCD7D - 2241687287 - 303 - 323 - - - - - - 0 - ../../../../boost/exception.hpp - 0 - 0 - - - - - <string>boost/exception.hpp</string> - - - exception_hpp - - - - - - 1 - 2 - (:include include:) (:auto also:) - - - - - 0 - - 26 - - reno_context - - - - - - - 1 - FC684D0DD5A9732B4130F2AB3DB6E0491D0F523E14B7FB738B2019EA2C7F8717 - 2229778754 - 631 - 319 - - - - - - 0 - ../../example/cloning_2.cpp - 0 - 0 - - - - - <string>cloning and re-throwing an exception</string> - - - cloning_and_rethrowing - - - - - - 0 - - - - - 0 - - 27 + 6 reno_context @@ -1101,6 +142,971 @@ (:include include:) (:auto also:) + + + 0 + + 7 + + reno_context + + + + + + + 2 + 86E1196533E771AEFD141DA43FCD980AE3D7689A45EDD54A2DF28B1943E0E7DB + 941210061 + 8706 + 487 + 448B6444D4B3E46F822F56C14FDA3F6F96B869543EBA1E291C5E3D36F73AF24B + 2443226110 + 700 + 1496 + + + + + + 0 + ../../../../boost/exception_ptr.hpp + 0 + 0 + + + + + <string>unknown_exception</string> + + + + + + + + + 1 + 2 + (:include include:) (:auto also:) + + + + + 0 + + 8 + + reno_context + + + + + + + 1 + A7B38E57D7A0B8823D9FE49F434B6B61D2C300ED96FA97BBAE9CED40660241DF + 882254800 + 9168 + 323 + + + + + + 0 + ../../../../boost/exception/exception.hpp + 0 + 0 + + + + + <string>boost/exception/exception.hpp</string> + + + exception_exception_hpp + + + + + + 1 + 2 + (:include include:) (:auto also:) + + + + + 0 + + 9 + + reno_context + + + + + + + 1 + 25DF01CCA9425952104C6606C336BB091879E4A22680790BBB352670DFB0E0CD + 4271502180 + 8870 + 323 + + + + + + 0 + ../../../../boost/exception_ptr.hpp + 0 + 0 + + + + + <string>boost/exception_ptr.hpp</string> + + + exception_cloning_hpp + + + + + + 1 + 2 + (:include include:) (:auto also:) + + + + + 0 + + 10 + + reno_context + + + + + + + 1 + CAD6C404CB725D336A44920D2341ECA131149AB02C368B59028F8147F16737BF + 2258638601 + 94 + 227 + + + + + + 0 + ../../../../boost/exception/info_tuple.hpp + 0 + 0 + + + + + <string>boost/exception/info_tuple.hpp</string> + + + exception_error_info_group_hpp + + + + + + 1 + 2 + (:include include:) (:auto also:) + + + + + 0 + + 11 + + reno_context + + + + + + + 1 + 772781E5C169713B0AAF4BF73D567AB51C65D3D2DE185E43BDD75B8C3E0090AE + 2533913088 + 1998 + 91 + + + + + + 0 + ../../../../boost/throw_exception.hpp + 0 + 0 + + + + + <string>boost/throw_exception.hpp</string> + + + throw_exception_hpp + + + + + + 1 + 2 + (:include include:) (:auto also:) + + + + + 0 + + 12 + + reno_context + + + + + + + 2 + 9A4ECF9A49A73AED83C1565CB8C67AE1519E8AFE6818F968B4C4733CB9E86CEF + 1615599655 + 68 + 227 + 34F0583BC8DE767CE2D79721E1F956895E43E5397473B1050F59BE7E26C773DB + 805836816 + 66 + 1 + + + + + + 0 + ../../../../boost/exception/error_info.hpp + 0 + 0 + + + + + <string>boost/exception/error_info.hpp</string> + + + exception_error_info_value_hpp + + + + + + 1 + 2 + (:include include:) (:auto also:) + + + + + 0 + + 13 + + reno_context + + + + + + + 2 + A7B38E57D7A0B8823D9FE49F434B6B61D2C300ED96FA97BBAE9CED40660241DF + 882254800 + 9168 + 323 + DF9EA87B0140AACF4422F1B76F6A6A409C15F32858BBBA85A35981A824C56BA9 + 1137981799 + 192 + 8970 + + + + + + 0 + ../../../../boost/exception/exception.hpp + 0 + 0 + + + + + <string>enable_current_exception</string> + + + + + + + + + 1 + 2 + (:include include:) (:auto also:) + + + + + 0 + + 14 + + reno_context + + + + + + + 2 + 86E1196533E771AEFD141DA43FCD980AE3D7689A45EDD54A2DF28B1943E0E7DB + 941210061 + 8706 + 487 + 0066D4E6E6B189906E6DE04F08509F3737511701A1B1355B37511EC18E8371F4 + 2078296250 + 305 + 8138 + + + + + + 0 + ../../../../boost/exception_ptr.hpp + 0 + 0 + + + + + <string>copy_exception</string> + + + + + + + + + 1 + 2 + (:include include:) (:auto also:) + + + + + 0 + + 15 + + reno_context + + + + + + + 2 + 86E1196533E771AEFD141DA43FCD980AE3D7689A45EDD54A2DF28B1943E0E7DB + 941210061 + 8706 + 487 + 0E9DF8366080712A816BE91ABCEF1E2044145B63D75B0B995B537900F378189E + 1069696031 + 255 + 8445 + + + + + + 0 + ../../../../boost/exception_ptr.hpp + 0 + 0 + + + + + <string>rethrow_exception</string> + + + + + + + + + 1 + 2 + (:include include:) (:auto also:) + + + + + 0 + + 16 + + reno_context + + + + + + + 1 + F6A7A960DE8CB8740E206D2585D4C83854DE073ABDAFFB8BD1C9A6B73428197D + 129904804 + 4115 + 323 + + + + + + 0 + ../../../../boost/exception/get_error_info.hpp + 0 + 0 + + + + + <string>boost/exception/get_error_info.hpp</string> + + + exception_get_error_info_hpp + + + + + + 1 + 2 + (:include include:) (:auto also:) + + + + + 0 + + 17 + + reno_context + + + + + + + 1 + F4C951B28F7DE500973AA3DFAA99F2BADA6EDAFA2B406C30BEF3B7FBE6FD57D7 + 2263754923 + 982 + 306 + + + + + + 0 + ../../example/error_info_2.cpp + 0 + 0 + + + + + <string>adding of arbitrary data to active exception objects</string> + + + adding_data_later + + + + + + 0 + + + + + 0 + + 18 + + reno_context + + + + + + + 2 + A7B38E57D7A0B8823D9FE49F434B6B61D2C300ED96FA97BBAE9CED40660241DF + 882254800 + 9168 + 323 + 17E691632123EB67BA67D590B49EB8094F462F5A10A66A1C5438E1867EF1478E + 765399792 + 77 + 5917 + + + + + + 0 + ../../../../boost/exception/exception.hpp + 0 + 0 + + + + + <string>exception::~exception</string> + + + exception_destructor + + + + + + 1 + 2 + (:include include:) (:auto also:) + + + + + 0 + + 19 + + reno_context + + + + + + + 1 + 8DC5E3F51F580F74905ADF7542CBFBE23989808ACFF69E8C2B98B5092C633B42 + 378737885 + 4007 + 323 + + + + + + 0 + ../../../../boost/exception/info.hpp + 0 + 0 + + + + + <string>boost/exception/info.hpp</string> + + + exception_error_info_hpp + + + + + + 1 + 2 + (:include include:) (:auto also:) + + + + + 0 + + 20 + + reno_context + + + + + + + 0 + + + + + + 1 + + + + + <string>boost/exception/enable_current_exception.hpp</string> + + + exception_enable_current_exception_hpp + + + + + + 1 + 2 + (:include include:) (:auto also:) + + + + + 0 + + 21 + + reno_context + + + + + + + 0 + + + + + + 1 + + + + + <string>boost/exception/enable_error_info.hpp</string> + + + exception_enable_error_info_hpp + + + + + + 1 + 2 + (:include include:) (:auto also:) + + + + + 0 + + 22 + + reno_context + + + + + + + 2 + 86E1196533E771AEFD141DA43FCD980AE3D7689A45EDD54A2DF28B1943E0E7DB + 941210061 + 8706 + 487 + E23085202D084CBB50F289988A6A592F06D923B77D0AB25D7A98A7188DF5BE3B + 1414247481 + 766 + 7370 + + + + + + 0 + ../../../../boost/exception_ptr.hpp + 0 + 0 + + + + + <string>current_exception</string> + + + + + + + + + 1 + 2 + (:include include:) (:auto also:) + + + + + 0 + + 23 + + reno_context + + + + + + + 1 + 17FF6C63843EE64ED66CB038DD95B4C4D6BA1B0FD36B27BEFD84A909161D2853 + 1237535165 + 231 + 1171 + + + + + + 0 + ../../../../boost/throw_exception.hpp + 0 + 0 + + + + + <string>BOOST_THROW_EXCEPTION</string> + + + + + + + + + 1 + 2 + (:include include:) (:pagelist link="backlink":) + + + + + 0 + + 24 + + reno_context + + + + + + + 1 + 265AFB67CCEF87EC9B58DB910ED23C0B1A5546C44767E2FFD6829ABADAF4828B + 1235989793 + 1632 + 323 + + + + + + 0 + ../../../../boost/exception/diagnostic_information.hpp + 0 + 0 + + + + + <string>boost/exception/diagnostic_information.hpp</string> + + + exception_diagnostic_information_hpp + + + + + + 1 + 2 + (:include include:) (:auto also:) + + + + + 0 + + 25 + + reno_context + + + + + + + 2 + 8C77439A1F52A50CF8C4131A44CC7FA9CF5E02508CB32C4FF40B565613A396F4 + 476106477 + 3812 + 518 + D31BCE814DF5B8B718E7EB67A194AD08EF716A26D422E436596ABA1F145007D8 + 4055211476 + 525 + 3281 + + + + + + 0 + ../../../../boost/exception/info.hpp + 0 + 0 + + + + + <string>exception/operator<<</string> + + + + + + + + + 1 + 2 + (:include include:) (:auto also:) + + + + + 0 + + 26 + + reno_context + + + + + + + 2 + A7B38E57D7A0B8823D9FE49F434B6B61D2C300ED96FA97BBAE9CED40660241DF + 882254800 + 9168 + 323 + B4D37C317A3B45825DDA1A8C8B1CE71CC2E530D15090D05995FCBEC4247F49C4 + 2742768198 + 258 + 7305 + + + + + + 0 + ../../../../boost/exception/exception.hpp + 0 + 0 + + + + + <string>enable_error_info</string> + + + + + + + + + 1 + 2 + (:include include:) (:auto also:) + + + + + 0 + + 27 + + reno_context + + + + + + + 1 + 67D64FAD0AB7CA6B2173A14F363D19B27F59EEBDB5C1076F8BCCA1B54D4CCD7D + 2241687287 + 303 + 323 + + + + + + 0 + ../../../../boost/exception.hpp + 0 + 0 + + + + + <string>boost/exception.hpp</string> + + + exception_hpp + + + + + + 1 + 2 + (:include include:) (:auto also:) + + 0 @@ -1109,19 +1115,62 @@ reno_context + + + + + + 1 + FC684D0DD5A9732B4130F2AB3DB6E0491D0F523E14B7FB738B2019EA2C7F8717 + 2229778754 + 631 + 319 + + + + + + 0 + ../../example/cloning_2.cpp + 0 + 0 + + + + + <string>cloning and re-throwing an exception</string> + + + cloning_and_rethrowing + + + + + + 0 + + + + + 0 + + 29 + + reno_context + 3 - 50E48ABD58B427E16B2EFA345D5FE67159057CB90F19AA1AD52C11991FD8500E - 4076172629 - 8577 + A7B38E57D7A0B8823D9FE49F434B6B61D2C300ED96FA97BBAE9CED40660241DF + 882254800 + 9168 323 - 2D32D2DE11DB8BDD6F34C94CC165ABEF4F4CCB2D119354FA05811534E2AF356F - 1002290201 - 1604 + 65D35B8A2063883A53E9D0DCC3FF8E5CA3573A58451A653CDE3003FFBEC576D3 + 1693870740 + 2195 3720 DA154372D8C23BD9EDC30005CA7959CE686D198891097A837D006B5222F04DE9 2768248809 @@ -1158,7 +1207,7 @@ 0 - 29 + 30 reno_context @@ -1207,7 +1256,7 @@ 0 - 30 + 31 reno_context @@ -1245,7 +1294,7 @@ 0 - 31 + 32 reno_context @@ -1284,55 +1333,6 @@ 0 - - - 0 - - 32 - - reno_context - - - - - - - 2 - 17F10DBB69A481226D23CBBD7A897BF484EB8C5B1DC2E346E725EF0B8CE76D14 - 469421394 - 3808 - 518 - D31BCE814DF5B8B718E7EB67A194AD08EF716A26D422E436596ABA1F145007D8 - 4055211476 - 525 - 3277 - - - - - - 0 - ../../../../boost/exception/info.hpp - 0 - 0 - - - - - <string>exception/operator<<</string> - - - - - - - - - 1 - 2 - (:include include:) (:auto also:) - - 0 @@ -1341,416 +1341,6 @@ reno_context - - - - - - 2 - 8F178D422EC1891AEDF90A4DCA7BCEC96D29D1B0A70726C222513D699679F59D - 3253069900 - 3913 - 525 - BB8AF986C96801345719855FEA083AF5684FBC349F6520E150F19A6370019265 - 3731478139 - 686 - 3221 - - - - - - 0 - ../../../../boost/exception/get_error_info.hpp - 0 - 0 - - - - - <string>get_error_info</string> - - - - - - - - - 1 - 2 - (:include include:) (:auto also:) - - - - - 0 - - 34 - - reno_context - - - - - - - 2 - 126BB1D8971585CBE7D78EF3C12259D72FD5E973A84626AA9FC3234220A11CAB - 3471702891 - 969 - 344 - A7FD310E1340E103081DA2A7899DA0E213C696C84D52C17ADA09F6942EE97D47 - 2978648279 - 530 - 433 - - - - - - 0 - ../../../../boost/exception/detail/error_info_impl.hpp - 0 - 0 - - - - - <string>error_info</string> - - - - - - - - - 1 - 2 - (:include include:) (:auto also:) - - - - - 0 - - 35 - - reno_context - - - - - - - 1 - 187BFD2B78A0DD006717B5B06FFD465E2468F521C32A86FB793F7A68AB5417F3 - 4276724153 - 574 - 382 - - - - - - 0 - ../../example/error_info_1.cpp - 0 - 0 - - - - - <string>adding of arbitrary data at the point of the throw</string> - - - adding_data_at_throw - - - - - - 0 - - - - - 0 - - 36 - - reno_context - - - - - - - 1 - D9B8E6AA12A4F33953B1A961FA590C5A3840234B6531CA8C04AC985AD5800835 - 2432554768 - 702 - 408 - - - - - - 0 - ../../example/enable_error_info.cpp - 0 - 0 - - - - - <string>integrating boost exception in existing exception class hierarchies</string> - - - tutorial_enable_error_info - - - - - - 1 - 2 - (:include include:) (:auto also:) - - - - - 0 - - 37 - - reno_context - - - - - - - 2 - 612485E090D76B2CC43C1A296F813075BA165C2496082E78E939F10B3DA8E09A - 1770110914 - 587 - 1482 - 60F3F48B87487FA6E0D2CCC0750AF435CC92CEC80BBBF609AC71295031AADD0D - 3929437933 - 361 - 213 - - - - - - 0 - ../../../../boost/throw_exception.hpp - 0 - 0 - - - - - <string>throw_exception</string> - - - - - - - - - 1 - 2 - (:include include:) (:auto also:) - - - - - 0 - - 38 - - reno_context - - - - - - - 0 - - - - - - 1 - - - - - <string>transporting of arbitrary data to the catch site</string> - - - tutorial_transporting_data - - - - - - 1 - 2 - (:include include:) (:auto also:) - - - - - 0 - - 39 - - reno_context - - - - - - - 1 - 7116AEECEA666794E31DC99390ADEC1BA6AF74B2398067A0739767B4B76FA97A - 4128134227 - 307 - 302 - - - - - - 0 - ../../example/logging.cpp - 0 - 0 - - - - - <string>diagnostic information</string> - - - tutorial_diagnostic_information - - - - - - 1 - 2 - (:include include:) (:auto also:) - - - - - 0 - - 40 - - reno_context - - - - - - - 2 - 50E48ABD58B427E16B2EFA345D5FE67159057CB90F19AA1AD52C11991FD8500E - 4076172629 - 8577 - 323 - 2D32D2DE11DB8BDD6F34C94CC165ABEF4F4CCB2D119354FA05811534E2AF356F - 1002290201 - 1604 - 3720 - - - - - - 0 - ../../../../boost/exception/exception.hpp - 0 - 0 - - - - - <string>exception</string> - - - - - - - - - 1 - 2 - (:include include:) ---- !!!See Also: (:pagelist link="backlink" except_tags="exception,member" mod="w":) - - - - - 0 - - 41 - - reno_context - - - - - - - 1 - 4ED9709788BBAB4DE7CF336561606B8C0B41F70877A3395F4EE026F4AEB66CC6 - 743998427 - 409 - 307 - - - - - - 0 - ../../example/cloning_1.cpp - 0 - 0 - - - - - <string>using enable_current_exception at the time of the throw</string> - - - using_enable_cloning - - - - - - 0 - - - - - 0 - - 42 - - reno_context - @@ -1792,6 +1382,416 @@ (:include include:) (:auto also:) + + + 0 + + 34 + + reno_context + + + + + + + 2 + 8F178D422EC1891AEDF90A4DCA7BCEC96D29D1B0A70726C222513D699679F59D + 3253069900 + 3913 + 525 + BB8AF986C96801345719855FEA083AF5684FBC349F6520E150F19A6370019265 + 3731478139 + 686 + 3221 + + + + + + 0 + ../../../../boost/exception/get_error_info.hpp + 0 + 0 + + + + + <string>get_error_info</string> + + + + + + + + + 1 + 2 + (:include include:) (:auto also:) + + + + + 0 + + 35 + + reno_context + + + + + + + 2 + 126BB1D8971585CBE7D78EF3C12259D72FD5E973A84626AA9FC3234220A11CAB + 3471702891 + 969 + 344 + A7FD310E1340E103081DA2A7899DA0E213C696C84D52C17ADA09F6942EE97D47 + 2978648279 + 530 + 433 + + + + + + 0 + ../../../../boost/exception/detail/error_info_impl.hpp + 0 + 0 + + + + + <string>error_info</string> + + + + + + + + + 1 + 2 + (:include include:) (:auto also:) + + + + + 0 + + 36 + + reno_context + + + + + + + 1 + 187BFD2B78A0DD006717B5B06FFD465E2468F521C32A86FB793F7A68AB5417F3 + 4276724153 + 574 + 382 + + + + + + 0 + ../../example/error_info_1.cpp + 0 + 0 + + + + + <string>adding of arbitrary data at the point of the throw</string> + + + adding_data_at_throw + + + + + + 0 + + + + + 0 + + 37 + + reno_context + + + + + + + 1 + D9B8E6AA12A4F33953B1A961FA590C5A3840234B6531CA8C04AC985AD5800835 + 2432554768 + 702 + 408 + + + + + + 0 + ../../example/enable_error_info.cpp + 0 + 0 + + + + + <string>integrating boost exception in existing exception class hierarchies</string> + + + tutorial_enable_error_info + + + + + + 1 + 2 + (:include include:) (:auto also:) + + + + + 0 + + 38 + + reno_context + + + + + + + 2 + 612485E090D76B2CC43C1A296F813075BA165C2496082E78E939F10B3DA8E09A + 1770110914 + 587 + 1482 + 60F3F48B87487FA6E0D2CCC0750AF435CC92CEC80BBBF609AC71295031AADD0D + 3929437933 + 361 + 213 + + + + + + 0 + ../../../../boost/throw_exception.hpp + 0 + 0 + + + + + <string>throw_exception</string> + + + + + + + + + 1 + 2 + (:include include:) (:auto also:) + + + + + 0 + + 39 + + reno_context + + + + + + + 0 + + + + + + 1 + + + + + <string>transporting of arbitrary data to the catch site</string> + + + tutorial_transporting_data + + + + + + 1 + 2 + (:include include:) (:auto also:) + + + + + 0 + + 40 + + reno_context + + + + + + + 1 + 7116AEECEA666794E31DC99390ADEC1BA6AF74B2398067A0739767B4B76FA97A + 4128134227 + 307 + 302 + + + + + + 0 + ../../example/logging.cpp + 0 + 0 + + + + + <string>diagnostic information</string> + + + tutorial_diagnostic_information + + + + + + 1 + 2 + (:include include:) (:auto also:) + + + + + 0 + + 41 + + reno_context + + + + + + + 2 + A7B38E57D7A0B8823D9FE49F434B6B61D2C300ED96FA97BBAE9CED40660241DF + 882254800 + 9168 + 323 + 65D35B8A2063883A53E9D0DCC3FF8E5CA3573A58451A653CDE3003FFBEC576D3 + 1693870740 + 2195 + 3720 + + + + + + 0 + ../../../../boost/exception/exception.hpp + 0 + 0 + + + + + <string>exception</string> + + + + + + + + + 1 + 2 + (:include include:) ---- !!!See Also: (:pagelist link="backlink" except_tags="exception,member" mod="w":) + + + + + 0 + + 42 + + reno_context + + + + + + + 1 + 4ED9709788BBAB4DE7CF336561606B8C0B41F70877A3395F4EE026F4AEB66CC6 + 743998427 + 409 + 307 + + + + + + 0 + ../../example/cloning_1.cpp + 0 + 0 + + + + + <string>using enable_current_exception at the time of the throw</string> + + + using_enable_cloning + + + + + + 0 + + 0 @@ -1832,7 +1832,7 @@ 0 - -30 + -31 2 @@ -1841,39 +1841,12 @@ 0 - -37 + -38 2 :) function. !!Contents #Tutorial ##(:link 1 - - 0 - - -38 - - - 2 - mod="w":) ##(:link - 1 - - 0 - - -36 - - - 2 - mod="w":) ##(:link - 1 - - 0 - - -30 - - - 2 - mod="w":) ##(:link - 1 0 @@ -1881,124 +1854,7 @@ 2 - mod="w":) #Documentation ##Class (:link - 1 - - 0 - - -40 - - - 2 - :) ##Transporting of Arbitrary Data to the Catch Site ###(:link - 1 - - 0 - - -34 - - - 2 - :) ###(:link - 1 - - 0 - - -32 - - - 2 - :) ###(:link - 1 - - 0 - - -27 - - - 2 - :) ###(:link - 1 - - 0 - - -33 - - - 2 - :) ###(:link - 1 - - 0 - - -24 - - - 2 - :) ##(:link http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2179.html|N2179:) Transporting of Exceptions between Threads ###(:link - 1 - - 0 - - -42 - - - 2 - :) ###(:link - 1 - - 0 - - -10 - - - 2 - :) ###(:link - 1 - - 0 - - -20 - - - 2 - :) ###(:link - 1 - - 0 - - -11 - - - 2 - :) ###(:link - 1 - - 0 - - -18 - - - 2 - :) ###(:link - 1 - - 0 - - -8 - - - 2 - :) ##(:link - 1 - - 0 - - -29 - - - 2 - :) ##(:link + mod="w":) ##(:link 1 0 @@ -2007,25 +1863,43 @@ 2 - :), (:link + mod="w":) ##(:link 1 0 - -21 + -31 2 - :) ##(:link + mod="w":) ##(:link 1 0 - -7 + -40 2 - mod="w":) ##Headers ###(:link + mod="w":) #Documentation ##Class (:link + 1 + + 0 + + -41 + + + 2 + :) ##Transporting of Arbitrary Data to the Catch Site ###(:link + 1 + + 0 + + -35 + + + 2 + :) ###(:link 1 0 @@ -2036,78 +1910,6 @@ 2 :) ###(:link 1 - - 0 - - -23 - - - 2 - :) ###(:link - 1 - - 0 - - -22 - - - 2 - :) ###(:link - 1 - - 0 - - -19 - - - 2 - :) ###(:link - 1 - - 0 - - -13 - - - 2 - :) ###(:link - 1 - - 0 - - -5 - - - 2 - :) ###(:link - 1 - - 0 - - -14 - - - 2 - :) ###(:link - 1 - - 0 - - -17 - - - 2 - :) ###(:link - 1 - - 0 - - -9 - - - 2 - :) ###(:link - 1 0 @@ -2117,6 +1919,150 @@ 2 :) ###(:link 1 + + 0 + + -34 + + + 2 + :) ###(:link + 1 + + 0 + + -26 + + + 2 + :) ##(:link http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2179.html|N2179:) Transporting of Exceptions between Threads ###(:link + 1 + + 0 + + -33 + + + 2 + :) ###(:link + 1 + + 0 + + -13 + + + 2 + :) ###(:link + 1 + + 0 + + -22 + + + 2 + :) ###(:link + 1 + + 0 + + -14 + + + 2 + :) ###(:link + 1 + + 0 + + -15 + + + 2 + :) ###(:link + 1 + + 0 + + -7 + + + 2 + :) ##(:link + 1 + + 0 + + -30 + + + 2 + :) ##(:link + 1 + + 0 + + -38 + + + 2 + :), (:link + 1 + + 0 + + -23 + + + 2 + :) ##(:link + 1 + + 0 + + -5 + + + 2 + mod="w":) ##Headers ###(:link + 1 + + 0 + + -27 + + + 2 + :) ###(:link + 1 + + 0 + + -24 + + + 2 + :) ###(:link + 1 + + 0 + + -20 + + + 2 + :) ###(:link + 1 + + 0 + + -21 + + + 2 + :) ###(:link + 1 0 @@ -2124,6 +2070,60 @@ 2 + :) ###(:link + 1 + + 0 + + -8 + + + 2 + :) ###(:link + 1 + + 0 + + -16 + + + 2 + :) ###(:link + 1 + + 0 + + -19 + + + 2 + :) ###(:link + 1 + + 0 + + -10 + + + 2 + :) ###(:link + 1 + + 0 + + -9 + + + 2 + :) ###(:link + 1 + + 0 + + -11 + + + 2 :) #(:link 1 @@ -2163,7 +2163,7 @@ 0 - -25 + -27 2 @@ -2172,25 +2172,7 @@ 0 - -5 - - - 2 - api pre_indent="4":) (:include - 1 - - 0 - - -17 - - - 2 - api pre_indent="4":) (:include - 1 - - 0 - - -9 + -8 2 @@ -2208,7 +2190,7 @@ 0 - -23 + -10 2 @@ -2217,7 +2199,7 @@ 0 - -6 + -21 2 @@ -2226,7 +2208,25 @@ 0 - -22 + -24 + + + 2 + api pre_indent="4":) (:include + 1 + + 0 + + -9 + + + 2 + api pre_indent="4":) (:include + 1 + + 0 + + -20 2 @@ -2235,7 +2235,7 @@ 0 - -12 + -11 2 @@ -2244,7 +2244,7 @@ 0 - -12 + -11 2 @@ -2253,12 +2253,39 @@ 0 - -40 + -41 2 :) !!Transporting of Arbitrary Data to the Catch Site (:include 1 + + 0 + + -35 + + + 2 + :) (:include + 1 + + 0 + + -25 + + + 2 + :) (:include + 1 + + 0 + + -6 + + + 2 + :) (:include + 1 0 @@ -2271,20 +2298,11 @@ 0 - -32 + -26 2 - :) (:include - 1 - - 0 - - -27 - - - 2 - :) (:include + :) !!Transporting of Exceptions between Threads (:include 1 0 @@ -2298,16 +2316,7 @@ 0 - -24 - - - 2 - :) !!Transporting of Exceptions between Threads (:include - 1 - - 0 - - -42 + -13 2 @@ -2316,7 +2325,7 @@ 0 - -10 + -22 2 @@ -2325,7 +2334,7 @@ 0 - -20 + -14 2 @@ -2334,7 +2343,7 @@ 0 - -11 + -15 2 @@ -2343,16 +2352,7 @@ 0 - -18 - - - 2 - :) (:include - 1 - - 0 - - -8 + -7 2 @@ -2361,7 +2361,7 @@ 0 - -29 + -30 2 @@ -2370,7 +2370,7 @@ 0 - -37 + -38 2 @@ -2731,18 +2731,7 @@ - 3 - 2 - [@template <class Tag,class T> class (:link - 1 - - 0 - - -34 - - - 2 - :) { public: typedef T value_type; error_info( value_type const & ); };@] + 0 @@ -2753,7 +2742,18 @@ - 0 + 3 + 2 + [@template <class Tag,class T> class (:link + 1 + + 0 + + -35 + + + 2 + :) { public: typedef T value_type; error_info( value_type const & ); };@] @@ -2808,36 +2808,7 @@ - 7 - 2 - [@class (:link - 1 - - 0 - - -40 - - - 2 - :) { protected: (:include - 1 - - 0 - - -28 - - - 2 - decl pre_indent="4":) (:include - 1 - - 0 - - -16 - - - 2 - decl pre_indent="4":) };@] + 0 @@ -2848,7 +2819,36 @@ - 0 + 7 + 2 + [@class (:link + 1 + + 0 + + -41 + + + 2 + :) { protected: (:include + 1 + + 0 + + -29 + + + 2 + decl pre_indent="4":) (:include + 1 + + 0 + + -18 + + + 2 + decl pre_indent="4":) };@] @@ -2906,54 +2906,7 @@ - 11 - 2 - [@(:include - 1 - - 0 - - -40 - - - 2 - def:) (:include - 1 - - 0 - - -34 - - - 2 - decl:) typedef (:link - 1 - - 0 - - -34 - - - 2 - :)<struct tag_throw_function,char const *> throw_function; typedef (:link - 1 - - 0 - - -34 - - - 2 - :)<struct tag_throw_file,char const *> throw_file; typedef (:link - 1 - - 0 - - -34 - - - 2 - :)<struct tag_throw_line,int> throw_line;@] + 0 @@ -2964,54 +2917,7 @@ - 11 - 2 - [@(:include - 1 - - 0 - - -8 - - - 2 - decl:) (:include - 1 - - 0 - - -42 - - - 2 - decl:) (:include - 1 - - 0 - - -11 - - - 2 - decl:) (:include - 1 - - 0 - - -20 - - - 2 - decl:) (:include - 1 - - 0 - - -18 - - - 2 - decl:)@] + 0 @@ -3033,7 +2939,54 @@ - 0 + 11 + 2 + [@(:include + 1 + + 0 + + -41 + + + 2 + def:) (:include + 1 + + 0 + + -35 + + + 2 + decl:) typedef (:link + 1 + + 0 + + -35 + + + 2 + :)<struct tag_throw_function,char const *> throw_function; typedef (:link + 1 + + 0 + + -35 + + + 2 + :)<struct tag_throw_file,char const *> throw_file; typedef (:link + 1 + + 0 + + -35 + + + 2 + :)<struct tag_throw_line,int> throw_line;@] @@ -3044,14 +2997,50 @@ - 3 + 11 2 [@(:include 1 0 - -27 + -7 + + + 2 + decl:) (:include + 1 + + 0 + + -33 + + + 2 + decl:) (:include + 1 + + 0 + + -14 + + + 2 + decl:) (:include + 1 + + 0 + + -22 + + + 2 + decl:) (:include + 1 + + 0 + + -15 2 @@ -3066,7 +3055,18 @@ - 0 + 3 + 2 + [@(:include + 1 + + 0 + + -6 + + + 2 + decl:)@] @@ -3076,17 +3076,6 @@ -11 - - 0 - - - - - 0 - - -12 - - 5 2 @@ -3095,7 +3084,7 @@ 0 - -21 + -23 2 @@ -3104,7 +3093,7 @@ 0 - -37 + -38 2 @@ -3115,7 +3104,7 @@ 0 - -13 + -12 @@ -3126,13 +3115,24 @@ 0 - -34 + -35 2 decl:)@] + + + 0 + + -13 + + + + 0 + + 0 @@ -3141,18 +3141,7 @@ - 3 - 2 - [@(:include - 1 - - 0 - - -33 - - - 2 - decl:)@] + 0 @@ -3174,18 +3163,7 @@ - 0 - - - - - 0 - - -17 - - - - 5 + 3 2 [@(:include 1 @@ -3196,18 +3174,20 @@ 2 - def:) (:include - 1 - - 0 - - -32 - - - 2 decl:)@] + + + 0 + + -17 + + + + 0 + + 0 @@ -3227,14 +3207,23 @@ - 3 + 5 2 [@(:include 1 0 - -24 + -35 + + + 2 + def:) (:include + 1 + + 0 + + -25 2 @@ -3249,7 +3238,18 @@ - 0 + 3 + 2 + [@(:include + 1 + + 0 + + -13 + + + 2 + decl:)@] @@ -3260,7 +3260,18 @@ - 0 + 3 + 2 + [@(:include + 1 + + 0 + + -26 + + + 2 + decl:)@] @@ -3271,18 +3282,7 @@ - 3 - 2 - [@(:include - 1 - - 0 - - -10 - - - 2 - decl:)@] + 0 @@ -3293,18 +3293,7 @@ - 3 - 2 - [@(:include - 1 - - 0 - - -29 - - - 2 - decl:)@] + 0 @@ -3315,7 +3304,18 @@ - 0 + 3 + 2 + [@(:include + 1 + + 0 + + -30 + + + 2 + decl:)@] @@ -3326,72 +3326,7 @@ - 15 - 2 - [@#include <(:link - 1 - - 0 - - -23 - - - 2 - :)> #include <(:link - 1 - - 0 - - -13 - - - 2 - :)> #include <(:link - 1 - - 0 - - -5 - - - 2 - :)> #include <(:link - 1 - - 0 - - -14 - - - 2 - :)> #include <(:link - 1 - - 0 - - -17 - - - 2 - :)> #include <(:link - 1 - - 0 - - -9 - - - 2 - :)> #include <(:link - 1 - - 0 - - -6 - - - 2 - :)>@] + 0 @@ -3413,7 +3348,72 @@ - 0 + 15 + 2 + [@#include <(:link + 1 + + 0 + + -24 + + + 2 + :)> #include <(:link + 1 + + 0 + + -12 + + + 2 + :)> #include <(:link + 1 + + 0 + + -8 + + + 2 + :)> #include <(:link + 1 + + 0 + + -16 + + + 2 + :)> #include <(:link + 1 + + 0 + + -19 + + + 2 + :)> #include <(:link + 1 + + 0 + + -10 + + + 2 + :)> #include <(:link + 1 + + 0 + + -9 + + + 2 + :)>@] @@ -3636,7 +3636,36 @@ - 0 + 7 + 2 + [@template <class E, class Tag1, class T1, ..., class TagN, class TN> E const & (:link + 1 + + 0 + + -6 + + + 2 + mod="/":)( E const & x, (:link http://www.boost.org/libs/tuple/doc/tuple_users_guide.html|tuple:)< (:link + 1 + + 0 + + -35 + + + 2 + :)<Tag1,T1>, ..., (:link + 1 + + 0 + + -35 + + + 2 + :)<TagN,TN> > const & v );@] @@ -3647,7 +3676,27 @@ - 0 + 5 + 2 + [@class (:link + 1 + + 0 + + -7 + + + 2 + :): public std::exception public boost:: + 1 + + 0 + + -41 + + + 2 + { ---unspecified--- };@] @@ -3658,27 +3707,7 @@ - 5 - 2 - [@class (:link - 1 - - 0 - - -8 - - - 2 - :): public std::exception public boost:: - 1 - - 0 - - -40 - - - 2 - { ---unspecified--- };@] + 0 @@ -3700,18 +3729,7 @@ - 3 - 2 - [@template <class T> ---unspecified--- (:link - 1 - - 0 - - -10 - - - 2 - :)( T const & e );@] + 0 @@ -3722,27 +3740,7 @@ - 5 - 2 - [@template <class T> (:link - 1 - - 0 - - -42 - - - 2 - :) (:link - 1 - - 0 - - -11 - - - 2 - :)( T const & e );@] + 0 @@ -3764,7 +3762,18 @@ - 0 + 3 + 2 + [@template <class T> ---unspecified--- (:link + 1 + + 0 + + -13 + + + 2 + :)( T const & e );@] @@ -3775,7 +3784,27 @@ - 0 + 5 + 2 + [@template <class T> (:link + 1 + + 0 + + -33 + + + 2 + :) (:link + 1 + + 0 + + -14 + + + 2 + :)( T const & e );@] @@ -3786,7 +3815,27 @@ - 0 + 5 + 2 + [@void (:link + 1 + + 0 + + -15 + + + 2 + :)( (:link + 1 + + 0 + + -33 + + + 2 + :) const & ep ); @@ -3797,18 +3846,7 @@ - 3 - 2 - [@(:link - 1 - - 0 - - -16 - - - 2 - mod="m":)();@] + 0 @@ -3830,9 +3868,9 @@ - 5 + 3 2 - [@void (:link + [@(:link 1 0 @@ -3841,16 +3879,7 @@ 2 - :)( (:link - 1 - - 0 - - -42 - - - 2 - :) const & ep ); + mod="m":)();@] @@ -3872,27 +3901,7 @@ - 5 - 2 - [@(:link - 1 - - 0 - - -42 - - - 2 - :) (:link - 1 - - 0 - - -20 - - - 2 - :)();@] + 0 @@ -3903,90 +3912,7 @@ - 19 - 2 - [@#if !defined( BOOST_NO_EXCEPTIONS ) && !defined( BOOST_EXCEPTION_DISABLE ) #include < - 1 - - 0 - - -5 - - - 2 - > #include <boost/current_function.hpp> #define - 1 - - 0 - - -21 - - - 2 - (x)\ ::boost:: - 1 - - 0 - - -37 - - - 2 - ( ::boost:: - 1 - - 0 - - -24 - - - 2 - (x) <<\ ::boost::(:link - 1 - - 0 - - -5 - - - 2 - |throw_function:)(BOOST_CURRENT_FUNCTION) <<\ ::boost::(:link - 1 - - 0 - - -5 - - - 2 - |throw_file:)(__FILE__) <<\ ::boost::(:link - 1 - - 0 - - -5 - - - 2 - |throw_line:)((int)__LINE__) ) #else #define - 1 - - 0 - - -21 - - - 2 - (x) ::boost:: - 1 - - 0 - - -37 - - - 2 - (x) #endif@] + 0 @@ -3997,7 +3923,27 @@ - 0 + 5 + 2 + [@(:link + 1 + + 0 + + -33 + + + 2 + :) (:link + 1 + + 0 + + -22 + + + 2 + :)();@] @@ -4008,7 +3954,90 @@ - 0 + 19 + 2 + [@#if !defined( BOOST_NO_EXCEPTIONS ) && !defined( BOOST_EXCEPTION_DISABLE ) #include < + 1 + + 0 + + -8 + + + 2 + > #include <boost/current_function.hpp> #define + 1 + + 0 + + -23 + + + 2 + (x)\ ::boost:: + 1 + + 0 + + -38 + + + 2 + ( ::boost:: + 1 + + 0 + + -26 + + + 2 + (x) <<\ ::boost::(:link + 1 + + 0 + + -8 + + + 2 + |throw_function:)(BOOST_CURRENT_FUNCTION) <<\ ::boost::(:link + 1 + + 0 + + -8 + + + 2 + |throw_file:)(__FILE__) <<\ ::boost::(:link + 1 + + 0 + + -8 + + + 2 + |throw_line:)((int)__LINE__) ) #else #define + 1 + + 0 + + -23 + + + 2 + (x) ::boost:: + 1 + + 0 + + -38 + + + 2 + (x) #endif@] @@ -4019,18 +4048,7 @@ - 3 - 2 - [@template <class T> ---unspecified--- (:link - 1 - - 0 - - -24 - - - 2 - :)( T const & x );@] + 0 @@ -4041,7 +4059,27 @@ - 0 + 5 + 2 + [@template <class E, class Tag, class T> E const & (:link + 1 + + 0 + + -25 + + + 2 + mod="/":)( E const & x, (:link + 1 + + 0 + + -35 + + + 2 + :)<Tag,T> const & v );@] @@ -4052,7 +4090,18 @@ - 0 + 3 + 2 + [@template <class T> ---unspecified--- (:link + 1 + + 0 + + -26 + + + 2 + :)( T const & x );@] @@ -4063,36 +4112,7 @@ - 7 - 2 - [@template <class E, class Tag1, class T1, ..., class TagN, class TN> E const & (:link - 1 - - 0 - - -27 - - - 2 - mod="/":)( E const & x, (:link http://www.boost.org/libs/tuple/doc/tuple_users_guide.html|tuple:)< (:link - 1 - - 0 - - -34 - - - 2 - :)<Tag1,T1>, ..., (:link - 1 - - 0 - - -34 - - - 2 - :)<TagN,TN> > const & v );@] + 0 @@ -4103,36 +4123,7 @@ - 7 - 2 - [@(:link - 1 - - 0 - - -28 - - - 2 - mod="m":)(); (:link - 1 - - 0 - - -28 - - - 2 - mod="m":)( (:link - 1 - - 0 - - -40 - - - 2 - :) const & x );@] + 0 @@ -4143,9 +4134,9 @@ - 5 + 7 2 - [@std::string (:link + [@(:link 1 0 @@ -4154,12 +4145,21 @@ 2 - :)( boost::(:link + mod="m":)(); (:link 1 0 - -40 + -29 + + + 2 + mod="m":)( (:link + 1 + + 0 + + -41 2 @@ -4174,7 +4174,27 @@ - 0 + 5 + 2 + [@std::string (:link + 1 + + 0 + + -30 + + + 2 + :)( boost::(:link + 1 + + 0 + + -41 + + + 2 + :) const & x );@] @@ -4196,27 +4216,7 @@ - 5 - 2 - [@template <class E, class Tag, class T> E const & (:link - 1 - - 0 - - -32 - - - 2 - mod="/":)( E const & x, (:link - 1 - - 0 - - -34 - - - 2 - :)<Tag,T> const & v );@] + 0 @@ -4229,7 +4229,7 @@ 3 2 - [@template <class ErrorInfo,class E> (:link http://www.boost.org/libs/smart_ptr/shared_ptr.htm|shared_ptr:)<typename ErrorInfo::value_type const> (:link + [@typedef ---unspecified--- (:link 1 0 @@ -4238,7 +4238,7 @@ 2 - :)( E const & x );@] + :);@] @@ -4251,7 +4251,7 @@ 3 2 - [@template <class Tag,class T> class (:link + [@template <class ErrorInfo,class E> (:link http://www.boost.org/libs/smart_ptr/shared_ptr.htm|shared_ptr:)<typename ErrorInfo::value_type const> (:link 1 0 @@ -4260,7 +4260,7 @@ 2 - :);@] + :)( E const & x );@] @@ -4271,7 +4271,18 @@ - 0 + 3 + 2 + [@template <class Tag,class T> class (:link + 1 + + 0 + + -35 + + + 2 + :);@] @@ -4293,27 +4304,7 @@ - 5 - 2 - [@#ifdef BOOST_NO_EXCEPTIONS void (:link - 1 - - 0 - - -37 - - - 2 - :)( std::exception const & e ); // user defined #else template <class E> void (:link - 1 - - 0 - - -37 - - - 2 - :)( E const & e ); #endif@] + 0 @@ -4324,7 +4315,27 @@ - 0 + 5 + 2 + [@#ifdef BOOST_NO_EXCEPTIONS void (:link + 1 + + 0 + + -38 + + + 2 + :)( std::exception const & e ); // user defined #else template <class E> void (:link + 1 + + 0 + + -38 + + + 2 + :)( E const & e ); #endif@] @@ -4346,18 +4357,7 @@ - 3 - 2 - [@class (:link - 1 - - 0 - - -40 - - - 2 - :);@] + 0 @@ -4368,7 +4368,18 @@ - 0 + 3 + 2 + [@class (:link + 1 + + 0 + + -41 + + + 2 + :);@] @@ -4379,18 +4390,7 @@ - 3 - 2 - [@typedef ---unspecified--- (:link - 1 - - 0 - - -42 - - - 2 - :);@] + 0 @@ -4437,9 +4437,72 @@ - 1 + 15 2 - (:auto !!:) !!!Synopsis (:include synopsis:) + (:auto !!!:) Boost Exception responds to the following configuration macros: '''BOOST_NO_RTTI'''\\ '''BOOST_NO_TYPEID''' The first macro prevents Boost Exception from using dynamic_cast and dynamic typeid. If the second macro is also defined, Boost Exception does not use static typeid either. There are no observable degrading effects on the library functionality, except for the following: ->By default, the (:link + 1 + + 0 + + -34 + + + 2 + :) function template can be called with any exception type. If BOOST_NO_RTTI is defined, (:link + 1 + + 0 + + -34 + + + 2 + :) can be used only with objects of type boost::(:link + 1 + + 0 + + -41 + + + 2 + :). '''BOOST_EXCEPTION_DISABLE''' By default, (:link + 1 + + 0 + + -13 + + + 2 + :) and (:link + 1 + + 0 + + -26 + + + 2 + :) are integrated directly in the (:link + 1 + + 0 + + -38 + + + 2 + :) function. Defining BOOST_EXCEPTION_DISABLE disables this integration. Note that on some non-conformant compilers, for example MSVC 7.0 and older, as well as BCC, BOOST_EXCEPTION_DISABLE is implicitly defined in (:link + 1 + + 0 + + -11 + + + 2 + :). @@ -4450,9 +4513,27 @@ - 1 + 5 2 - (:auto !!:) !!!Synopsis (:include synopsis:) + (:auto !!!:) (:include synopsis:) !!!!Requirements: E must be boost::(:link + 1 + + 0 + + -41 + + + 2 + :), or a type that derives (indirectly) from boost::(:link + 1 + + 0 + + -41 + + + 2 + :). !!!!Effects: Equivalent to x << v.(:link http://www.boost.org/libs/tuple/doc/tuple_users_guide.html#accessing_elements|get:)<0>() << ... << v.(:link http://www.boost.org/libs/tuple/doc/tuple_users_guide.html#accessing_elements|get:)<N>(). !!!!Returns: x. (:include throws:) @@ -4463,9 +4544,9 @@ - 15 + 5 2 - (:auto !!!:) Boost Exception responds to the following configuration macros: '''BOOST_NO_RTTI'''\\ '''BOOST_NO_TYPEID''' The first macro prevents Boost Exception from using dynamic_cast and dynamic typeid. If the second macro is also defined, Boost Exception does not use static typeid either. There are no observable degrading effects on the library functionality, except for the following: ->By default, the (:link + (:auto !!!:) (:include synopsis:) This type is used by the (:link 1 0 @@ -4474,57 +4555,12 @@ 2 - :) function template can be called with any exception type. If BOOST_NO_RTTI is defined, (:link + :) support in Boost Exception. Please see (:link 1 0 - -33 - - - 2 - :) can be used only with objects of type boost::(:link - 1 - - 0 - - -40 - - - 2 - :). '''BOOST_EXCEPTION_DISABLE''' By default, (:link - 1 - - 0 - - -10 - - - 2 - :) and (:link - 1 - - 0 - - -24 - - - 2 - :) are integrated directly in the (:link - 1 - - 0 - - -37 - - - 2 - :) function. Defining BOOST_EXCEPTION_DISABLE disables this integration. Note that on some non-conformant compilers, for example MSVC 7.0 and older, as well as BCC, BOOST_EXCEPTION_DISABLE is implicitly defined in (:link - 1 - - 0 - - -12 + -22 2 @@ -4539,27 +4575,9 @@ - 5 + 1 2 - (:auto !!!:) (:include synopsis:) This type is used by the (:link - 1 - - 0 - - -42 - - - 2 - :) support in Boost Exception. Please see (:link - 1 - - 0 - - -20 - - - 2 - :). + (:auto !!:) !!!Synopsis (:include synopsis:) @@ -4583,99 +4601,9 @@ - 21 + 1 2 - (:auto !!!:) (:include synopsis:) !!!!Requirements: T must be a class with an accessible no-throw copy constructor. !!!!Returns: An object of ''unspecified'' type which derives publicly from T. That is, the returned object can be intercepted by a catch(T &). !!!!Description: This function is designed to be used directly in a throw-expression to enable the (:link - 1 - - 0 - - -42 - - - 2 - :) support in Boost Exception. For example: [@class my_exception: public std::exception { }; .... throw boost::(:link - 1 - - 0 - - -10 - - - 2 - :)(my_exception());@] Unless (:link - 1 - - 0 - - -10 - - - 2 - :) is called at the time an exception object is used in a throw-expression, an attempt to copy it using (:link - 1 - - 0 - - -20 - - - 2 - :) may return an (:link - 1 - - 0 - - -42 - - - 2 - :) which refers to an instance of (:link - 1 - - 0 - - -8 - - - 2 - :). See (:link - 1 - - 0 - - -20 - - - 2 - :) for details. !!!!Note: Instead of using the throw keyword directly, it is preferable to call boost::(:link - 1 - - 0 - - -37 - - - 2 - :). This is guaranteed to throw an exception that derives from boost::(:link - 1 - - 0 - - -40 - - - 2 - :) and supports the (:link - 1 - - 0 - - -42 - - - 2 - :) functionality. + (:auto !!:) !!!Synopsis (:include synopsis:) @@ -4686,27 +4614,9 @@ - 5 + 1 2 - (:auto !!!:) (:include synopsis:) !!!!Effects: As if [@try { throw - 1 - - 0 - - -10 - - - 2 - (e); } catch(...) { return (:link - 1 - - 0 - - -20 - - - 2 - :)(); }@] + (:auto !!:) !!!Synopsis (:include synopsis:) @@ -4730,9 +4640,99 @@ - 1 + 21 2 - (:auto !!:) !!!Synopsis (:include synopsis:) + (:auto !!!:) (:include synopsis:) !!!!Requirements: T must be a class with an accessible no-throw copy constructor. !!!!Returns: An object of ''unspecified'' type which derives publicly from T. That is, the returned object can be intercepted by a catch(T &). !!!!Description: This function is designed to be used directly in a throw-expression to enable the (:link + 1 + + 0 + + -33 + + + 2 + :) support in Boost Exception. For example: [@class my_exception: public std::exception { }; .... throw boost::(:link + 1 + + 0 + + -13 + + + 2 + :)(my_exception());@] Unless (:link + 1 + + 0 + + -13 + + + 2 + :) is called at the time an exception object is used in a throw-expression, an attempt to copy it using (:link + 1 + + 0 + + -22 + + + 2 + :) may return an (:link + 1 + + 0 + + -33 + + + 2 + :) which refers to an instance of (:link + 1 + + 0 + + -7 + + + 2 + :). See (:link + 1 + + 0 + + -22 + + + 2 + :) for details. !!!!Note: Instead of using the throw keyword directly, it is preferable to call boost::(:link + 1 + + 0 + + -38 + + + 2 + :). This is guaranteed to throw an exception that derives from boost::(:link + 1 + + 0 + + -41 + + + 2 + :) and supports the (:link + 1 + + 0 + + -33 + + + 2 + :) functionality. @@ -4743,9 +4743,27 @@ - 1 + 5 2 - (:auto !!:) !!!Synopsis (:include synopsis:) + (:auto !!!:) (:include synopsis:) !!!!Effects: As if [@try { throw + 1 + + 0 + + -13 + + + 2 + (e); } catch(...) { return (:link + 1 + + 0 + + -22 + + + 2 + :)(); }@] @@ -4755,150 +4773,150 @@ -15 - - 21 - 2 - (:auto !!!:) Sometimes the throw site does not have all the information that is needed at the catch site to make sense of what went wrong. Here is an example: [@#include <stdio.h> #include <string> class file_read_error { public: explicit file_read_error( std::string const & fn ): fn_(fn) { }; std::string const & file_name() const { return fn_; } private: std::string fn_; }; void file_read( FILE * f, void * buffer, size_t size ) { if( size!=fread(buffer,1,size,f) ) throw file_read_error("????"); }@] We have defined an exception class file_read_error which can store a file name, so that when we catch a file_read_error object, we know which file the failure is related to. However, the file_read function does not have the file name at the time of the throw; all it has is a FILE handle. One possible solution is to not use FILE handles directly. We could have our own class file which stores both a FILE handle and a file name, and pass that to file_read. However, this could be problematic if we communicate with 3rd party code that does not use our class file (probably because they have their own similar class.) A better solution is to make class file_read_error derive (possibly indirectly) from boost::(:link - 1 - - 0 - - -40 - - - 2 - :), and free the file_read function from the burden of storing the file name in exceptions it throws: [@#include <(:link - 1 - - 0 - - -25 - - - 2 - :)> #include <stdio.h> #include <errno.h> typedef boost::(:link - 1 - - 0 - - -34 - - - 2 - :)<struct tag_errno,int> errno_info; class file_read_error: public boost::(:link - 1 - - 0 - - -40 - - - 2 - :) { }; void file_read( FILE * f, void * buffer, size_t size ) { if( size!=fread(buffer,1,size,f) ) throw file_read_error() << errno_info(errno); }@] If file_read detects a failure, it throws an exception which contains the information that is available at the time, namely the errno. Other relevant information, such as the file name, can be added in a context higher up the call stack, where it is known naturally: [@#include <(:link - 1 - - 0 - - -25 - - - 2 - :)> #include <boost/shared_ptr.hpp> #include <stdio.h> #include <string> typedef boost::(:link - 1 - - 0 - - -34 - - - 2 - :)<struct tag_file_name,std::string> file_name_info; boost::shared_ptr<FILE> file_open( char const * file_name, char const * mode ); void file_read( FILE * f, void * buffer, size_t size ); void parse_file( char const * file_name ) { boost::shared_ptr<FILE> f = file_open(file_name,"rb"); assert(f); try { char buf[1024]; file_read( f.get(), buf, sizeof(buf) ); } catch( boost::(:link - 1 - - 0 - - -40 - - - 2 - :) & e ) { e << file_name_info(file_name); throw; } }@] The above function is (almost) exception-neutral -- if an exception is emitted by any function call within the try block, parse_file does not need to do any real work, but it intercepts any boost::(:link - 1 - - 0 - - -40 - - - 2 - :) object, stores the file name, and re-throws using a throw-expression with no operand (15.1.6). The rationale for catching any boost::(:link - 1 - - 0 - - -40 - - - 2 - :) object is that the file name is relevant to any failure that occurs in parse_file, ''even if the failure is unrelated to file I/O''. As usual, the stored data can be retrieved using (:link - 1 - - 0 - - -33 - - - 2 - :). - - - - - 0 - - -16 - - - - 3 - 2 - (:auto !!!:) (:include decl:) !!!!Effects: Frees all resources associated with a boost::(:link - 1 - - 0 - - -40 - - - 2 - :) object. !!!!Throws: Nothing. - - - - - 0 - - -17 - - - - 1 - 2 - (:auto !!:) !!!Synopsis (:include synopsis:) - - - - - 0 - - -18 - - 1 2 (:auto !!!:) (:include synopsis:) !!!!Precondition: ep shall not be null. !!!!Throws: The exception to which ep refers. + + + 0 + + -16 + + + + 1 + 2 + (:auto !!:) !!!Synopsis (:include synopsis:) + + + + + 0 + + -17 + + + + 21 + 2 + (:auto !!!:) Sometimes the throw site does not have all the information that is needed at the catch site to make sense of what went wrong. Here is an example: [@#include <stdio.h> #include <string> class file_read_error { public: explicit file_read_error( std::string const & fn ): fn_(fn) { }; std::string const & file_name() const { return fn_; } private: std::string fn_; }; void file_read( FILE * f, void * buffer, size_t size ) { if( size!=fread(buffer,1,size,f) ) throw file_read_error("????"); }@] We have defined an exception class file_read_error which can store a file name, so that when we catch a file_read_error object, we know which file the failure is related to. However, the file_read function does not have the file name at the time of the throw; all it has is a FILE handle. One possible solution is to not use FILE handles directly. We could have our own class file which stores both a FILE handle and a file name, and pass that to file_read. However, this could be problematic if we communicate with 3rd party code that does not use our class file (probably because they have their own similar class.) A better solution is to make class file_read_error derive (possibly indirectly) from boost::(:link + 1 + + 0 + + -41 + + + 2 + :), and free the file_read function from the burden of storing the file name in exceptions it throws: [@#include <(:link + 1 + + 0 + + -27 + + + 2 + :)> #include <stdio.h> #include <errno.h> typedef boost::(:link + 1 + + 0 + + -35 + + + 2 + :)<struct tag_errno,int> errno_info; class file_read_error: public boost::(:link + 1 + + 0 + + -41 + + + 2 + :) { }; void file_read( FILE * f, void * buffer, size_t size ) { if( size!=fread(buffer,1,size,f) ) throw file_read_error() << errno_info(errno); }@] If file_read detects a failure, it throws an exception which contains the information that is available at the time, namely the errno. Other relevant information, such as the file name, can be added in a context higher up the call stack, where it is known naturally: [@#include <(:link + 1 + + 0 + + -27 + + + 2 + :)> #include <boost/shared_ptr.hpp> #include <stdio.h> #include <string> typedef boost::(:link + 1 + + 0 + + -35 + + + 2 + :)<struct tag_file_name,std::string> file_name_info; boost::shared_ptr<FILE> file_open( char const * file_name, char const * mode ); void file_read( FILE * f, void * buffer, size_t size ); void parse_file( char const * file_name ) { boost::shared_ptr<FILE> f = file_open(file_name,"rb"); assert(f); try { char buf[1024]; file_read( f.get(), buf, sizeof(buf) ); } catch( boost::(:link + 1 + + 0 + + -41 + + + 2 + :) & e ) { e << file_name_info(file_name); throw; } }@] The above function is (almost) exception-neutral -- if an exception is emitted by any function call within the try block, parse_file does not need to do any real work, but it intercepts any boost::(:link + 1 + + 0 + + -41 + + + 2 + :) object, stores the file name, and re-throws using a throw-expression with no operand (15.1.6). The rationale for catching any boost::(:link + 1 + + 0 + + -41 + + + 2 + :) object is that the file name is relevant to any failure that occurs in parse_file, ''even if the failure is unrelated to file I/O''. As usual, the stored data can be retrieved using (:link + 1 + + 0 + + -34 + + + 2 + :). + + + + + 0 + + -18 + + + + 3 + 2 + (:auto !!!:) (:include decl:) !!!!Effects: Frees all resources associated with a boost::(:link + 1 + + 0 + + -41 + + + 2 + :) object. !!!!Throws: Nothing. + + 0 @@ -4909,7 +4927,7 @@ 1 2 - (:auto !!!:) !!!Synopsis (:include synopsis:) + (:auto !!:) !!!Synopsis (:include synopsis:) @@ -4920,135 +4938,9 @@ - 29 + 1 2 - (:auto !!!:) (:include synopsis:) !!!!Requirements: The (:link - 1 - - 0 - - -20 - - - 2 - :) function must not be called outside of a catch block. !!!!Returns: * An (:link - 1 - - 0 - - -42 - - - 2 - :) that refers to the currently handled exception or a copy of the currently handled exception. * If the function needs to allocate memory and the attempt fails, it returns an (:link - 1 - - 0 - - -42 - - - 2 - :) that refers to an instance of std::bad_alloc. !!!!Throws: Nothing. !!!!Notes: * It is unspecified whether the return values of two successive calls to (:link - 1 - - 0 - - -20 - - - 2 - :) refer to the same exception object. * Correct implementation of (:link - 1 - - 0 - - -20 - - - 2 - :) may require compiler support, unless (:link - 1 - - 0 - - -10 - - - 2 - :) was used at the time the currently handled exception object was passed to throw. If (:link - 1 - - 0 - - -10 - - - 2 - :) was not used, and if the compiler does not provide the necessary support, then (:link - 1 - - 0 - - -20 - - - 2 - :) may return an (:link - 1 - - 0 - - -42 - - - 2 - :) that refers to an instance of (:link - 1 - - 0 - - -8 - - - 2 - :). In this case, if the original exception object derives from boost::(:link - 1 - - 0 - - -40 - - - 2 - :), then the boost::(:link - 1 - - 0 - - -40 - - - 2 - :) sub-object of the (:link - 1 - - 0 - - -8 - - - 2 - :) object is initialized by the boost::(:link - 1 - - 0 - - -40 - - - 2 - :) copy constructor. + (:auto !!!:) !!!Synopsis (:include synopsis:) @@ -5058,52 +4950,151 @@ -21 - - 7 - 2 - (:auto !!!:) (:include synopsis:) This macro takes an exception object, records BOOST_CURRENT_FUNCTION, __FILE__ and __LINE__ in it, and forwards it to - 1 - - 0 - - -37 - - - 2 - . To recover this information at the catch site, use - 1 - - 0 - - -33 - - - 2 - ; the information is also included in the message returned by - 1 - - 0 - - -29 - - - 2 - . - - - - - 0 - - -22 - - 1 2 (:auto !!!:) !!!Synopsis (:include synopsis:) + + + 0 + + -22 + + + + 29 + 2 + (:auto !!!:) (:include synopsis:) !!!!Requirements: The (:link + 1 + + 0 + + -22 + + + 2 + :) function must not be called outside of a catch block. !!!!Returns: * An (:link + 1 + + 0 + + -33 + + + 2 + :) that refers to the currently handled exception or a copy of the currently handled exception. * If the function needs to allocate memory and the attempt fails, it returns an (:link + 1 + + 0 + + -33 + + + 2 + :) that refers to an instance of std::bad_alloc. !!!!Throws: Nothing. !!!!Notes: * It is unspecified whether the return values of two successive calls to (:link + 1 + + 0 + + -22 + + + 2 + :) refer to the same exception object. * Correct implementation of (:link + 1 + + 0 + + -22 + + + 2 + :) may require compiler support, unless (:link + 1 + + 0 + + -13 + + + 2 + :) was used at the time the currently handled exception object was passed to throw. If (:link + 1 + + 0 + + -13 + + + 2 + :) was not used, and if the compiler does not provide the necessary support, then (:link + 1 + + 0 + + -22 + + + 2 + :) may return an (:link + 1 + + 0 + + -33 + + + 2 + :) that refers to an instance of (:link + 1 + + 0 + + -7 + + + 2 + :). In this case, if the original exception object derives from boost::(:link + 1 + + 0 + + -41 + + + 2 + :), then the boost::(:link + 1 + + 0 + + -41 + + + 2 + :) sub-object of the (:link + 1 + + 0 + + -7 + + + 2 + :) object is initialized by the boost::(:link + 1 + + 0 + + -41 + + + 2 + :) copy constructor. + + 0 @@ -5112,9 +5103,36 @@ - 1 + 7 2 - (:auto !!:) !!!Synopsis (:include synopsis:) + (:auto !!!:) (:include synopsis:) This macro takes an exception object, records BOOST_CURRENT_FUNCTION, __FILE__ and __LINE__ in it, and forwards it to + 1 + + 0 + + -38 + + + 2 + . To recover this information at the catch site, use + 1 + + 0 + + -34 + + + 2 + ; the information is also included in the message returned by + 1 + + 0 + + -30 + + + 2 + . @@ -5124,6 +5142,59 @@ -24 + + 1 + 2 + (:auto !!:) !!!Synopsis (:include synopsis:) + + + + + 0 + + -25 + + + + 7 + 2 + (:auto !!!:) (:include synopsis:) !!!!Requirements: E must be boost::(:link + 1 + + 0 + + -41 + + + 2 + :), or a type that derives (indirectly) from boost::(:link + 1 + + 0 + + -41 + + + 2 + :). !!!!Effects: Stores a copy of v into x. If x already contains data of type (:link + 1 + + 0 + + -35 + + + 2 + :)<Tag,T>, that data is overwritten. !!!!Returns: x. (:include throws:) + + + + + 0 + + -26 + + 5 2 @@ -5132,7 +5203,7 @@ 0 - -40 + -41 2 @@ -5141,7 +5212,7 @@ 0 - -40 + -41 2 @@ -5152,7 +5223,7 @@ 0 - -25 + -27 @@ -5165,7 +5236,7 @@ 0 - -26 + -28 @@ -5176,7 +5247,7 @@ 0 - -20 + -22 2 @@ -5185,7 +5256,7 @@ 0 - -42 + -33 2 @@ -5194,7 +5265,7 @@ 0 - -6 + -9 2 @@ -5203,7 +5274,7 @@ 0 - -40 + -41 2 @@ -5212,7 +5283,7 @@ 0 - -42 + -33 2 @@ -5221,7 +5292,7 @@ 0 - -42 + -33 2 @@ -5230,7 +5301,7 @@ 0 - -20 + -22 2 @@ -5239,7 +5310,7 @@ 0 - -20 + -22 2 @@ -5248,7 +5319,7 @@ 0 - -18 + -15 2 @@ -5257,7 +5328,7 @@ 0 - -42 + -33 2 @@ -5266,7 +5337,7 @@ 0 - -18 + -15 2 @@ -5275,7 +5346,7 @@ 0 - -20 + -22 2 @@ -5284,7 +5355,7 @@ 0 - -42 + -33 2 @@ -5293,7 +5364,7 @@ 0 - -10 + -13 2 @@ -5302,7 +5373,7 @@ 0 - -42 + -33 2 @@ -5311,7 +5382,7 @@ 0 - -8 + -7 2 @@ -5320,7 +5391,7 @@ 0 - -20 + -22 2 @@ -5329,84 +5400,13 @@ 0 - -18 + -15 2 :) in the above examples is well-formed. - - - 0 - - -27 - - - - 5 - 2 - (:auto !!!:) (:include synopsis:) !!!!Requirements: E must be boost::(:link - 1 - - 0 - - -40 - - - 2 - :), or a type that derives (indirectly) from boost::(:link - 1 - - 0 - - -40 - - - 2 - :). !!!!Effects: Equivalent to x << v.(:link http://www.boost.org/libs/tuple/doc/tuple_users_guide.html#accessing_elements|get:)<0>() << ... << v.(:link http://www.boost.org/libs/tuple/doc/tuple_users_guide.html#accessing_elements|get:)<N>(). !!!!Returns: x. (:include throws:) - - - - - 0 - - -28 - - - - 7 - 2 - (:auto !!!:) (:include decl:) !!!!Effects: * Default constructor: initializes an empty boost::(:link - 1 - - 0 - - -40 - - - 2 - :) object. * Copy constructor: initializes a boost::(:link - 1 - - 0 - - -40 - - - 2 - :) object which shares ownership with x of all data added through (:link - 1 - - 0 - - -32 - - - 2 - mod="/":), including data that is added at a future time. !!!!Throws: Nothing. - - 0 @@ -5417,34 +5417,34 @@ 7 2 - (:auto !!!:) (:include synopsis:) !!!!Returns: This function iterates over all data objects stored in the boost::(:link + (:auto !!!:) (:include decl:) !!!!Effects: * Default constructor: initializes an empty boost::(:link 1 0 - -40 + -41 2 - :) through (:link + :) object. * Copy constructor: initializes a boost::(:link 1 0 - -32 + -41 2 - mod="/":). The returned string is constructed by converting each data object to string and then concatenating these strings together. When the (:link + :) object which shares ownership with x of all data added through (:link 1 0 - -34 + -25 2 - :)<Tag,T> template is instantiated, the system attempts overload resolution for an unqualified call to to_string(x), where x is of type T. If this is successful, the to_string overload is expected to return std::string and is used to convert objects of type T to string. Otherwise, the system attempts overload resolution for s << x, where s is a std::ostringstream and x is of type T. If this is successful, the operator<< overload is used to convert objects of type T to string. Otherwise the system is unable to convert objects of type T to string, and an unspecified stub string value is used without issuing a compile error. !!!!Notes: *The format of the returned string is unspecified. *The returned string is ''not'' user-friendly. *If dynamic_cast<std::exception const *>(&x) is not null, the returned string includes the output from std::exception::what. *The returned string may include additional platform-specific diagnostic information. + mod="/":), including data that is added at a future time. !!!!Throws: Nothing. @@ -5455,36 +5455,9 @@ - 11 + 7 2 - (:auto !!:) Boost Exception supports transporting of exception objects between threads through cloning. This system is similar to (:link http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2179.html|N2179:), but because Boost Exception can not rely on language support, the use of (:link - 1 - - 0 - - -10 - - - 2 - :) at the time of the throw is required in order to use cloning. !!!!Note: All exceptions emitted by the familiar function boost::(:link - 1 - - 0 - - -37 - - - 2 - :) are guaranteed to derive from boost::(:link - 1 - - 0 - - -40 - - - 2 - :) and to support cloning. (:include + (:auto !!!:) (:include synopsis:) !!!!Returns: This function iterates over all data objects stored in the boost::(:link 1 0 @@ -5493,16 +5466,25 @@ 2 - :) (:include + :) through (:link 1 0 - -26 + -25 2 - :) + mod="/":). The returned string is constructed by converting each data object to string and then concatenating these strings together. When the (:link + 1 + + 0 + + -35 + + + 2 + :)<Tag,T> template is instantiated, the system attempts overload resolution for an unqualified call to to_string(x), where x is of type T. If this is successful, the to_string overload is expected to return std::string and is used to convert objects of type T to string. Otherwise, the system attempts overload resolution for s << x, where s is a std::ostringstream and x is of type T. If this is successful, the operator<< overload is used to convert objects of type T to string. Otherwise the system is unable to convert objects of type T to string, and an unspecified stub string value is used without issuing a compile error. !!!!Notes: *The format of the returned string is unspecified. *The returned string is ''not'' user-friendly. *If dynamic_cast<std::exception const *>(&x) is not null, the returned string includes the output from std::exception::what. *The returned string may include additional platform-specific diagnostic information. @@ -5513,210 +5495,9 @@ - 13 + 11 2 - (:auto !!!:) The code snippet below demonstrates how boost::(:link http://www.boost.org/libs/tuple/doc/tuple_users_guide.html|tuple:) can be used to bundle the name of the function that failed, together with the reported errno so that they can be added to exception objects more conveniently together: [@#include <(:link - 1 - - 0 - - -9 - - - 2 - :)> #include <boost/shared_ptr.hpp> #include <stdio.h> #include <string> #include <errno.h> typedef boost::(:link - 1 - - 0 - - -34 - - - 2 - :)<struct tag_file_name,std::string> file_name_info; typedef boost::(:link - 1 - - 0 - - -34 - - - 2 - :)<struct tag_function,char const *> function_info; typedef boost::(:link - 1 - - 0 - - -34 - - - 2 - :)<struct tag_errno,int> errno_info; typedef boost::tuple<function_info,errno_info> clib_failure; class file_open_error: public boost::(:link - 1 - - 0 - - -40 - - - 2 - :) { }; boost::shared_ptr<FILE> file_open( char const * name, char const * mode ) { if( FILE * f=fopen(name,mode) ) return boost::shared_ptr<FILE>(f,fclose); else throw file_open_error() << file_name_info(name) << clib_failure("fopen",errno); }@] Note that the members of a boost::(:link http://www.boost.org/libs/tuple/doc/tuple_users_guide.html|tuple:) are stored separately in exception objects; they can only be retrieved individually, using (:link - 1 - - 0 - - -33 - - - 2 - :). - - - - - 0 - - -32 - - - - 7 - 2 - (:auto !!!:) (:include synopsis:) !!!!Requirements: E must be boost::(:link - 1 - - 0 - - -40 - - - 2 - :), or a type that derives (indirectly) from boost::(:link - 1 - - 0 - - -40 - - - 2 - :). !!!!Effects: Stores a copy of v into x. If x already contains data of type (:link - 1 - - 0 - - -34 - - - 2 - :)<Tag,T>, that data is overwritten. !!!!Returns: x. (:include throws:) - - - - - 0 - - -33 - - - - 13 - 2 - (:auto !!!:) (:include synopsis:) !!!!Requirements: * ErrorInfo must be an instance of the (:link - 1 - - 0 - - -34 - - - 2 - :) template. * E must be polymorphic. * The (:link - 1 - - 0 - - -33 - - - 2 - :) function must not be called outside of a catch block. !!!!Returns: * If dynamic_cast<boost::(:link - 1 - - 0 - - -40 - - - 2 - :) const *>(&x) is 0, or if x does not store an object of type ErrorInfo, the returned value is an empty shared_ptr. * Otherwise, the returned shared_ptr points to the stored value (use (:link - 1 - - 0 - - -32 - - - 2 - mod="/":) to store values in exception objects.) The shared_ptr is valid even after x has been destroyed. !!!!Throws: Nothing. !!!!Note: The interface of (:link - 1 - - 0 - - -33 - - - 2 - :) may be affected by the build (:link - 1 - - 0 - - -7 - - - 2 - :). - - - - - 0 - - -34 - - - - 25 - 2 - (:auto !!!:) (:include synopsis:) !!!!Requirements: T must have accessible copy constructor and must not be a reference (there is no requirement that T's copy constructor does not throw.) !!!!Description: This class template is used to associate a Tag type with a value type T. Objects of type (:link - 1 - - 0 - - -34 - - - 2 - :)<Tag,T> can be passed to (:link - 1 - - 0 - - -32 - - - 2 - mod="/":) to be stored in objects of type boost::(:link - 1 - - 0 - - -40 - - - 2 - :). !!!!Note: The header <(:link + (:auto !!:) Boost Exception supports transporting of exception objects between threads through cloning. This system is similar to (:link http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2179.html|N2179:), but because Boost Exception can not rely on language support, the use of (:link 1 0 @@ -5725,285 +5506,7 @@ 2 - :)> provides a declaration of the (:link - 1 - - 0 - - -34 - - - 2 - :) template, which is sufficient for the purpose of typedefing an instance for specific Tag and T, like this: [@#include <(:link - 1 - - 0 - - -13 - - - 2 - :)> typedef boost::(:link - 1 - - 0 - - -34 - - - 2 - :)<struct tag_errno,int> errno_info;@] Of course, to actually add an (:link - 1 - - 0 - - -34 - - - 2 - :) object to (:link - 1 - - 0 - - -40 - - - 2 - mod="p":) using (:link - 1 - - 0 - - -32 - - - 2 - mod="/":), or to retrieve it using (:link - 1 - - 0 - - -33 - - - 2 - :), you must first #include <(:link - 1 - - 0 - - -17 - - - 2 - :)>. - - - - - 0 - - -35 - - - - 17 - 2 - (:auto !!!:) The following example demonstrates how errno can be stored in exception objects using Boost Exception: [@#include <(:link - 1 - - 0 - - -25 - - - 2 - :)> #include <errno.h> #include <iostream> typedef boost::(:link - 1 - - 0 - - -34 - - - 2 - :)<struct tag_errno,int> errno_info; //(1) class my_error: public boost::(:link - 1 - - 0 - - -40 - - - 2 - :), public std::exception { }; //(2) void f() { throw my_error() << errno_info(errno); //(3) } @] First, we instantiate the (:link - 1 - - 0 - - -34 - - - 2 - :) template using a unique identifier -- tag_errno, and the type of the info it identifies -- int. This provides compile-time type safety for the various values stored in exception objects. Second, we define class my_error, which derives from boost::(:link - 1 - - 0 - - -40 - - - 2 - :). Finally, (3) illustrates how the typedef from (1) can be used with (:link - 1 - - 0 - - -32 - - - 2 - |operator<<:) to store values in exception objects at the point of the throw. The stored errno value can be recovered at a later time like this: [@// ...continued void g() { try { f(); } catch( my_error & x ) { if( boost::shared_ptr<int const> err=boost::(:link - 1 - - 0 - - -33 - - - 2 - :)<errno_info>(x) ) std::cerr << "Error code: " << *err; } }@] The (:link - 1 - - 0 - - -33 - - - 2 - :) function template is instantiated with the typedef from (1), and is passed an exception object of a polymorphic type. If the exception object contains the requested value, the returned (:link http://www.boost.org/libs/smart_ptr/shared_ptr.htm|shared_ptr:) will point to it; otherwise an empty (:link http://www.boost.org/libs/smart_ptr/shared_ptr.htm|shared_ptr:) is returned. - - - - - 0 - - -36 - - - - 27 - 2 - (:auto !!:) Some exception hierarchies can not be modified to make boost::(:link - 1 - - 0 - - -40 - - - 2 - :) a base type. In this case, the (:link - 1 - - 0 - - -24 - - - 2 - :) function template can be used to make exception objects derive from boost::(:link - 1 - - 0 - - -40 - - - 2 - :) anyway. Here is an example: [@#include <(:link - 1 - - 0 - - -25 - - - 2 - :)> #include <stdexcept> typedef boost::(:link - 1 - - 0 - - -34 - - - 2 - :)<struct tag_std_range_min,size_t> std_range_min; typedef boost::(:link - 1 - - 0 - - -34 - - - 2 - :)<struct tag_std_range_max,size_t> std_range_max; typedef boost::(:link - 1 - - 0 - - -34 - - - 2 - :)<struct tag_std_range_index,size_t> std_range_index; template <class T> class my_container { public: size_t size() const; T const & operator[]( size_t i ) const { if( i > size() ) throw boost::(:link - 1 - - 0 - - -24 - - - 2 - :)(std::range_error("Index out of range")) << std_range_min(0) << std_range_max(size()) << std_range_index(i); //.... } }; @] The call to (:link - 1 - - 0 - - -24 - - - 2 - :)<T> gets us an object of ''unspecified type'' which is guaranteed to derive from both boost::(:link - 1 - - 0 - - -40 - - - 2 - :) and T. This makes it possible to use (:link - 1 - - 0 - - -32 - - - 2 - mod="/":) to store additional information in the exception object. The exception can be intercepted as T &, so existing exception handling will not break. It can also be intercepted as boost::(:link - 1 - - 0 - - -40 - - - 2 - :) &, so that (:link + :) at the time of the throw is required in order to use cloning. !!!!Note: All exceptions emitted by the familiar function boost::(:link 1 0 @@ -6012,110 +5515,21 @@ 2 - |more information can be added to the exception at a later time:). - - - - - 0 - - -37 - - - - 13 - 2 - (:auto !!!:) (:include synopsis:) !!!!Requirements: E must derive publicly from std::exception. !!!!Effects: * If BOOST_NO_EXCEPTIONS is not defined, boost::(:link + :) are guaranteed to derive from boost::(:link 1 0 - -37 + -41 2 - :)(e) is equivalent to throw boost::(:link + :) and to support cloning. (:include 1 0 - -10 - - - 2 - :)(boost::(:link - 1 - - 0 - - -24 - - - 2 - :)(e)), unless BOOST_EXCEPTION_DISABLE is defined, in which case boost::(:link - 1 - - 0 - - -37 - - - 2 - :)(e) is equivalent to throw e; * If BOOST_NO_EXCEPTIONS is defined, the function is left undefined, and the user is expected to supply an appropriate definition. Callers of (:link - 1 - - 0 - - -37 - - - 2 - :) are allowed to assume that the function never returns; therefore, if the user-defined (:link - 1 - - 0 - - -37 - - - 2 - :) returns, the behavior is undefined. - - - - - 0 - - -38 - - - - 11 - 2 - (:auto !!:) All exception types that derive from boost::(:link - 1 - - 0 - - -40 - - - 2 - :) can be used as type-safe containers of arbitrary data objects, while complying with the no-throw requirements (15.5.1) of the ANSI C++ standard for exception types. Data can be added to a boost::(:link - 1 - - 0 - - -40 - - - 2 - :) at the time of the throw, or at a later time. (:include - 1 - - 0 - - -35 + -42 2 @@ -6124,16 +5538,7 @@ 0 - -15 - - - 2 - :) (:include - 1 - - 0 - - -31 + -28 2 @@ -6144,116 +5549,58 @@ 0 - -39 - - - - 17 - 2 - (:auto !!:) Boost Exception provides a namespace-scope function (:link - 1 - - 0 - - -29 - - - 2 - :) which takes a boost::(:link - 1 - - 0 - - -40 - - - 2 - :). The returned string contains: *the string representation of all data objects added to the boost::(:link - 1 - - 0 - - -40 - - - 2 - :) through (:link - 1 - - 0 - - -32 - - - 2 - mod="/":); *the output from std::exception::what; *additional platform-specific diagnostic information. The returned string is not presentable as a friendly user message, but because it is generated automatically, it is useful for debugging or logging purposes. Here is an example: [@#include <(:link - 1 - - 0 - - -25 - - - 2 - :)> #include <iostream> void f(); //throws unknown types that derive from boost::(:link - 1 - - 0 - - -40 - - - 2 - :). void g() { try { f(); } catch( boost::(:link - 1 - - 0 - - -40 - - - 2 - :) & e ) { std::cerr << (:link - 1 - - 0 - - -29 - - - 2 - :)(e); } }@] - - - - - 0 - - -40 + -32 13 2 - (:auto !!!:) (:include synopsis:) Class boost::(:link + (:auto !!!:) The code snippet below demonstrates how boost::(:link http://www.boost.org/libs/tuple/doc/tuple_users_guide.html|tuple:) can be used to bundle the name of the function that failed, together with the reported errno so that they can be added to exception objects more conveniently together: [@#include <(:link 1 0 - -40 + -10 2 - :) is designed to be used as a universal base for user-defined exception types. An object of any type deriving from boost::(:link + :)> #include <boost/shared_ptr.hpp> #include <stdio.h> #include <string> #include <errno.h> typedef boost::(:link 1 0 - -40 + -35 2 - :) can store data of arbitrary types, using the (:link + :)<struct tag_file_name,std::string> file_name_info; typedef boost::(:link + 1 + + 0 + + -35 + + + 2 + :)<struct tag_function,char const *> function_info; typedef boost::(:link + 1 + + 0 + + -35 + + + 2 + :)<struct tag_errno,int> errno_info; typedef boost::tuple<function_info,errno_info> clib_failure; class file_open_error: public boost::(:link + 1 + + 0 + + -41 + + + 2 + :) { }; boost::shared_ptr<FILE> file_open( char const * name, char const * mode ) { if( FILE * f=fopen(name,mode) ) return boost::shared_ptr<FILE>(f,fclose); else throw file_open_error() << file_name_info(name) << clib_failure("fopen",errno); }@] Note that the members of a boost::(:link http://www.boost.org/libs/tuple/doc/tuple_users_guide.html|tuple:) are stored separately in exception objects; they can only be retrieved individually, using (:link 1 0 @@ -6262,91 +5609,6 @@ 2 - :) wrapper and (:link - 1 - - 0 - - -32 - - - 2 - mod="/":). To retrieve data from a boost::(:link - 1 - - 0 - - -40 - - - 2 - :) object, use the (:link - 1 - - 0 - - -33 - - - 2 - :) function template. - - - - - 0 - - -41 - - - - 11 - 2 - (:auto !!!:) Here is how cloning can be enabled in a throw-expression (15.1): [@#include <(:link - 1 - - 0 - - -17 - - - 2 - :)> #include <stdio.h> #include <errno.h> typedef boost::error_info<struct tag_errno,int> errno_info; class file_read_error: public boost::(:link - 1 - - 0 - - -40 - - - 2 - :) { }; void file_read( FILE * f, void * buffer, size_t size ) { if( size!=fread(buffer,1,size,f) ) throw boost::(:link - 1 - - 0 - - -10 - - - 2 - :)(file_read_error()) << errno_info(errno); }@] Of course, (:link - 1 - - 0 - - -10 - - - 2 - :) may be used with any exception type; there is no requirement that it should derive from boost::(:link - 1 - - 0 - - -40 - - - 2 :). @@ -6354,7 +5616,7 @@ 0 - -42 + -33 @@ -6365,7 +5627,7 @@ 0 - -42 + -33 2 @@ -6374,7 +5636,7 @@ 0 - -42 + -33 2 @@ -6383,7 +5645,7 @@ 0 - -42 + -33 2 @@ -6392,7 +5654,7 @@ 0 - -42 + -33 2 @@ -6401,7 +5663,7 @@ 0 - -42 + -33 2 @@ -6410,7 +5672,7 @@ 0 - -42 + -33 2 @@ -6419,7 +5681,7 @@ 0 - -20 + -22 2 @@ -6428,13 +5690,751 @@ 0 - -18 + -15 2 :) concurrently to throw the same exception object into multiple threads. + + + 0 + + -34 + + + + 13 + 2 + (:auto !!!:) (:include synopsis:) !!!!Requirements: * ErrorInfo must be an instance of the (:link + 1 + + 0 + + -35 + + + 2 + :) template. * E must be polymorphic. * The (:link + 1 + + 0 + + -34 + + + 2 + :) function must not be called outside of a catch block. !!!!Returns: * If dynamic_cast<boost::(:link + 1 + + 0 + + -41 + + + 2 + :) const *>(&x) is 0, or if x does not store an object of type ErrorInfo, the returned value is an empty shared_ptr. * Otherwise, the returned shared_ptr points to the stored value (use (:link + 1 + + 0 + + -25 + + + 2 + mod="/":) to store values in exception objects.) The shared_ptr is valid even after x has been destroyed. !!!!Throws: Nothing. !!!!Note: The interface of (:link + 1 + + 0 + + -34 + + + 2 + :) may be affected by the build (:link + 1 + + 0 + + -5 + + + 2 + :). + + + + + 0 + + -35 + + + + 25 + 2 + (:auto !!!:) (:include synopsis:) !!!!Requirements: T must have accessible copy constructor and must not be a reference (there is no requirement that T's copy constructor does not throw.) !!!!Description: This class template is used to associate a Tag type with a value type T. Objects of type (:link + 1 + + 0 + + -35 + + + 2 + :)<Tag,T> can be passed to (:link + 1 + + 0 + + -25 + + + 2 + mod="/":) to be stored in objects of type boost::(:link + 1 + + 0 + + -41 + + + 2 + :). !!!!Note: The header <(:link + 1 + + 0 + + -12 + + + 2 + :)> provides a declaration of the (:link + 1 + + 0 + + -35 + + + 2 + :) template, which is sufficient for the purpose of typedefing an instance for specific Tag and T, like this: [@#include <(:link + 1 + + 0 + + -12 + + + 2 + :)> typedef boost::(:link + 1 + + 0 + + -35 + + + 2 + :)<struct tag_errno,int> errno_info;@] Of course, to actually add an (:link + 1 + + 0 + + -35 + + + 2 + :) object to (:link + 1 + + 0 + + -41 + + + 2 + mod="p":) using (:link + 1 + + 0 + + -25 + + + 2 + mod="/":), or to retrieve it using (:link + 1 + + 0 + + -34 + + + 2 + :), you must first #include <(:link + 1 + + 0 + + -19 + + + 2 + :)>. + + + + + 0 + + -36 + + + + 17 + 2 + (:auto !!!:) The following example demonstrates how errno can be stored in exception objects using Boost Exception: [@#include <(:link + 1 + + 0 + + -27 + + + 2 + :)> #include <errno.h> #include <iostream> typedef boost::(:link + 1 + + 0 + + -35 + + + 2 + :)<struct tag_errno,int> errno_info; //(1) class my_error: public boost::(:link + 1 + + 0 + + -41 + + + 2 + :), public std::exception { }; //(2) void f() { throw my_error() << errno_info(errno); //(3) } @] First, we instantiate the (:link + 1 + + 0 + + -35 + + + 2 + :) template using a unique identifier -- tag_errno, and the type of the info it identifies -- int. This provides compile-time type safety for the various values stored in exception objects. Second, we define class my_error, which derives from boost::(:link + 1 + + 0 + + -41 + + + 2 + :). Finally, (3) illustrates how the typedef from (1) can be used with (:link + 1 + + 0 + + -25 + + + 2 + |operator<<:) to store values in exception objects at the point of the throw. The stored errno value can be recovered at a later time like this: [@// ...continued void g() { try { f(); } catch( my_error & x ) { if( boost::shared_ptr<int const> err=boost::(:link + 1 + + 0 + + -34 + + + 2 + :)<errno_info>(x) ) std::cerr << "Error code: " << *err; } }@] The (:link + 1 + + 0 + + -34 + + + 2 + :) function template is instantiated with the typedef from (1), and is passed an exception object of a polymorphic type. If the exception object contains the requested value, the returned (:link http://www.boost.org/libs/smart_ptr/shared_ptr.htm|shared_ptr:) will point to it; otherwise an empty (:link http://www.boost.org/libs/smart_ptr/shared_ptr.htm|shared_ptr:) is returned. + + + + + 0 + + -37 + + + + 27 + 2 + (:auto !!:) Some exception hierarchies can not be modified to make boost::(:link + 1 + + 0 + + -41 + + + 2 + :) a base type. In this case, the (:link + 1 + + 0 + + -26 + + + 2 + :) function template can be used to make exception objects derive from boost::(:link + 1 + + 0 + + -41 + + + 2 + :) anyway. Here is an example: [@#include <(:link + 1 + + 0 + + -27 + + + 2 + :)> #include <stdexcept> typedef boost::(:link + 1 + + 0 + + -35 + + + 2 + :)<struct tag_std_range_min,size_t> std_range_min; typedef boost::(:link + 1 + + 0 + + -35 + + + 2 + :)<struct tag_std_range_max,size_t> std_range_max; typedef boost::(:link + 1 + + 0 + + -35 + + + 2 + :)<struct tag_std_range_index,size_t> std_range_index; template <class T> class my_container { public: size_t size() const; T const & operator[]( size_t i ) const { if( i > size() ) throw boost::(:link + 1 + + 0 + + -26 + + + 2 + :)(std::range_error("Index out of range")) << std_range_min(0) << std_range_max(size()) << std_range_index(i); //.... } }; @] The call to (:link + 1 + + 0 + + -26 + + + 2 + :)<T> gets us an object of ''unspecified type'' which is guaranteed to derive from both boost::(:link + 1 + + 0 + + -41 + + + 2 + :) and T. This makes it possible to use (:link + 1 + + 0 + + -25 + + + 2 + mod="/":) to store additional information in the exception object. The exception can be intercepted as T &, so existing exception handling will not break. It can also be intercepted as boost::(:link + 1 + + 0 + + -41 + + + 2 + :) &, so that (:link + 1 + + 0 + + -39 + + + 2 + |more information can be added to the exception at a later time:). + + + + + 0 + + -38 + + + + 13 + 2 + (:auto !!!:) (:include synopsis:) !!!!Requirements: E must derive publicly from std::exception. !!!!Effects: * If BOOST_NO_EXCEPTIONS is not defined, boost::(:link + 1 + + 0 + + -38 + + + 2 + :)(e) is equivalent to throw boost::(:link + 1 + + 0 + + -13 + + + 2 + :)(boost::(:link + 1 + + 0 + + -26 + + + 2 + :)(e)), unless BOOST_EXCEPTION_DISABLE is defined, in which case boost::(:link + 1 + + 0 + + -38 + + + 2 + :)(e) is equivalent to throw e; * If BOOST_NO_EXCEPTIONS is defined, the function is left undefined, and the user is expected to supply an appropriate definition. Callers of (:link + 1 + + 0 + + -38 + + + 2 + :) are allowed to assume that the function never returns; therefore, if the user-defined (:link + 1 + + 0 + + -38 + + + 2 + :) returns, the behavior is undefined. + + + + + 0 + + -39 + + + + 11 + 2 + (:auto !!:) All exception types that derive from boost::(:link + 1 + + 0 + + -41 + + + 2 + :) can be used as type-safe containers of arbitrary data objects, while complying with the no-throw requirements (15.5.1) of the ANSI C++ standard for exception types. Data can be added to a boost::(:link + 1 + + 0 + + -41 + + + 2 + :) at the time of the throw, or at a later time. (:include + 1 + + 0 + + -36 + + + 2 + :) (:include + 1 + + 0 + + -17 + + + 2 + :) (:include + 1 + + 0 + + -32 + + + 2 + :) + + + + + 0 + + -40 + + + + 17 + 2 + (:auto !!:) Boost Exception provides a namespace-scope function (:link + 1 + + 0 + + -30 + + + 2 + :) which takes a boost::(:link + 1 + + 0 + + -41 + + + 2 + :). The returned string contains: *the string representation of all data objects added to the boost::(:link + 1 + + 0 + + -41 + + + 2 + :) through (:link + 1 + + 0 + + -25 + + + 2 + mod="/":); *the output from std::exception::what; *additional platform-specific diagnostic information. The returned string is not presentable as a friendly user message, but because it is generated automatically, it is useful for debugging or logging purposes. Here is an example: [@#include <(:link + 1 + + 0 + + -27 + + + 2 + :)> #include <iostream> void f(); //throws unknown types that derive from boost::(:link + 1 + + 0 + + -41 + + + 2 + :). void g() { try { f(); } catch( boost::(:link + 1 + + 0 + + -41 + + + 2 + :) & e ) { std::cerr << (:link + 1 + + 0 + + -30 + + + 2 + :)(e); } }@] + + + + + 0 + + -41 + + + + 13 + 2 + (:auto !!!:) (:include synopsis:) Class boost::(:link + 1 + + 0 + + -41 + + + 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 + + -41 + + + 2 + :) can store data of arbitrary types, using the (:link + 1 + + 0 + + -35 + + + 2 + :) wrapper and (:link + 1 + + 0 + + -25 + + + 2 + mod="/":). To retrieve data from a boost::(:link + 1 + + 0 + + -41 + + + 2 + :) object, use the (:link + 1 + + 0 + + -34 + + + 2 + :) function template. + + + + + 0 + + -42 + + + + 11 + 2 + (:auto !!!:) Here is how cloning can be enabled in a throw-expression (15.1): [@#include <(:link + 1 + + 0 + + -19 + + + 2 + :)> #include <stdio.h> #include <errno.h> typedef boost::error_info<struct tag_errno,int> errno_info; class file_read_error: public boost::(:link + 1 + + 0 + + -41 + + + 2 + :) { }; void file_read( FILE * f, void * buffer, size_t size ) { if( size!=fread(buffer,1,size,f) ) throw boost::(:link + 1 + + 0 + + -13 + + + 2 + :)(file_read_error()) << errno_info(errno); }@] Of course, (:link + 1 + + 0 + + -13 + + + 2 + :) may be used with any exception type; there is no requirement that it should derive from boost::(:link + 1 + + 0 + + -41 + + + 2 + :). + + 0 @@ -6490,7 +6490,9 @@ - 0 + 1 + 2 + !!!!Throws: std::bad_alloc, or any exception emitted by T1..TN copy constructor. @@ -6699,7 +6701,9 @@ - 0 + 1 + 2 + !!!!Throws: std::bad_alloc, or any exception emitted by the T copy constructor. @@ -6721,9 +6725,7 @@ - 1 - 2 - !!!!Throws: std::bad_alloc, or any exception emitted by T1..TN copy constructor. + 0 @@ -6778,9 +6780,7 @@ - 1 - 2 - !!!!Throws: std::bad_alloc, or any exception emitted by the T copy constructor. + 0 @@ -6937,9 +6937,7 @@ - 1 - 2 - [@namespace boost { (:include api pre_indent="4":) }@] + 0 @@ -6950,18 +6948,27 @@ - 3 + 5 2 - [@#include <(:link + `#include <(:link 1 0 - -5 + -10 2 - :)> namespace boost { (:include api pre_indent="4":) }@] + :)> [@namespace boost { (:include + 1 + + 0 + + -6 + + + 2 + decl pre_indent="4":) }@] @@ -6971,17 +6978,6 @@ -7 - - 0 - - - - - 0 - - -8 - - 3 2 @@ -6990,13 +6986,26 @@ 0 - -6 + -9 2 :)> [@namespace boost { (:include decl pre_indent="4":) }@] + + + 0 + + -8 + + + + 1 + 2 + [@namespace boost { (:include api pre_indent="4":) }@] + + 0 @@ -7004,34 +7013,34 @@ -9 + + 3 + 2 + [@#include <(:link + 1 + + 0 + + -8 + + + 2 + :)> namespace boost { (:include api pre_indent="4":) }@] + + + + + 0 + + -10 + + 1 2 [@#include <boost/tuple/tuple.hpp> namespace boost { (:include api pre_indent="4":) }@] - - - 0 - - -10 - - - - 3 - 2 - `#include < - 1 - - 0 - - -22 - - - 2 - > [@namespace boost { (:include decl pre_indent="4":) }@] - - 0 @@ -7039,28 +7048,6 @@ -11 - - 3 - 2 - `#include <(:link - 1 - - 0 - - -6 - - - 2 - :)> [@namespace boost { (:include decl pre_indent="4":) }@] - - - - - 0 - - -12 - - 1 2 @@ -7071,7 +7058,7 @@ 0 - -13 + -12 @@ -7080,6 +7067,28 @@ [@namespace boost { (:include api pre_indent="4":) }@] + + + 0 + + -13 + + + + 3 + 2 + `#include < + 1 + + 0 + + -20 + + + 2 + > [@namespace boost { (:include decl pre_indent="4":) }@] + + 0 @@ -7087,34 +7096,56 @@ -14 + + 3 + 2 + `#include <(:link + 1 + + 0 + + -9 + + + 2 + :)> [@namespace boost { (:include decl pre_indent="4":) }@] + + + + + 0 + + -15 + + + + 3 + 2 + `#include <(:link + 1 + + 0 + + -9 + + + 2 + :)> [@namespace boost { (:include decl pre_indent="4":) }@] + + + + + 0 + + -16 + + 1 2 [@#include <boost/shared_ptr.hpp> namespace boost { (:include api pre_indent="4":) }@] - - - 0 - - -15 - - - - 0 - - - - - 0 - - -16 - - - - 0 - - 0 @@ -7123,18 +7154,7 @@ - 3 - 2 - [@#include <(:link - 1 - - 0 - - -5 - - - 2 - :)> #include <boost/current_function.hpp> #include <boost/shared_ptr.hpp> namespace boost { (:include api pre_indent="4":) }@] + 0 @@ -7145,18 +7165,7 @@ - 3 - 2 - `#include <(:link - 1 - - 0 - - -6 - - - 2 - :)> [@namespace boost { (:include decl pre_indent="4":) }@] + 0 @@ -7169,16 +7178,16 @@ 3 2 - [@#include < + [@#include <(:link 1 0 - -5 + -8 2 - > namespace boost { (:include api pre_indent="4":) }@] + :)> #include <boost/current_function.hpp> #include <boost/shared_ptr.hpp> namespace boost { (:include api pre_indent="4":) }@] @@ -7191,16 +7200,16 @@ 3 2 - `#include <(:link + [@#include < 1 0 - -6 + -8 2 - :)> [@namespace boost { (:include decl pre_indent="4":) }@] + > namespace boost { (:include api pre_indent="4":) }@] @@ -7213,16 +7222,16 @@ 3 2 - `#include < + [@#include < 1 0 - -12 + -8 2 - > (:include decl:) + > namespace boost { (:include api pre_indent="4":) }@] @@ -7235,16 +7244,16 @@ 3 2 - [@#include < + `#include <(:link 1 0 - -5 + -9 2 - > namespace boost { (:include api pre_indent="4":) }@] + :)> [@namespace boost { (:include decl pre_indent="4":) }@] @@ -7257,16 +7266,16 @@ 3 2 - [@#include <string> namespace boost { (:include + `#include < 1 0 - -40 + -11 2 - decl pre_indent="4":) (:include api pre_indent="4":) }@] + > (:include decl:) @@ -7279,16 +7288,16 @@ 3 2 - `#include < + [@#include <string> namespace boost { (:include 1 0 - -19 + -41 2 - > [@namespace boost { (:include decl pre_indent="4":) }@] + decl pre_indent="4":) (:include api pre_indent="4":) }@] @@ -7299,9 +7308,18 @@ - 1 + 3 2 - [@(:include api:)@] + `#include <(:link + 1 + + 0 + + -19 + + + 2 + :)>\\ [@namespace boost { (:include decl pre_indent="4":) }@] @@ -7312,7 +7330,18 @@ - 0 + 3 + 2 + `#include < + 1 + + 0 + + -21 + + + 2 + > [@namespace boost { (:include decl pre_indent="4":) }@] @@ -7323,27 +7352,9 @@ - 5 + 1 2 - `#include <(:link - 1 - - 0 - - -9 - - - 2 - :)> [@namespace boost { (:include - 1 - - 0 - - -27 - - - 2 - decl pre_indent="4":) }@] + [@(:include api:)@] @@ -7365,18 +7376,7 @@ - 3 - 2 - `#include <(:link - 1 - - 0 - - -23 - - - 2 - :)>\\ [@namespace boost { (:include decl pre_indent="4":) }@] + 0 @@ -7387,7 +7387,18 @@ - 0 + 3 + 2 + `#include <(:link + 1 + + 0 + + -24 + + + 2 + :)>\\ [@namespace boost { (:include decl pre_indent="4":) }@] @@ -7409,18 +7420,7 @@ - 3 - 2 - `#include <(:link - 1 - - 0 - - -17 - - - 2 - :)>\\ [@namespace boost { (:include decl pre_indent="4":) }@] + 0 @@ -7433,16 +7433,16 @@ 3 2 - `#include < + `#include <(:link 1 0 - -14 + -9 2 - > [@namespace boost { (:include decl pre_indent="4":) }@] + :)> [@namespace boost { (:include decl pre_indent="4":) }@] @@ -7455,16 +7455,16 @@ 3 2 - `#include <(:link + `#include < 1 0 - -17 + -16 2 - :)> [@namespace boost { (:include def pre_indent="4":) }@] + > [@namespace boost { (:include decl pre_indent="4":) }@] @@ -7475,7 +7475,18 @@ - 0 + 3 + 2 + `#include <(:link + 1 + + 0 + + -19 + + + 2 + :)> [@namespace boost { (:include def pre_indent="4":) }@] @@ -7497,18 +7508,7 @@ - 3 - 2 - `#include <(:link - 1 - - 0 - - -12 - - - 2 - :)> [@namespace boost { (:include decl:) }@] + 0 @@ -7519,7 +7519,18 @@ - 0 + 3 + 2 + `#include <(:link + 1 + + 0 + + -11 + + + 2 + :)> [@namespace boost { (:include decl:) }@] @@ -7541,18 +7552,7 @@ - 3 - 2 - `#include <(:link - 1 - - 0 - - -5 - - - 2 - :)> [@namespace boost { (:include def pre_indent="4":) }@] + 0 @@ -7563,7 +7563,18 @@ - 0 + 3 + 2 + `#include <(:link + 1 + + 0 + + -8 + + + 2 + :)> [@namespace boost { (:include def pre_indent="4":) }@] @@ -7574,18 +7585,7 @@ - 3 - 2 - `#include <(:link - 1 - - 0 - - -6 - - - 2 - :)> [@namespace boost { (:include decl pre_indent="4":) }@] + 0 @@ -7784,7 +7784,7 @@ - -30 + -31 @@ -7801,7 +7801,7 @@ - -38 + -39 @@ -7835,7 +7835,7 @@ - -19 + -21 @@ -7852,203 +7852,7 @@ - -22 - - - - - - - 1 - 50E48ABD58B427E16B2EFA345D5FE67159057CB90F19AA1AD52C11991FD8500E - 4076172629 - 8577 - 323 - - - - - - 0 - ../../../../boost/exception/exception.hpp - 0 - 0 - - - - -5 - - - - - - - 2 - 50E48ABD58B427E16B2EFA345D5FE67159057CB90F19AA1AD52C11991FD8500E - 4076172629 - 8577 - 323 - 2D32D2DE11DB8BDD6F34C94CC165ABEF4F4CCB2D119354FA05811534E2AF356F - 1002290201 - 1604 - 3720 - - - - - - 0 - ../../../../boost/exception/exception.hpp - 0 - 0 - - - - -40 - - - - - - - 3 - 50E48ABD58B427E16B2EFA345D5FE67159057CB90F19AA1AD52C11991FD8500E - 4076172629 - 8577 - 323 - 2D32D2DE11DB8BDD6F34C94CC165ABEF4F4CCB2D119354FA05811534E2AF356F - 1002290201 - 1604 - 3720 - DA154372D8C23BD9EDC30005CA7959CE686D198891097A837D006B5222F04DE9 - 2768248809 - 143 - 60 - - - - - - 0 - ../../../../boost/exception/exception.hpp - 0 - 0 - - - - -28 - - - - - - - 2 - 50E48ABD58B427E16B2EFA345D5FE67159057CB90F19AA1AD52C11991FD8500E - 4076172629 - 8577 - 323 - 17E691632123EB67BA67D590B49EB8094F462F5A10A66A1C5438E1867EF1478E - 765399792 - 77 - 5326 - - - - - - 0 - ../../../../boost/exception/exception.hpp - 0 - 0 - - - - -16 - - - - - - - 2 - 50E48ABD58B427E16B2EFA345D5FE67159057CB90F19AA1AD52C11991FD8500E - 4076172629 - 8577 - 323 - DF9EA87B0140AACF4422F1B76F6A6A409C15F32858BBBA85A35981A824C56BA9 - 1137981799 - 192 - 8379 - - - - - - 0 - ../../../../boost/exception/exception.hpp - 0 - 0 - - - - -10 - - - - - - - 2 - 50E48ABD58B427E16B2EFA345D5FE67159057CB90F19AA1AD52C11991FD8500E - 4076172629 - 8577 - 323 - B4D37C317A3B45825DDA1A8C8B1CE71CC2E530D15090D05995FCBEC4247F49C4 - 2742768198 - 258 - 6714 - - - - - - 0 - ../../../../boost/exception/exception.hpp - 0 - 0 - - - - -24 - - - - - - - 2 - 17F10DBB69A481226D23CBBD7A897BF484EB8C5B1DC2E346E725EF0B8CE76D14 - 469421394 - 3808 - 518 - D31BCE814DF5B8B718E7EB67A194AD08EF716A26D422E436596ABA1F145007D8 - 4055211476 - 525 - 3277 - - - - - - 0 - ../../../../boost/exception/info.hpp - 0 - 0 - - - - -32 + -20 @@ -8072,7 +7876,7 @@ - -26 + -28 @@ -8096,7 +7900,31 @@ - -36 + -37 + + + + + + + 1 + 8DC5E3F51F580F74905ADF7542CBFBE23989808ACFF69E8C2B98B5092C633B42 + 378737885 + 4007 + 323 + + + + + + 0 + ../../../../boost/exception/info.hpp + 0 + 0 + + + + -19 @@ -8120,7 +7948,7 @@ - -21 + -23 @@ -8148,31 +7976,7 @@ - -29 - - - - - - - 1 - A08B750D3232ABEE88525742EFF8F342E5B2E4DE52BA6F55A8CFED666A50756E - 4268561218 - 4003 - 323 - - - - - - 0 - ../../../../boost/exception/info.hpp - 0 - 0 - - - - -17 + -30 @@ -8196,7 +8000,7 @@ - -39 + -40 @@ -8220,7 +8024,7 @@ - -14 + -16 @@ -8244,7 +8048,7 @@ - -25 + -27 @@ -8268,7 +8072,7 @@ - -23 + -24 @@ -8296,7 +8100,7 @@ - -37 + -38 @@ -8328,7 +8132,7 @@ - -7 + -5 @@ -8356,7 +8160,7 @@ - -33 + -34 @@ -8384,7 +8188,7 @@ - -34 + -35 @@ -8408,7 +8212,7 @@ - -12 + -11 @@ -8432,7 +8236,7 @@ - -9 + -10 @@ -8456,7 +8260,7 @@ - -41 + -42 @@ -8480,7 +8284,7 @@ - -6 + -9 @@ -8504,7 +8308,7 @@ - -15 + -17 @@ -8532,7 +8336,7 @@ - -20 + -22 @@ -8560,7 +8364,7 @@ - -42 + -33 @@ -8588,7 +8392,7 @@ - -8 + -7 @@ -8616,7 +8420,7 @@ - -18 + -15 @@ -8644,7 +8448,175 @@ - -11 + -14 + + + + + + + 1 + A7B38E57D7A0B8823D9FE49F434B6B61D2C300ED96FA97BBAE9CED40660241DF + 882254800 + 9168 + 323 + + + + + + 0 + ../../../../boost/exception/exception.hpp + 0 + 0 + + + + -8 + + + + + + + 2 + A7B38E57D7A0B8823D9FE49F434B6B61D2C300ED96FA97BBAE9CED40660241DF + 882254800 + 9168 + 323 + 17E691632123EB67BA67D590B49EB8094F462F5A10A66A1C5438E1867EF1478E + 765399792 + 77 + 5917 + + + + + + 0 + ../../../../boost/exception/exception.hpp + 0 + 0 + + + + -18 + + + + + + + 2 + A7B38E57D7A0B8823D9FE49F434B6B61D2C300ED96FA97BBAE9CED40660241DF + 882254800 + 9168 + 323 + DF9EA87B0140AACF4422F1B76F6A6A409C15F32858BBBA85A35981A824C56BA9 + 1137981799 + 192 + 8970 + + + + + + 0 + ../../../../boost/exception/exception.hpp + 0 + 0 + + + + -13 + + + + + + + 2 + A7B38E57D7A0B8823D9FE49F434B6B61D2C300ED96FA97BBAE9CED40660241DF + 882254800 + 9168 + 323 + B4D37C317A3B45825DDA1A8C8B1CE71CC2E530D15090D05995FCBEC4247F49C4 + 2742768198 + 258 + 7305 + + + + + + 0 + ../../../../boost/exception/exception.hpp + 0 + 0 + + + + -26 + + + + + + + 2 + A7B38E57D7A0B8823D9FE49F434B6B61D2C300ED96FA97BBAE9CED40660241DF + 882254800 + 9168 + 323 + 65D35B8A2063883A53E9D0DCC3FF8E5CA3573A58451A653CDE3003FFBEC576D3 + 1693870740 + 2195 + 3720 + + + + + + 0 + ../../../../boost/exception/exception.hpp + 0 + 0 + + + + -41 + + + + + + + 3 + A7B38E57D7A0B8823D9FE49F434B6B61D2C300ED96FA97BBAE9CED40660241DF + 882254800 + 9168 + 323 + 65D35B8A2063883A53E9D0DCC3FF8E5CA3573A58451A653CDE3003FFBEC576D3 + 1693870740 + 2195 + 3720 + DA154372D8C23BD9EDC30005CA7959CE686D198891097A837D006B5222F04DE9 + 2768248809 + 143 + 60 + + + + + + 0 + ../../../../boost/exception/exception.hpp + 0 + 0 + + + + -29 @@ -8672,7 +8644,7 @@ - -13 + -12 @@ -8700,7 +8672,7 @@ - -27 + -6 @@ -8724,7 +8696,7 @@ - -35 + -36 @@ -8748,7 +8720,35 @@ - -31 + -32 + + + + + + + 2 + 8C77439A1F52A50CF8C4131A44CC7FA9CF5E02508CB32C4FF40B565613A396F4 + 476106477 + 3812 + 518 + D31BCE814DF5B8B718E7EB67A194AD08EF716A26D422E436596ABA1F145007D8 + 4055211476 + 525 + 3281 + + + + + + 0 + ../../../../boost/exception/info.hpp + 0 + 0 + + + + -25 @@ -8776,19 +8776,19 @@ 0 - -5 + -6 - + error_info free function 0 - -6 + -7 - + exception_ptr type @@ -8797,7 +8797,7 @@ -8 - exception_ptr type + @@ -8815,7 +8815,7 @@ -10 - exception_ptr free function + @@ -8824,7 +8824,7 @@ -11 - exception_ptr free function + @@ -8842,7 +8842,7 @@ -13 - + exception_ptr free function @@ -8851,7 +8851,7 @@ -14 - error_info + exception_ptr free function @@ -8860,7 +8860,7 @@ -15 - noalso noindex tutorial + exception_ptr free function @@ -8869,7 +8869,7 @@ -16 - function + error_info @@ -8878,7 +8878,7 @@ -17 - + noalso noindex tutorial @@ -8887,7 +8887,7 @@ -18 - exception_ptr free function + function @@ -8896,7 +8896,7 @@ -19 - error_info + @@ -8905,7 +8905,7 @@ -20 - exception_ptr free function + exception_ptr @@ -8914,7 +8914,7 @@ -21 - + error_info @@ -8923,7 +8923,7 @@ -22 - exception_ptr + exception_ptr free function @@ -8941,7 +8941,7 @@ -24 - error_info free function + @@ -8950,7 +8950,7 @@ -25 - + error_info free function @@ -8959,7 +8959,7 @@ -26 - noalso noindex tutorial + error_info free function @@ -8968,7 +8968,7 @@ -27 - error_info free function + @@ -8977,7 +8977,7 @@ -28 - function + noalso noindex tutorial @@ -8986,7 +8986,7 @@ -29 - diagnostic_information free function + function @@ -8995,7 +8995,7 @@ -30 - tutorial + diagnostic_information free function @@ -9004,7 +9004,7 @@ -31 - noalso noindex tutorial + tutorial @@ -9013,7 +9013,7 @@ -32 - error_info free function + noalso noindex tutorial @@ -9022,7 +9022,7 @@ -33 - error_info free function + type @@ -9031,7 +9031,7 @@ -34 - type + error_info free function @@ -9040,7 +9040,7 @@ -35 - noalso noindex tutorial + type @@ -9049,7 +9049,7 @@ -36 - tutorial + noalso noindex tutorial @@ -9058,7 +9058,7 @@ -37 - free function + tutorial @@ -9067,7 +9067,7 @@ -38 - tutorial + free function @@ -9076,7 +9076,7 @@ -39 - diagnostic_information tutorial + tutorial @@ -9085,7 +9085,7 @@ -40 - type + diagnostic_information tutorial @@ -9094,7 +9094,7 @@ -41 - noalso noindex tutorial + type @@ -9103,7 +9103,7 @@ -42 - type + noalso noindex tutorial