diff --git a/doc/source/boost-exception.reno b/doc/source/boost-exception.reno index 4e00f4b..ac2b070 100644 --- a/doc/source/boost-exception.reno +++ b/doc/source/boost-exception.reno @@ -53,28 +53,32 @@ - 1 - 6AF18E00A3BB3D35F83A4F81619F7BD079E08E2BF3F4CE6F218045A2DF9701FA - 348421341 - 341 - 323 + 2 + 5D77D35C34EE3A1CF65AF8A54984D895F7FD5E5F61B51F1C00141EE26184826F + 2896829895 + 4094 + 775 + CF9032A2CB14D66F0F004C0AFDE2BB94321F405D6D95AC46EC5350AB4843A4F1 + 1073329133 + 715 + 243 0 - ../../../../boost/exception.hpp + ../../../../boost/exception/info.hpp 0 0 - <string>boost/exception.hpp</string> + <string>error_info</string> - exception_hpp + @@ -93,1093 +97,6 @@ reno_context - - - - - - 2 - 78F37A2801CADB066084578244BC93958EAD33507F30C07353EA7D161FFBF973 - 2089604779 - 11016 - 532 - C84057F7B3954843F5360E9764B35DC5EB1D8ED65CA9F1B6B633D95B417E3AA9 - 1591300832 - 2322 - 1609 - - - - - - 0 - ../../../../boost/exception_ptr.hpp - 0 - 0 - - - - - <string>exception_ptr</string> - - - - - - - - - 1 - 2 - (:include include:) (:auto also:) - - - - - 0 - - 7 - - reno_context - - - - - - - 2 - 985ACA12BA0E9D0359ED1DF17DB5608A27B8FD5B083E40B39D838B75C58B57DD - 1422943545 - 7756 - 323 - 17E691632123EB67BA67D590B49EB8094F462F5A10A66A1C5438E1867EF1478E - 765399792 - 77 - 4369 - - - - - - 0 - ../../../../boost/exception/exception.hpp - 0 - 0 - - - - - <string>exception::~exception</string> - - - exception_destructor - - - - - - 1 - 2 - (:include include:) (:auto also:) - - - - - 0 - - 8 - - reno_context - - - - - - - 1 - FC79C34F05028DB122154492FBB2B8F0EB3EFDCAA30A48C30E3A7E7EBD67E672 - 4099021562 - 1741 - 91 - - - - - - 0 - ../../../../boost/throw_exception.hpp - 0 - 0 - - - - - <string>boost/throw_exception.hpp</string> - - - throw_exception_hpp - - - - - - 1 - 2 - (:include include:) (:auto also:) - - - - - 0 - - 9 - - reno_context - - - - - - - 2 - 78F37A2801CADB066084578244BC93958EAD33507F30C07353EA7D161FFBF973 - 2089604779 - 11016 - 532 - 7890935423C731BD8E7DE2820DF7E85C72126B2EAB9A45B0AAFA5749DD1A9D57 - 2497085175 - 2528 - 8066 - - - - - - 0 - ../../../../boost/exception_ptr.hpp - 0 - 0 - - - - - <string>current_exception</string> - - - - - - - - - 1 - 2 - (:include include:) (:auto also:) - - - - - 0 - - 10 - - reno_context - - - - - - - 1 - CE411E21EE9878B55B5906D033A0FC52574FB59D8A8CECB75405E9B1C9D782DB - 1173443713 - 308 - 302 - - - - - - 0 - ../../example/logging.cpp - 0 - 0 - - - - - <string>diagnostic information</string> - - - tutorial_diagnostic_information - - - - - - 1 - 2 - (:include include:) (:auto also:) - - - - - 0 - - 11 - - reno_context - - - - - - - 2 - F7B9CDADF285065E8CB1F11340DFC40B3006D9CE7EE0D5291C08A78548499089 - 3958534298 - 4381 - 775 - C552A651ADC0B9506373CC1A78CB4D7D0342BC99BD24F2F2B8CAD3B555037FE7 - 141521629 - 382 - 3993 - - - - - - 0 - ../../../../boost/exception/info.hpp - 0 - 0 - - - - - <string>operator<</exception</string> - - - - - - - - - 1 - 2 - (:include include:) (:auto also:) - - - - - 0 - - 12 - - reno_context - - - - - - - 1 - 3129727981C71FD1C5ED95F4B0A4D4B67DD804FC601C0B5EC13BE01D7CD8BA8A - 2918124076 - 4833 - 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 - - 13 - - reno_context - - - - - - - 1 - DDE2FCDD8E72B54F251AF3A5386B67741519415D947D3F22ECA0EE51BB70FEFE - 780144935 - 1751 - 323 - - - - - - 0 - ../../../../boost/exception/get_error_info.hpp - 0 - 0 - - - - - <string>boost/exception/get_error_info.hpp</string> - - - - - - - - - 1 - 2 - (:include include:) (:auto also:) - - - - - 0 - - 14 - - reno_context - - - - - - - 2 - 78F37A2801CADB066084578244BC93958EAD33507F30C07353EA7D161FFBF973 - 2089604779 - 11016 - 532 - 4B6ED02EA5B5A3B326838794C37ED01C5DC3E8D89FA78E62B9F7A0C78D4DB6FD - 2715164371 - 116 - 10894 - - - - - - 0 - ../../../../boost/exception_ptr.hpp - 0 - 0 - - - - - <string>rethrow_exception</string> - - - - - - - - - 1 - 2 - (:include include:) (:auto also:) - - - - - 0 - - 15 - - 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 - - 16 - - reno_context - - - - - - - 1 - 985ACA12BA0E9D0359ED1DF17DB5608A27B8FD5B083E40B39D838B75C58B57DD - 1422943545 - 7756 - 323 - - - - - - 0 - ../../../../boost/exception/exception.hpp - 0 - 0 - - - - - <string>boost/exception/exception.hpp</string> - - - exception_exception_hpp - - - - - - 1 - 2 - (:include include:) (:auto also:) - - - - - 0 - - 17 - - reno_context - - - - - - - 0 - - - - - - 1 - - - - - <string>transporting of arbitrary data to the catch site</string> - - - tutorial_transporting_data - - - - - - 1 - 2 - (:include include:) (:auto also:) - - - - - 0 - - 18 - - reno_context - - - - - - - 1 - CAB4D823BD4720B71E1CA5BE482AC95B42A9E07CD5E08671EA23184635F281A2 - 3077708282 - 89 - 323 - - - - - - 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 - - 19 - - reno_context - - - - - - - 1 - 49D31376D97691F7C84A134B5D8C7C66EF1ED6901D376CA250D634AE2B38AB5E - 549270010 - 163 - 610 - - - - - - 0 - ../../../../boost/exception/info.hpp - 0 - 0 - - - - - <string>BOOST_ERROR_INFO</string> - - - - - - - - - 1 - 2 - (:include include:) (:auto also:) - - - - - 0 - - 20 - - reno_context - - - - - - - 0 - - - - - - 1 - - - - - <string>Index</string> - - - name_idx - - - - - - 1 - 2 - (:auto !:) (:pagelist fmt="index" except_tags="index,noindex" mod="w":) - - - - - 0 - - 21 - - reno_context - - - - - - - 2 - F7633FDCF6615C0199645701EE6E7ACE5CBCD7A7CF6838573791E91ABB3C09F2 - 1668435395 - 1332 - 396 - A1F443AF571973A12005D2F7D4AE09A32AAF686FEEAE272EC21512A65EB943E8 - 3879093659 - 1300 - 26 - - - - - - 0 - ../../../../boost/exception/info_tuple.hpp - 0 - 0 - - - - - <string>operator<</tuple</string> - - - - - - - - - 1 - 2 - (:include include:) (:auto also:) - - - - - 0 - - 22 - - reno_context - - - - - - - 2 - 985ACA12BA0E9D0359ED1DF17DB5608A27B8FD5B083E40B39D838B75C58B57DD - 1422943545 - 7756 - 323 - B1D44CB4701E01A9F172883CC04BBD5A0173410AF3C6BEFAF711FD09F918954B - 3552071431 - 1239 - 3128 - - - - - - 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 - - 23 - - 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 - - 24 - - reno_context - - - - - - - 0 - - - - - - 1 - - - - - <string>transporting of exceptions between threads</string> - - - tutorial_exception_ptr - - - - - - 1 - 2 - (:include include:) (:auto also:) - - - - - 0 - - 25 - - reno_context - - - - - - - 3 - 985ACA12BA0E9D0359ED1DF17DB5608A27B8FD5B083E40B39D838B75C58B57DD - 1422943545 - 7756 - 323 - B1D44CB4701E01A9F172883CC04BBD5A0173410AF3C6BEFAF711FD09F918954B - 3552071431 - 1239 - 3128 - B805EBBE01B97F9E8E0306870AFA083BD42C2F04A72EE945E4D2161860B720AB - 269617501 - 51 - 245 - - - - - - 0 - ../../../../boost/exception/exception.hpp - 0 - 0 - - - - - <string>exception::exception</string> - - - exception_constructors - - - - - - 1 - 2 - (:include include:) (:auto also:) - - - - - 0 - - 26 - - 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 - - 27 - - 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 - - 28 - - 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 - - 29 - - 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 - - 30 - - reno_context - @@ -1221,7 +138,7 @@ 0 - 31 + 7 reno_context @@ -1231,14 +148,14 @@ 2 - 985ACA12BA0E9D0359ED1DF17DB5608A27B8FD5B083E40B39D838B75C58B57DD - 1422943545 - 7756 + 798A43A58F30121B93FAAFE41BA02B933B5D189D95176607ADFC01796014F7D0 + 605377366 + 7735 323 - DF9EA87B0140AACF4422F1B76F6A6A409C15F32858BBBA85A35981A824C56BA9 - 1137981799 - 192 - 7476 + C4D6D690002735564AC480CEA72750731857C50F8E92B19420561B4CBBDA0748 + 1783445013 + 1182 + 3164 @@ -1252,7 +169,7 @@ - <string>enable_current_exception</string> + <string>exception</string> @@ -1263,14 +180,14 @@ 1 2 - (:include include:) (:auto also:) + (:include include:) ---- !!!See Also: (:pagelist link="backlink" except_tags="exception,member" mod="w":) 0 - 32 + 8 reno_context @@ -1280,170 +197,27 @@ 1 - FED4CEA991FBBA8DF26B5652CE68C929C38BEE74DFD6C8E89E2A623BF0A61503 - 1244906377 - 2548 - 323 + F4C951B28F7DE500973AA3DFAA99F2BADA6EDAFA2B406C30BEF3B7FBE6FD57D7 + 2263754923 + 982 + 306 0 - ../../../../boost/exception/diagnostic_information.hpp + ../../example/error_info_2.cpp 0 0 - <string>boost/exception/diagnostic_information.hpp</string> + <string>adding of arbitrary data to active exception objects</string> - - - - - - - 1 - 2 - (:include include:) (:auto also:) - - - - - 0 - - 33 - - reno_context - - - - - - - 2 - 78F37A2801CADB066084578244BC93958EAD33507F30C07353EA7D161FFBF973 - 2089604779 - 11016 - 532 - F87D7E0321BDDAE23D5A6667CB12116411468AEC54E3B35FB9C8CA94BFECA41E - 1149388739 - 296 - 10596 - - - - - - 0 - ../../../../boost/exception_ptr.hpp - 0 - 0 - - - - - <string>copy_exception</string> - - - - - - - - - 1 - 2 - (:include include:) (:auto also:) - - - - - 0 - - 34 - - reno_context - - - - - - - 2 - 612485E090D76B2CC43C1A296F813075BA165C2496082E78E939F10B3DA8E09A - 1770110914 - 587 - 1225 - 60F3F48B87487FA6E0D2CCC0750AF435CC92CEC80BBBF609AC71295031AADD0D - 3929437933 - 361 - 213 - - - - - - 0 - ../../../../boost/throw_exception.hpp - 0 - 0 - - - - - <string>throw_exception</string> - - - - - - - - - 1 - 2 - (:include include:) (:auto also:) - - - - - 0 - - 35 - - reno_context - - - - - - - 1 - E444EE9697EEADFDE0767E1D0242FC0E70D98E61FB1F0FFA099648DE509B82F3 - 94503238 - 773 - 374 - - - - - - 0 - ../../example/info_tuple.cpp - 0 - 0 - - - - - <string>adding grouped data to exceptions</string> - - - grouping_data + adding_data_later @@ -1456,7 +230,7 @@ 0 - 36 + 9 reno_context @@ -1466,161 +240,14 @@ 2 - 214D17B425C1C447F952970DA6B1A778AD45CCA513405EB2DA6EBE87285A852A - 1906283610 - 2414 - 457 - 6B355BB18EB534B5221822257C7A7F834692C7256E5D118F5443C7D905731578 - 1509743294 - 810 - 1598 - - - - - - 0 - ../../../../boost/exception/diagnostic_information.hpp - 0 - 0 - - - - - <string>diagnostic_information</string> - - - - - - - - - 1 - 2 - (:include include:) (:auto also:) - - - - - 0 - - 37 - - reno_context - - - - - - - 2 - 985ACA12BA0E9D0359ED1DF17DB5608A27B8FD5B083E40B39D838B75C58B57DD - 1422943545 - 7756 - 323 - B4D37C317A3B45825DDA1A8C8B1CE71CC2E530D15090D05995FCBEC4247F49C4 - 2742768198 - 258 - 5757 - - - - - - 0 - ../../../../boost/exception/exception.hpp - 0 - 0 - - - - - <string>enable_error_info</string> - - - - - - - - - 1 - 2 - (:include include:) (:auto also:) - - - - - 0 - - 38 - - reno_context - - - - - - - 2 - 1B9769136D8D43898453AE9747BDC9FD1833F7D620D9083FB9A38C43804FCF35 - 2690633675 - 1570 - 504 - 8E724ECF48FB144FBAC1B7F27AE077812CDA75F1A05A08F951DD7F9D54863425 - 4144026351 - 676 - 888 - - - - - - 0 - ../../../../boost/exception/get_error_info.hpp - 0 - 0 - - - - - <string>get_error_info</string> - - - - - - - - - 1 - 2 - (:include include:) (:auto also:) - - - - - 0 - - 39 - - reno_context - - - - - - - 2 - F7B9CDADF285065E8CB1F11340DFC40B3006D9CE7EE0D5291C08A78548499089 - 3958534298 - 4381 + 5D77D35C34EE3A1CF65AF8A54984D895F7FD5E5F61B51F1C00141EE26184826F + 2896829895 + 4094 775 - CF9032A2CB14D66F0F004C0AFDE2BB94321F405D6D95AC46EC5350AB4843A4F1 - 1073329133 - 715 - 243 + C8FF4A90C1FD526AC0192DD679640A1EB2CD15D65F18EAB9545BF47C803BB47C + 1251515622 + 519 + 3569 @@ -1634,7 +261,7 @@ - <string>error_info</string> + <string>operator<</exception</string> @@ -1652,7 +279,176 @@ 0 - 40 + 10 + + 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 + + 11 + + 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 + + 12 + + 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 + + 13 + + reno_context + + + + + + + 0 + + + + + + 1 + + + + + <string>transporting of arbitrary data to the catch site</string> + + + tutorial_transporting_data + + + + + + 1 + 2 + (:include include:) (:auto also:) + + + + + 0 + + 14 reno_context @@ -1662,14 +458,14 @@ 3 - 985ACA12BA0E9D0359ED1DF17DB5608A27B8FD5B083E40B39D838B75C58B57DD - 1422943545 - 7756 + 798A43A58F30121B93FAAFE41BA02B933B5D189D95176607ADFC01796014F7D0 + 605377366 + 7735 323 - B1D44CB4701E01A9F172883CC04BBD5A0173410AF3C6BEFAF711FD09F918954B - 3552071431 - 1239 - 3128 + C4D6D690002735564AC480CEA72750731857C50F8E92B19420561B4CBBDA0748 + 1783445013 + 1182 + 3164 9043738F71C025266AC2C0A2BEDC9DA3579175BE5BA672E59D136559D4269190 317401972 164 @@ -1705,7 +501,7 @@ 0 - 41 + 15 reno_context @@ -1754,7 +550,56 @@ 0 - 42 + 16 + + reno_context + + + + + + + 2 + 78F37A2801CADB066084578244BC93958EAD33507F30C07353EA7D161FFBF973 + 2089604779 + 11016 + 532 + C84057F7B3954843F5360E9764B35DC5EB1D8ED65CA9F1B6B633D95B417E3AA9 + 1591300832 + 2322 + 1609 + + + + + + 0 + ../../../../boost/exception_ptr.hpp + 0 + 0 + + + + + <string>exception_ptr</string> + + + + + + + + + 1 + 2 + (:include include:) (:auto also:) + + + + + 0 + + 17 reno_context @@ -1790,7 +635,32 @@ 0 - -24 + 18 + + reno_context + + + + + + + 0 + + + + + + 1 + + + + + <string>transporting of exceptions between threads</string> + + + tutorial_exception_ptr + + 2 @@ -1799,7 +669,43 @@ 0 - -34 + 19 + + reno_context + + + + + + + 2 + 612485E090D76B2CC43C1A296F813075BA165C2496082E78E939F10B3DA8E09A + 1770110914 + 587 + 1225 + 60F3F48B87487FA6E0D2CCC0750AF435CC92CEC80BBBF609AC71295031AADD0D + 3929437933 + 361 + 213 + + + + + + 0 + ../../../../boost/throw_exception.hpp + 0 + 0 + + + + + <string>throw_exception</string> + + + + + 2 @@ -1808,7 +714,7 @@ 0 - -17 + -13 2 @@ -1817,183 +723,44 @@ 0 - -15 + 20 + + 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 + + 2 mod="w":) ##(:link 1 - - 0 - - -24 - - - 2 - mod="w":) ##(:link - 1 - - 0 - - -10 - - - 2 - mod="w":) #Documentation ##Class (:link - 1 - - 0 - - -22 - - - 2 - :) ##Transporting of Arbitrary Data to the Catch Site ###(:link - 1 - - 0 - - -39 - - - 2 - :) ###(:link - 1 - - 0 - - -11 - - - 2 - :) ###(:link - 1 - - 0 - - -21 - - - 2 - :) ###(:link - 1 - - 0 - - -38 - - - 2 - :) ###(:link - 1 - - 0 - - -37 - - - 2 - :) ###(:link - 1 - - 0 - - -19 - - - 2 - :) ##(:link http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2179.html|N2179:) Transporting of Exceptions between Threads ###(:link - 1 - - 0 - - -6 - - - 2 - :) ###(:link - 1 - - 0 - - -31 - - - 2 - :) ###(:link - 1 - - 0 - - -9 - - - 2 - :) ###(:link - 1 - - 0 - - -33 - - - 2 - :) ###(:link - 1 - - 0 - - -14 - - - 2 - :) ###(:link - 1 - - 0 - - -41 - - - 2 - :) ##(:link - 1 - - 0 - - -36 - - - 2 - :) ##(:link - 1 - - 0 - - -34 - - - 2 - :) ##Headers ###(:link - 1 - - 0 - - -5 - - - 2 - :) ###(:link - 1 - - 0 - - -32 - - - 2 - :) ###(:link - 1 0 @@ -2001,70 +768,57 @@ 2 - :) ###(:link + mod="w":) ##(:link 1 0 - -16 + 21 + + reno_context + + + + + + + 1 + CE411E21EE9878B55B5906D033A0FC52574FB59D8A8CECB75405E9B1C9D782DB + 1173443713 + 308 + 302 + + + + + + 0 + ../../example/logging.cpp + 0 + 0 + + + + + <string>diagnostic information</string> + + + tutorial_diagnostic_information + + 2 - :) ###(:link + mod="w":) #Documentation ##Class (:link 1 0 - -13 + -7 2 - :) ###(:link - 1 - - 0 - - -12 - - - 2 - :) ###(:link - 1 - - 0 - - -28 - - - 2 - :) ###(:link - 1 - - 0 - - -30 - - - 2 - :) ###(:link - 1 - - 0 - - -8 - - - 2 - :) #(:link - 1 - - 0 - - -20 - - - 2 - :) !!Synopsis `#include <(:link + :) ##Transporting of Arbitrary Data to the Catch Site ###(:link 1 0 @@ -2073,7 +827,192 @@ 2 - :)> [@namespace boost { (:include + :) ###(:link + 1 + + 0 + + -9 + + + 2 + :) ###(:link + 1 + + 0 + + 22 + + reno_context + + + + + + + 2 + F7633FDCF6615C0199645701EE6E7ACE5CBCD7A7CF6838573791E91ABB3C09F2 + 1668435395 + 1332 + 396 + A1F443AF571973A12005D2F7D4AE09A32AAF686FEEAE272EC21512A65EB943E8 + 3879093659 + 1300 + 26 + + + + + + 0 + ../../../../boost/exception/info_tuple.hpp + 0 + 0 + + + + + <string>operator<</tuple</string> + + + + + + + + 2 + :) ###(:link + 1 + + 0 + + 23 + + reno_context + + + + + + + 2 + 316E7826A34AB7412F671B91F1115D9000953DA08C941AF99D28140ECDEEB6A6 + 718983169 + 1570 + 504 + FF9587851F54F772BCD4A548BC28D9CEB5FA00C61CBFC064568FD4F1E19AEC33 + 535614227 + 676 + 888 + + + + + + 0 + ../../../../boost/exception/get_error_info.hpp + 0 + 0 + + + + + <string>get_error_info</string> + + + + + + + + 2 + :) ###(:link + 1 + + 0 + + 24 + + reno_context + + + + + + + 2 + 798A43A58F30121B93FAAFE41BA02B933B5D189D95176607ADFC01796014F7D0 + 605377366 + 7735 + 323 + B4D37C317A3B45825DDA1A8C8B1CE71CC2E530D15090D05995FCBEC4247F49C4 + 2742768198 + 258 + 5736 + + + + + + 0 + ../../../../boost/exception/exception.hpp + 0 + 0 + + + + + <string>enable_error_info</string> + + + + + + + + 2 + :) ###(:link + 1 + + 0 + + 25 + + reno_context + + + + + + + 1 + 49D31376D97691F7C84A134B5D8C7C66EF1ED6901D376CA250D634AE2B38AB5E + 549270010 + 163 + 610 + + + + + + 0 + ../../../../boost/exception/info.hpp + 0 + 0 + + + + + <string>BOOST_ERROR_INFO</string> + + + + + + + + 2 + :) ##(:link http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2179.html|N2179:) Transporting of Exceptions between Threads ###(:link 1 0 @@ -2082,12 +1021,607 @@ 2 - api pre_indent="4":) (:include + :) ###(:link 1 0 - -12 + 26 + + reno_context + + + + + + + 2 + 798A43A58F30121B93FAAFE41BA02B933B5D189D95176607ADFC01796014F7D0 + 605377366 + 7735 + 323 + DF9EA87B0140AACF4422F1B76F6A6A409C15F32858BBBA85A35981A824C56BA9 + 1137981799 + 192 + 7455 + + + + + + 0 + ../../../../boost/exception/exception.hpp + 0 + 0 + + + + + <string>enable_current_exception</string> + + + + + + + + 2 + :) ###(:link + 1 + + 0 + + 27 + + reno_context + + + + + + + 2 + 78F37A2801CADB066084578244BC93958EAD33507F30C07353EA7D161FFBF973 + 2089604779 + 11016 + 532 + 7890935423C731BD8E7DE2820DF7E85C72126B2EAB9A45B0AAFA5749DD1A9D57 + 2497085175 + 2528 + 8066 + + + + + + 0 + ../../../../boost/exception_ptr.hpp + 0 + 0 + + + + + <string>current_exception</string> + + + + + + + + 2 + :) ###(:link + 1 + + 0 + + 28 + + reno_context + + + + + + + 2 + 78F37A2801CADB066084578244BC93958EAD33507F30C07353EA7D161FFBF973 + 2089604779 + 11016 + 532 + F87D7E0321BDDAE23D5A6667CB12116411468AEC54E3B35FB9C8CA94BFECA41E + 1149388739 + 296 + 10596 + + + + + + 0 + ../../../../boost/exception_ptr.hpp + 0 + 0 + + + + + <string>copy_exception</string> + + + + + + + + 2 + :) ###(:link + 1 + + 0 + + 29 + + reno_context + + + + + + + 2 + 78F37A2801CADB066084578244BC93958EAD33507F30C07353EA7D161FFBF973 + 2089604779 + 11016 + 532 + 4B6ED02EA5B5A3B326838794C37ED01C5DC3E8D89FA78E62B9F7A0C78D4DB6FD + 2715164371 + 116 + 10894 + + + + + + 0 + ../../../../boost/exception_ptr.hpp + 0 + 0 + + + + + <string>rethrow_exception</string> + + + + + + + + 2 + :) ###(:link + 1 + + 0 + + -15 + + + 2 + :) ##(:link + 1 + + 0 + + 30 + + reno_context + + + + + + + 2 + 214D17B425C1C447F952970DA6B1A778AD45CCA513405EB2DA6EBE87285A852A + 1906283610 + 2414 + 457 + 6B355BB18EB534B5221822257C7A7F834692C7256E5D118F5443C7D905731578 + 1509743294 + 810 + 1598 + + + + + + 0 + ../../../../boost/exception/diagnostic_information.hpp + 0 + 0 + + + + + <string>diagnostic_information</string> + + + + + + + + 2 + :) ##(:link + 1 + + 0 + + -19 + + + 2 + :) ##Headers ###(:link + 1 + + 0 + + 31 + + reno_context + + + + + + + 1 + 6AF18E00A3BB3D35F83A4F81619F7BD079E08E2BF3F4CE6F218045A2DF9701FA + 348421341 + 341 + 323 + + + + + + 0 + ../../../../boost/exception.hpp + 0 + 0 + + + + + <string>boost/exception.hpp</string> + + + exception_hpp + + + + + 2 + :) ###(:link + 1 + + 0 + + 32 + + reno_context + + + + + + + 1 + FED4CEA991FBBA8DF26B5652CE68C929C38BEE74DFD6C8E89E2A623BF0A61503 + 1244906377 + 2548 + 323 + + + + + + 0 + ../../../../boost/exception/diagnostic_information.hpp + 0 + 0 + + + + + <string>boost/exception/diagnostic_information.hpp</string> + + + + + + + + 2 + :) ###(:link + 1 + + 0 + + 33 + + 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 + + + + + 2 + :) ###(:link + 1 + + 0 + + 34 + + reno_context + + + + + + + 1 + 798A43A58F30121B93FAAFE41BA02B933B5D189D95176607ADFC01796014F7D0 + 605377366 + 7735 + 323 + + + + + + 0 + ../../../../boost/exception/exception.hpp + 0 + 0 + + + + + <string>boost/exception/exception.hpp</string> + + + exception_exception_hpp + + + + + 2 + :) ###(:link + 1 + + 0 + + 35 + + reno_context + + + + + + + 1 + 3FB3FF960AB73CFA030B0B3BF9B9B0E4DF6534F39E22EFCD3FD44C240DC1A650 + 3103461725 + 1751 + 323 + + + + + + 0 + ../../../../boost/exception/get_error_info.hpp + 0 + 0 + + + + + <string>boost/exception/get_error_info.hpp</string> + + + + + + + + 2 + :) ###(:link + 1 + + 0 + + 36 + + reno_context + + + + + + + 1 + BA1771AE0820845A4FBA4958AD943C4AE6F331ED91EFB29CC74357A9193B79D7 + 1140438873 + 4546 + 323 + + + + + + 0 + ../../../../boost/exception/info.hpp + 0 + 0 + + + + + <string>boost/exception/info.hpp</string> + + + exception_error_info_hpp + + + + + 2 + :) ###(:link + 1 + + 0 + + -11 + + + 2 + :) ###(:link + 1 + + 0 + + -6 + + + 2 + :) ###(:link + 1 + + 0 + + 37 + + reno_context + + + + + + + 1 + FC79C34F05028DB122154492FBB2B8F0EB3EFDCAA30A48C30E3A7E7EBD67E672 + 4099021562 + 1741 + 91 + + + + + + 0 + ../../../../boost/throw_exception.hpp + 0 + 0 + + + + + <string>boost/throw_exception.hpp</string> + + + throw_exception_hpp + + + + + 2 + :) #(:link + 1 + + 0 + + 38 + + reno_context + + + + + + + 0 + + + + + + 1 + + + + + <string>Index</string> + + + name_idx + + + + + 2 + :) !!Synopsis `#include <(:link + 1 + + 0 + + -31 + + + 2 + :)> [@namespace boost { (:include + 1 + + 0 + + -34 2 @@ -2096,7 +1630,16 @@ 0 - -28 + -36 + + + 2 + api pre_indent="4":) (:include + 1 + + 0 + + -11 2 @@ -2114,7 +1657,7 @@ 0 - -30 + -6 2 @@ -2123,7 +1666,7 @@ 0 - -8 + -37 2 @@ -2132,7 +1675,7 @@ 0 - -22 + -7 2 @@ -2141,70 +1684,7 @@ 0 - -39 - - - 2 - :) (:include - 1 - - 0 - - -11 - - - 2 - :) (:include - 1 - - 0 - - -21 - - - 2 - :) (:include - 1 - - 0 - - -38 - - - 2 - :) (:include - 1 - - 0 - - -37 - - - 2 - :) (:include - 1 - - 0 - - -19 - - - 2 - :) !!Transporting of Exceptions between Threads (:include - 1 - - 0 - - -6 - - - 2 - :) (:include - 1 - - 0 - - -31 + -5 2 @@ -2222,7 +1702,7 @@ 0 - -33 + -22 2 @@ -2231,7 +1711,7 @@ 0 - -14 + -23 2 @@ -2240,7 +1720,70 @@ 0 - -41 + -24 + + + 2 + :) (:include + 1 + + 0 + + -25 + + + 2 + :) !!Transporting of Exceptions between Threads (:include + 1 + + 0 + + -16 + + + 2 + :) (:include + 1 + + 0 + + -26 + + + 2 + :) (:include + 1 + + 0 + + -27 + + + 2 + :) (:include + 1 + + 0 + + -28 + + + 2 + :) (:include + 1 + + 0 + + -29 + + + 2 + :) (:include + 1 + + 0 + + -15 2 @@ -2249,7 +1792,7 @@ 0 - -36 + -30 2 @@ -2258,13 +1801,474 @@ 0 - -34 + -19 2 :) !!Acknowledgements Peter Dimov has been continuously influencing the design and evolution of Boost Exception. Also thanks to Tobias Schwinger, Tom Brinkman, Pavel Vozenilek and everyone who participated in the review process. + + + 0 + + -18 + + + + 1 + 2 + (:include include:) (:auto also:) + + + + + 0 + + -19 + + + + 1 + 2 + (:include include:) (:auto also:) + + + + + 0 + + -26 + + + + 1 + 2 + (:include include:) (:auto also:) + + + + + 0 + + -20 + + + + 1 + 2 + (:include include:) (:auto also:) + + + + + 0 + + -21 + + + + 1 + 2 + (:include include:) (:auto also:) + + + + + 0 + + -22 + + + + 1 + 2 + (:include include:) (:auto also:) + + + + + 0 + + -23 + + + + 1 + 2 + (:include include:) (:auto also:) + + + + + 0 + + -24 + + + + 1 + 2 + (:include include:) (:auto also:) + + + + + 0 + + -25 + + + + 1 + 2 + (:include include:) (:auto also:) + + + + + 0 + + -28 + + + + 1 + 2 + (:include include:) (:auto also:) + + + + + 0 + + -29 + + + + 1 + 2 + (:include include:) (:auto also:) + + + + + 0 + + -27 + + + + 1 + 2 + (:include include:) (:auto also:) + + + + + 0 + + -30 + + + + 1 + 2 + (:include include:) (:auto also:) + + + + + 0 + + -32 + + + + 1 + 2 + (:include include:) (:auto also:) + + + + + 0 + + -31 + + + + 1 + 2 + (:include include:) (:auto also:) + + + + + 0 + + -33 + + + + 1 + 2 + (:include include:) (:auto also:) + + + + + 0 + + -34 + + + + 1 + 2 + (:include include:) (:auto also:) + + + + + 0 + + -35 + + + + 1 + 2 + (:include include:) (:auto also:) + + + + + 0 + + -36 + + + + 1 + 2 + (:include include:) (:auto also:) + + + + + 0 + + -37 + + + + 1 + 2 + (:include include:) (:auto also:) + + + + + 0 + + -38 + + + + 1 + 2 + (:auto !:) (:pagelist fmt="index" except_tags="index,noindex" mod="w":) + + + + + 0 + + 39 + + reno_context + + + + + + + 1 + E444EE9697EEADFDE0767E1D0242FC0E70D98E61FB1F0FFA099648DE509B82F3 + 94503238 + 773 + 374 + + + + + + 0 + ../../example/info_tuple.cpp + 0 + 0 + + + + + <string>adding grouped data to exceptions</string> + + + grouping_data + + + + + + 0 + + + + + 0 + + 40 + + reno_context + + + + + + + 2 + 798A43A58F30121B93FAAFE41BA02B933B5D189D95176607ADFC01796014F7D0 + 605377366 + 7735 + 323 + 17E691632123EB67BA67D590B49EB8094F462F5A10A66A1C5438E1867EF1478E + 765399792 + 77 + 4348 + + + + + + 0 + ../../../../boost/exception/exception.hpp + 0 + 0 + + + + + <string>exception::~exception</string> + + + exception_destructor + + + + + + 1 + 2 + (:include include:) (:auto also:) + + + + + 0 + + 41 + + 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 + + 42 + + reno_context + + + + + + + 3 + 798A43A58F30121B93FAAFE41BA02B933B5D189D95176607ADFC01796014F7D0 + 605377366 + 7735 + 323 + C4D6D690002735564AC480CEA72750731857C50F8E92B19420561B4CBBDA0748 + 1783445013 + 1182 + 3164 + B805EBBE01B97F9E8E0306870AFA083BD42C2F04A72EE945E4D2161860B720AB + 269617501 + 51 + 245 + + + + + + 0 + ../../../../boost/exception/exception.hpp + 0 + 0 + + + + + <string>exception::exception</string> + + + exception_constructors + + + + + + 1 + 2 + (:include include:) (:auto also:) + + @@ -2287,7 +2291,18 @@ - 0 + 3 + 2 + [@template <class Tag,class T> class (:link + 1 + + 0 + + -5 + + + 2 + :) { public: typedef T value_type; error_info( value_type const & ); };@] @@ -2309,7 +2324,45 @@ - 0 + 9 + 2 + [@class (:link + 1 + + 0 + + -7 + + + 2 + :) { public: (:include + 1 + + 0 + + -14 + + + 2 + decl pre_indent="4":) protected: (:include + 1 + + 0 + + -42 + + + 2 + decl pre_indent="4":) (:include + 1 + + 0 + + -40 + + + 2 + decl pre_indent="4":) };@] @@ -2444,6 +2497,17 @@ 0 + + + 0 + + -26 + + + + 0 + + 0 @@ -2474,45 +2538,7 @@ - 9 - 2 - [@class (:link - 1 - - 0 - - -22 - - - 2 - :) { public: (:include - 1 - - 0 - - -40 - - - 2 - decl pre_indent="4":) protected: (:include - 1 - - 0 - - -25 - - - 2 - decl pre_indent="4":) (:include - 1 - - 0 - - -7 - - - 2 - decl pre_indent="4":) };@] + 0 @@ -2548,28 +2574,6 @@ 0 - - - 0 - - -26 - - - - 0 - - - - - 0 - - -27 - - - - 0 - - 0 @@ -2592,6 +2596,17 @@ 0 + + + 0 + + -27 + + + + 0 + + 0 @@ -2607,7 +2622,7 @@ 0 - -31 + -32 @@ -2618,7 +2633,7 @@ 0 - -32 + -31 @@ -2699,18 +2714,7 @@ - 3 - 2 - [@template <class Tag,class T> class (:link - 1 - - 0 - - -39 - - - 2 - :) { public: typedef T value_type; error_info( value_type const & ); };@] + 0 @@ -2768,81 +2772,7 @@ - 17 - 2 - [@#include <(:link - 1 - - 0 - - -32 - - - 2 - :)> #include <(:link - 1 - - 0 - - -18 - - - 2 - :)> #include <(:link - 1 - - 0 - - -16 - - - 2 - :)> #include <(:link - 1 - - 0 - - -13 - - - 2 - :)> #include <(:link - 1 - - 0 - - -12 - - - 2 - :)> #include <(:link - 1 - - 0 - - -28 - - - 2 - :)> #include <(:link - 1 - - 0 - - -30 - - - 2 - :)> #include <(:link - 1 - - 0 - - -8 - - - 2 - :)>@] + 0 @@ -2853,7 +2783,54 @@ - 0 + 11 + 2 + [@(:include + 1 + + 0 + + -15 + + + 2 + decl:) (:include + 1 + + 0 + + -16 + + + 2 + decl:) (:include + 1 + + 0 + + -28 + + + 2 + decl:) (:include + 1 + + 0 + + -27 + + + 2 + decl:) (:include + 1 + + 0 + + -29 + + + 2 + decl:)@] @@ -2875,18 +2852,7 @@ - 3 - 2 - [@(:include - 1 - - 0 - - -34 - - - 2 - decl:)@] + 0 @@ -2919,7 +2885,18 @@ - 0 + 3 + 2 + [@(:include + 1 + + 0 + + -22 + + + 2 + decl:)@] @@ -2930,36 +2907,7 @@ - 7 - 2 - [@(:include - 1 - - 0 - - -39 - - - 2 - def:) (:include - 1 - - 0 - - -19 - - - 2 - decl:) (:include - 1 - - 0 - - -11 - - - 2 - decl:)@] + 0 @@ -2970,18 +2918,7 @@ - 3 - 2 - [@(:include - 1 - - 0 - - -38 - - - 2 - decl:)@] + 0 @@ -3014,36 +2951,7 @@ - 7 - 2 - [@(:include - 1 - - 0 - - -22 - - - 2 - def:) (:include - 1 - - 0 - - -37 - - - 2 - decl:) (:include - 1 - - 0 - - -31 - - - 2 - decl:)@] + 0 @@ -3065,18 +2973,7 @@ - 3 - 2 - [@(:include - 1 - - 0 - - -39 - - - 2 - decl:)@] + 0 @@ -3090,6 +2987,17 @@ 0 + + + 0 + + -26 + + + + 0 + + 0 @@ -3160,7 +3068,18 @@ 0 - -26 + -28 + + + + 0 + + + + + 0 + + -29 @@ -3178,39 +3097,6 @@ 0 - - - 0 - - -28 - - - - 3 - 2 - [@(:include - 1 - - 0 - - -21 - - - 2 - decl:)@] - - - - - 0 - - -29 - - - - 0 - - 0 @@ -3218,64 +3104,6 @@ -30 - - 11 - 2 - [@(:include - 1 - - 0 - - -41 - - - 2 - decl:) (:include - 1 - - 0 - - -6 - - - 2 - decl:) (:include - 1 - - 0 - - -33 - - - 2 - decl:) (:include - 1 - - 0 - - -9 - - - 2 - decl:) (:include - 1 - - 0 - - -14 - - - 2 - decl:)@] - - - - - 0 - - -31 - - 0 @@ -3295,13 +3123,98 @@ 0 - -36 + -30 2 decl:)@] + + + 0 + + -31 + + + + 17 + 2 + [@#include <(:link + 1 + + 0 + + -32 + + + 2 + :)> #include <(:link + 1 + + 0 + + -33 + + + 2 + :)> #include <(:link + 1 + + 0 + + -34 + + + 2 + :)> #include <(:link + 1 + + 0 + + -35 + + + 2 + :)> #include <(:link + 1 + + 0 + + -36 + + + 2 + :)> #include <(:link + 1 + + 0 + + -11 + + + 2 + :)> #include <(:link + 1 + + 0 + + -6 + + + 2 + :)> #include <(:link + 1 + + 0 + + -37 + + + 2 + :)>@] + + 0 @@ -3310,7 +3223,18 @@ - 0 + 3 + 2 + [@(:include + 1 + + 0 + + -5 + + + 2 + decl:)@] @@ -3321,7 +3245,36 @@ - 0 + 7 + 2 + [@(:include + 1 + + 0 + + -7 + + + 2 + def:) (:include + 1 + + 0 + + -24 + + + 2 + decl:) (:include + 1 + + 0 + + -26 + + + 2 + decl:)@] @@ -3332,7 +3285,18 @@ - 0 + 3 + 2 + [@(:include + 1 + + 0 + + -23 + + + 2 + decl:)@] @@ -3343,7 +3307,36 @@ - 0 + 7 + 2 + [@(:include + 1 + + 0 + + -5 + + + 2 + def:) (:include + 1 + + 0 + + -25 + + + 2 + decl:) (:include + 1 + + 0 + + -9 + + + 2 + decl:)@] @@ -3354,7 +3347,18 @@ - 0 + 3 + 2 + [@(:include + 1 + + 0 + + -19 + + + 2 + decl:)@] @@ -3434,7 +3438,18 @@ - 0 + 3 + 2 + [@template <class Tag,class T> class (:link + 1 + + 0 + + -5 + + + 2 + :);@] @@ -3445,18 +3460,7 @@ - 3 - 2 - [@typedef ---unspecified--- (:link - 1 - - 0 - - -6 - - - 2 - :);@] + 0 @@ -3469,7 +3473,7 @@ 3 2 - [@(:link + [@class 1 0 @@ -3478,7 +3482,7 @@ 2 - mod="m":)();@] + ;@] @@ -3502,16 +3506,7 @@ 5 2 - [@(:link - 1 - - 0 - - -6 - - - 2 - :) (:link + [@template <class E, class Tag, class T> E const & (:link 1 0 @@ -3520,7 +3515,16 @@ 2 - :)();@] + |operator<<:)( E const & x, (:link + 1 + + 0 + + -5 + + + 2 + :)<Tag,T> const & v );@] @@ -3542,27 +3546,7 @@ - 5 - 2 - [@template <class E, class Tag, class T> E const & (:link - 1 - - 0 - - -11 - - - 2 - |operator<<:)( E const & x, (:link - 1 - - 0 - - -39 - - - 2 - :)<Tag,T> const & v );@] + 0 @@ -3595,9 +3579,9 @@ - 5 + 3 2 - [@void (:link + [@virtual char const * (:link 1 0 @@ -3606,16 +3590,7 @@ 2 - :)( (:link - 1 - - 0 - - -6 - - - 2 - :) const & ep ); + mod="m":)() const throw();@] @@ -3626,7 +3601,27 @@ - 0 + 5 + 2 + [@class (:link + 1 + + 0 + + -15 + + + 2 + :): public std::exception public boost:: + 1 + + 0 + + -7 + + + 2 + { ---unspecified--- };@] @@ -3637,7 +3632,18 @@ - 0 + 3 + 2 + [@typedef ---unspecified--- (:link + 1 + + 0 + + -16 + + + 2 + :);@] @@ -3670,36 +3676,9 @@ - 9 + 5 2 - [@typedef (:link - 1 - - 0 - - -39 - - - 2 - :)<struct tag_throw_function,char const *> throw_function; typedef (:link - 1 - - 0 - - -39 - - - 2 - :)<struct tag_throw_file,char const *> throw_file; typedef (:link - 1 - - 0 - - -39 - - - 2 - :)<struct tag_throw_line,int> throw_line; #define (:link + [@#ifdef BOOST_NO_EXCEPTIONS void (:link 1 0 @@ -3708,7 +3687,38 @@ 2 - :)\ ::boost::throw_function(BOOST_CURRENT_FUNCTION) <<\ ::boost::throw_file(__FILE__) <<\ ::boost::throw_line((int)__LINE__)@] + :)( std::exception const & e ); // user defined #else template <class E> void (:link + 1 + + 0 + + -19 + + + 2 + :)( E const & e ); #endif@] + + + + + 0 + + -26 + + + + 3 + 2 + [@template <class T> ---unspecified--- (:link + 1 + + 0 + + -26 + + + 2 + :)( T const & e );@] @@ -3730,36 +3740,7 @@ - 7 - 2 - [@template <class E, class Tag1, class T1, ..., class TagN, class TN> E const & (:link - 1 - - 0 - - -21 - - - 2 - |operator<<:)( E const & x, (:link http://www.boost.org/libs/tuple/doc/tuple_users_guide.html|tuple:)< (:link - 1 - - 0 - - -39 - - - 2 - :)<Tag1,T1>, ..., (:link - 1 - - 0 - - -39 - - - 2 - :)<TagN,TN> > const & v );@] + 0 @@ -3770,9 +3751,9 @@ - 3 + 7 2 - [@class + [@template <class E, class Tag1, class T1, ..., class TagN, class TN> E const & (:link 1 0 @@ -3781,7 +3762,25 @@ 2 - ;@] + |operator<<:)( E const & x, (:link http://www.boost.org/libs/tuple/doc/tuple_users_guide.html|tuple:)< (:link + 1 + + 0 + + -5 + + + 2 + :)<Tag1,T1>, ..., (:link + 1 + + 0 + + -5 + + + 2 + :)<TagN,TN> > const & v );@] @@ -3792,7 +3791,18 @@ - 0 + 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 + 1 + + 0 + + -23 + + + 2 + :)( E const & x );@] @@ -3803,7 +3813,18 @@ - 0 + 3 + 2 + [@template <class T> ---unspecified--- (:link + 1 + + 0 + + -24 + + + 2 + :)( T const & x );@] @@ -3814,9 +3835,36 @@ - 7 + 9 2 - [@(:link + [@typedef (:link + 1 + + 0 + + -5 + + + 2 + :)<struct tag_throw_function,char const *> throw_function; typedef (:link + 1 + + 0 + + -5 + + + 2 + :)<struct tag_throw_file,char const *> throw_file; typedef (:link + 1 + + 0 + + -5 + + + 2 + :)<struct tag_throw_line,int> throw_line; #define (:link 1 0 @@ -3825,47 +3873,7 @@ 2 - mod="m":)(); (:link - 1 - - 0 - - -25 - - - 2 - mod="m":)( (:link - 1 - - 0 - - -22 - - - 2 - :) const & x );@] - - - - - 0 - - -26 - - - - 0 - - - - - 0 - - -27 - - - - 0 + :)\ ::boost::throw_function(BOOST_CURRENT_FUNCTION) <<\ ::boost::throw_file(__FILE__) <<\ ::boost::throw_line((int)__LINE__)@] @@ -3876,7 +3884,27 @@ - 0 + 5 + 2 + [@template <class T> (:link + 1 + + 0 + + -16 + + + 2 + :) (:link + 1 + + 0 + + -28 + + + 2 + :)( T const & e );@] @@ -3887,7 +3915,58 @@ - 0 + 5 + 2 + [@void (:link + 1 + + 0 + + -29 + + + 2 + :)( (:link + 1 + + 0 + + -16 + + + 2 + :) const & ep ); + + + + + 0 + + -27 + + + + 5 + 2 + [@(:link + 1 + + 0 + + -16 + + + 2 + :) (:link + 1 + + 0 + + -27 + + + 2 + :)();@] @@ -3897,30 +3976,19 @@ -30 - - 0 - - - - - 0 - - -31 - - 3 2 - [@template <class T> ---unspecified--- (:link + [@template <class T> std::string (:link 1 0 - -31 + -30 2 - :)( T const & e );@] + :)( T const & x );@] @@ -3934,6 +4002,17 @@ 0 + + + 0 + + -31 + + + + 0 + + 0 @@ -3942,27 +4021,7 @@ - 5 - 2 - [@template <class T> (:link - 1 - - 0 - - -6 - - - 2 - :) (:link - 1 - - 0 - - -33 - - - 2 - :)( T const & e );@] + 0 @@ -3973,27 +4032,7 @@ - 5 - 2 - [@#ifdef BOOST_NO_EXCEPTIONS void (:link - 1 - - 0 - - -34 - - - 2 - :)( std::exception const & e ); // user defined #else template <class E> void (:link - 1 - - 0 - - -34 - - - 2 - :)( E const & e ); #endif@] + 0 @@ -4015,18 +4054,7 @@ - 3 - 2 - [@template <class T> std::string (:link - 1 - - 0 - - -36 - - - 2 - :)( T const & x );@] + 0 @@ -4037,18 +4065,7 @@ - 3 - 2 - [@template <class T> ---unspecified--- (:link - 1 - - 0 - - -37 - - - 2 - :)( T const & x );@] + 0 @@ -4059,18 +4076,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 - 1 - - 0 - - -38 - - - 2 - :)( E const & x );@] + 0 @@ -4081,18 +4087,7 @@ - 3 - 2 - [@template <class Tag,class T> class (:link - 1 - - 0 - - -39 - - - 2 - :);@] + 0 @@ -4105,7 +4100,7 @@ 3 2 - [@virtual char const * (:link + [@(:link 1 0 @@ -4114,7 +4109,7 @@ 2 - mod="m":)() const throw();@] + mod="m":)();@] @@ -4125,27 +4120,7 @@ - 5 - 2 - [@class (:link - 1 - - 0 - - -41 - - - 2 - :): public std::exception public boost:: - 1 - - 0 - - -22 - - - 2 - { ---unspecified--- };@] + 0 @@ -4156,7 +4131,36 @@ - 0 + 7 + 2 + [@(:link + 1 + + 0 + + -42 + + + 2 + mod="m":)(); (:link + 1 + + 0 + + -42 + + + 2 + mod="m":)( (:link + 1 + + 0 + + -7 + + + 2 + :) const & x );@] @@ -4181,9 +4185,117 @@ - 1 + 25 2 - (:auto !!:) !!!Synopsis (:include synopsis:) + (: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 + + -5 + + + 2 + :)<Tag,T> can be passed to (:link + 1 + + 0 + + -9 + + + 2 + |operator<<:) to be stored in objects of type boost::(:link + 1 + + 0 + + -7 + + + 2 + :). !!!!Note: The header <(:link + 1 + + 0 + + -33 + + + 2 + :)> provides a declaration of the (:link + 1 + + 0 + + -5 + + + 2 + :) template, which is sufficient for the purpose of typedefing an instance for specific Tag and T, like this: [@#include <(:link + 1 + + 0 + + -33 + + + 2 + :)> typedef boost::(:link + 1 + + 0 + + -5 + + + 2 + :)<struct tag_errno,int> errno_info;@] Of course, to actually add an (:link + 1 + + 0 + + -5 + + + 2 + :) object to (:link + 1 + + 0 + + -7 + + + 2 + mod="p":) using (:link + 1 + + 0 + + -9 + + + 2 + |operator<<:), or to retrieve it using (:link + 1 + + 0 + + -23 + + + 2 + :), you must first #include <(:link + 1 + + 0 + + -36 + + + 2 + :)>. @@ -4194,45 +4306,9 @@ - 9 + 1 2 - (:auto !!!:) (:include synopsis:) The (:link - 1 - - 0 - - -6 - - - 2 - :) type can be used to refer to a copy of an exception object. It is Default Constructible, Copy Constructible, Assignable and Equality Comparable; (:link - 1 - - 0 - - -6 - - - 2 - :)'s operations do not throw. Two instances of (:link - 1 - - 0 - - -6 - - - 2 - :) are equivalent and compare equal if and only if they refer to the same exception. The default constructor of (:link - 1 - - 0 - - -6 - - - 2 - :) produces the null value of the type. The null value is equivalent only to itself. + (:auto !!:) !!!Synopsis (:include synopsis:) @@ -4243,18 +4319,90 @@ - 3 + 19 2 - (:auto !!!:) (:include decl:) !!!!Effects: Frees all resources associated with a boost::(:link + (:auto !!!:) (:include synopsis:) Class boost::(:link 1 0 - -22 + -7 2 - :) object. !!!!Throws: Nothing. + :) 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 + + -7 + + + 2 + :) can store data of arbitrary types, using the (:link + 1 + + 0 + + -5 + + + 2 + :) wrapper and (:link + 1 + + 0 + + -9 + + + 2 + |operator<<:). To retrieve data from a boost::(:link + 1 + + 0 + + -7 + + + 2 + :) object, use the (:link + 1 + + 0 + + -23 + + + 2 + :) function template. (:include + 1 + + 0 + + -42 + + + 2 + :) (:include + 1 + + 0 + + -40 + + + 2 + :) (:include + 1 + + 0 + + -14 + + + 2 + :) @@ -4265,9 +4413,99 @@ - 1 + 21 2 - (:auto !!:) !!!Synopsis (:include synopsis:) + (: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 + + -7 + + + 2 + :), and free the file_read function from the burden of storing the file name in exceptions it throws: [@#include <(:link + 1 + + 0 + + -31 + + + 2 + :)> #include <stdio.h> #include <errno.h> typedef boost::(:link + 1 + + 0 + + -5 + + + 2 + :)<struct tag_errno,int> errno_info; class file_read_error: public boost::(:link + 1 + + 0 + + -7 + + + 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 + + -31 + + + 2 + :)> #include <boost/shared_ptr.hpp> #include <stdio.h> #include <string> typedef boost::(:link + 1 + + 0 + + -5 + + + 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 + + -7 + + + 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 + + -7 + + + 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 + + -7 + + + 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 + + -23 + + + 2 + :). @@ -4277,248 +4515,6 @@ -9 - - 29 - 2 - (:auto !!!:) (:include synopsis:) !!!!Requirements: The (:link - 1 - - 0 - - -9 - - - 2 - :) function must not be called outside of a catch block. !!!!Returns: * An (:link - 1 - - 0 - - -6 - - - 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 - - -6 - - - 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 - - -9 - - - 2 - :) refer to the same exception object. * Correct implementation of (:link - 1 - - 0 - - -9 - - - 2 - :) may require compiler support, unless (:link - 1 - - 0 - - -31 - - - 2 - :) was used at the time the currently handled exception object was passed to throw. If (:link - 1 - - 0 - - -31 - - - 2 - :) was not used, and if the compiler does not provide the necessary support, then (:link - 1 - - 0 - - -9 - - - 2 - :) may return an (:link - 1 - - 0 - - -6 - - - 2 - :) that refers to an instance of (:link - 1 - - 0 - - -41 - - - 2 - :). In this case, if the original exception object derives from boost::(:link - 1 - - 0 - - -22 - - - 2 - :), then the boost::(:link - 1 - - 0 - - -22 - - - 2 - :) sub-object of the (:link - 1 - - 0 - - -41 - - - 2 - :) object is initialized by the boost::(:link - 1 - - 0 - - -22 - - - 2 - :) copy constructor. - - - - - 0 - - -10 - - - - 21 - 2 - (:auto !!:) Class boost::(:link - 1 - - 0 - - -22 - - - 2 - :) provides a virtual member function (:link - 1 - - 0 - - -40 - - - 2 - mod="m":), with a signature similar to the familiar std::exception::what function. The default implementation returns a string value that 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 - - -5 - - - 2 - :)> #include <iostream> void f(); //throws unknown types that derive from boost::(:link - 1 - - 0 - - -22 - - - 2 - :). void g() { try { f(); } catch( boost::(:link - 1 - - 0 - - -22 - - - 2 - :) & e ) { std::cerr << e.(:link - 1 - - 0 - - -40 - - - 2 - mod="m":)(); } }@] The (:link - 1 - - 0 - - -40 - - - 2 - mod="m":) member function iterates over all data objects stored in the boost::(:link - 1 - - 0 - - -22 - - - 2 - :) through (:link - 1 - - 0 - - -11 - - - 2 - |operator<<:). The returned string is constructed by converting each data object to string and then concatenating these strings together. When the (:link - 1 - - 0 - - -39 - - - 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. - - - - - 0 - - -11 - - 7 2 @@ -4527,7 +4523,7 @@ 0 - -22 + -7 2 @@ -4536,7 +4532,7 @@ 0 - -22 + -7 2 @@ -4545,7 +4541,7 @@ 0 - -39 + -5 2 @@ -4556,7 +4552,92 @@ 0 - -12 + -10 + + + + 17 + 2 + (:auto !!!:) The following example demonstrates how errno can be stored in exception objects using Boost Exception: [@#include <(:link + 1 + + 0 + + -31 + + + 2 + :)> #include <errno.h> #include <iostream> typedef boost::(:link + 1 + + 0 + + -5 + + + 2 + :)<struct tag_errno,int> errno_info; //(1) class my_error: public boost::(:link + 1 + + 0 + + -7 + + + 2 + :), public std::exception { }; //(2) void f() { throw my_error() << errno_info(errno); //(3) } @] First, we instantiate the (:link + 1 + + 0 + + -5 + + + 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 + + -7 + + + 2 + :). Finally, (3) illustrates how the typedef from (1) can be used with (:link + 1 + + 0 + + -9 + + + 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 + + -23 + + + 2 + :)<errno_info>(x) ) std::cerr << "Error code: " << *err; } }@] The (:link + 1 + + 0 + + -23 + + + 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 + + -11 @@ -4565,6 +4646,64 @@ (:auto !!:) !!!Synopsis (:include synopsis:) + + + 0 + + -12 + + + + 11 + 2 + (:auto !!!:) Here is how cloning can be enabled in a throw-expression (15.1): [@#include <(:link + 1 + + 0 + + -36 + + + 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 + + -7 + + + 2 + :) { }; void file_read( FILE * f, void * buffer, size_t size ) { if( size!=fread(buffer,1,size,f) ) throw boost::(:link + 1 + + 0 + + -26 + + + 2 + :)(file_read_error()) << errno_info(errno); }@] Of course, (:link + 1 + + 0 + + -26 + + + 2 + :) may be used with any exception type; there is no requirement that it should derive from boost::(:link + 1 + + 0 + + -7 + + + 2 + :). + + 0 @@ -4573,9 +4712,54 @@ - 1 + 11 2 - (:auto !!:) !!!Synopsis (:include synopsis:) + (:auto !!:) All exception types that derive from boost::(:link + 1 + + 0 + + -7 + + + 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 + + -7 + + + 2 + :) at the time of the throw, or at a later time. (:include + 1 + + 0 + + -10 + + + 2 + :) (:include + 1 + + 0 + + -8 + + + 2 + :) (:include + 1 + + 0 + + -39 + + + 2 + :) @@ -4586,9 +4770,72 @@ - 1 + 15 2 - (:auto !!!:) (:include synopsis:) !!!!Precondition: ep shall not be null. !!!!Throws: The exception to which ep refers. + (:auto !!!:) (:include decl:) !!!!Returns: A string representation of all data stored in the boost::(:link + 1 + + 0 + + -7 + + + 2 + :) object by the (:link + 1 + + 0 + + -9 + + + 2 + |operator<<:) function. See "(:link + 1 + + 0 + + -21 + + + 2 + mod="w":)" for details. !!!!Throws: Nothing. !!!!Notes: *The return value remains valid until the exception object from which it was obtained is destroyed or modified. *The header (:link + 1 + + 0 + + -32 + + + 2 + :) provides a namespace-scope function (:link + 1 + + 0 + + -30 + + + 2 + :) which works with any exception. If its argument can be converted to boost::(:link + 1 + + 0 + + -7 + + + 2 + :), the output from (:link + 1 + + 0 + + -14 + + + 2 + :) is combined with other implementation-defined information into a std::string. @@ -4599,126 +4846,27 @@ - 27 + 5 2 - (:auto !!:) Some exception hierarchies can not be modified to make boost::(:link + (:auto !!!:) (:include synopsis:) This type is used by the (:link 1 0 - -22 + -16 2 - :) a base type. In this case, the (:link + :) support in Boost Exception. Please see (:link 1 0 - -37 + -27 2 - :) function template can be used to make exception objects derive from boost::(:link - 1 - - 0 - - -22 - - - 2 - :) anyway. Here is an example: [@#include <(:link - 1 - - 0 - - -5 - - - 2 - :)> #include <stdexcept> typedef boost::(:link - 1 - - 0 - - -39 - - - 2 - :)<struct tag_std_range_min,size_t> std_range_min; typedef boost::(:link - 1 - - 0 - - -39 - - - 2 - :)<struct tag_std_range_max,size_t> std_range_max; typedef boost::(:link - 1 - - 0 - - -39 - - - 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 - - -37 - - - 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 - - -37 - - - 2 - :)<T> gets us an object of ''unspecified type'' which is guaranteed to derive from both boost::(:link - 1 - - 0 - - -22 - - - 2 - :) and T. This makes it possible to use (:link - 1 - - 0 - - -11 - - - 2 - |operator<<:) 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 - - -22 - - - 2 - :) &, so that (:link - 1 - - 0 - - -17 - - - 2 - |more information can be added to the exception at a later time:). + :). @@ -4729,9 +4877,45 @@ - 1 + 9 2 - (:auto !!:) !!!Synopsis (:include synopsis:) + (:auto !!!:) (:include synopsis:) The (:link + 1 + + 0 + + -16 + + + 2 + :) type can be used to refer to a copy of an exception object. It is Default Constructible, Copy Constructible, Assignable and Equality Comparable; (:link + 1 + + 0 + + -16 + + + 2 + :)'s operations do not throw. Two instances of (:link + 1 + + 0 + + -16 + + + 2 + :) are equivalent and compare equal if and only if they refer to the same exception. The default constructor of (:link + 1 + + 0 + + -16 + + + 2 + :) produces the null value of the type. The null value is equivalent only to itself. @@ -4742,54 +4926,7 @@ - 11 - 2 - (:auto !!:) All exception types that derive from boost::(:link - 1 - - 0 - - -22 - - - 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 - - -22 - - - 2 - :) at the time of the throw, or at a later time. (:include - 1 - - 0 - - -27 - - - 2 - :) (:include - 1 - - 0 - - -26 - - - 2 - :) (:include - 1 - - 0 - - -35 - - - 2 - :) + 0 @@ -4800,9 +4937,54 @@ - 1 + 11 2 - (:auto !!:) !!!Synopsis (:include synopsis:) + (: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 + + -26 + + + 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 + + -19 + + + 2 + :) are guaranteed to derive from boost::(:link + 1 + + 0 + + -7 + + + 2 + :) and to support cloning. (:include + 1 + + 0 + + -12 + + + 2 + :) (:include + 1 + + 0 + + -41 + + + 2 + :) @@ -4813,445 +4995,63 @@ - 7 + 13 2 - (:auto !!!:) (:include synopsis:) This macro is designed to be used with (:link + (:auto !!!:) (:include synopsis:) !!!!Requirements: E must derive publicly from std::exception. !!!!Effects: * If BOOST_NO_EXCEPTIONS is not defined, boost::(:link 1 0 - -11 + -19 2 - |operator<<:) when throwing a boost::(:link + :)(e) is equivalent to throw boost::(:link 1 0 - -22 + -26 2 - :), to store information about the location of the throw statement. It can be chained with other (:link + :)(boost::(:link 1 0 - -39 + -24 2 - mod="p":) in a single throw expression. - - - - - 0 - - -20 - - - - 0 - - - - - 0 - - -21 - - - - 5 - 2 - (:auto !!!:) (:include synopsis:) !!!!Requirements: E must be boost::(:link + :)(e)), unless BOOST_EXCEPTION_DISABLE is defined, in which case boost::(:link 1 0 - -22 + -19 2 - :), or a type that derives (indirectly) from boost::(:link + :)(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 1 0 - -22 + -19 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 - - -22 - - - - 19 - 2 - (:auto !!!:) (:include synopsis:) Class boost::(:link + are allowed to assume that the function never returns; therefore, if the user-defined 1 0 - -22 + -19 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 - - -22 - - - 2 - :) can store data of arbitrary types, using the (:link - 1 - - 0 - - -39 - - - 2 - :) wrapper and (:link - 1 - - 0 - - -11 - - - 2 - |operator<<:). To retrieve data from a boost::(:link - 1 - - 0 - - -22 - - - 2 - :) object, use the (:link - 1 - - 0 - - -38 - - - 2 - :) function template. (:include - 1 - - 0 - - -25 - - - 2 - :) (:include - 1 - - 0 - - -7 - - - 2 - :) (:include - 1 - - 0 - - -40 - - - 2 - :) - - - - - 0 - - -23 - - - - 37 - 2 - (:auto !!!:) When you catch an exception, you can call (:link - 1 - - 0 - - -9 - - - 2 - :) to get an (:link - 1 - - 0 - - -6 - - - 2 - :) object: [@#include <(:link - 1 - - 0 - - -30 - - - 2 - :)> #include <boost/thread.hpp> #include <boost/bind.hpp> void do_work(); //throws cloning-enabled boost::(:link - 1 - - 0 - - -22 - - - 2 - :)s void worker_thread( boost::(:link - 1 - - 0 - - -6 - - - 2 - :) & error ) { try { do_work(); error = boost::(:link - 1 - - 0 - - -6 - - - 2 - :)(); } catch( ... ) { error = boost::(:link - 1 - - 0 - - -9 - - - 2 - :)(); } }@] In the above example, note that (:link - 1 - - 0 - - -9 - - - 2 - :) captures the original type of the exception object. The exception can be thrown again using the (:link - 1 - - 0 - - -14 - - - 2 - :) function: [@// ...continued void work() { boost::(:link - 1 - - 0 - - -6 - - - 2 - :) error; boost::(:link http://www.boost.org/doc/html/boost/thread.html|thread:) t( boost::(:link http://www.boost.org/libs/bind/bind.html|bind:)(worker_thread,boost::(:link http://www.boost.org/doc/html/ref.html|ref:)(error)) ); t.(:link http://www.boost.org/doc/html/boost/thread.html|join:)(); if( error ) boost::(:link - 1 - - 0 - - -14 - - - 2 - :)(error); }@] Note that (:link - 1 - - 0 - - -9 - - - 2 - :) could fail to copy the original exception object in the following cases: * if there is not enough memory, in which case the returned (:link - 1 - - 0 - - -6 - - - 2 - :) points to an instance of std::bad_alloc, or * if (:link - 1 - - 0 - - -31 - - - 2 - :) was not used in the throw-expression passed to the original throw statement and the current implementation does not have the necessary compiler-specific support to copy the exception automatically, in which case the returned (:link - 1 - - 0 - - -6 - - - 2 - :) points to an instance of (:link - 1 - - 0 - - -41 - - - 2 - :). Regardless, the use of (:link - 1 - - 0 - - -9 - - - 2 - :) and (:link - 1 - - 0 - - -14 - - - 2 - :) in the above examples is well-formed. - - - - - 0 - - -24 - - - - 11 - 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 - - -31 - - - 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 - - -34 - - - 2 - :) are guaranteed to derive from boost::(:link - 1 - - 0 - - -22 - - - 2 - :) and to support cloning. (:include - 1 - - 0 - - -29 - - - 2 - :) (:include - 1 - - 0 - - -23 - - - 2 - :) - - - - - 0 - - -25 - - - - 7 - 2 - (:auto !!!:) (:include decl:) !!!!Effects: * Default constructor: initializes an empty boost::(:link - 1 - - 0 - - -22 - - - 2 - :) object. * Copy constructor: initializes a boost::(:link - 1 - - 0 - - -22 - - - 2 - :) object which shares with x all data added through (:link - 1 - - 0 - - -11 - - - 2 - |operator<<:), including data that is added at a future time. !!!!Throws: Nothing. + returns, the behavior is undefined. @@ -5264,110 +5064,146 @@ 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 + (: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 - -22 + -16 2 - :), and free the file_read function from the burden of storing the file name in exceptions it throws: [@#include <(:link + :) support in Boost Exception. For example: [@class my_exception: public std::exception { }; .... throw boost::(:link 1 0 - -5 + -26 2 - :)> #include <stdio.h> #include <errno.h> typedef boost::(:link + :)(my_exception());@] Unless (:link 1 0 - -39 + -26 2 - :)<struct tag_errno,int> errno_info; class file_read_error: public boost::(:link + :) is called at the time an exception object is used in a throw-expression, an attempt to copy it using (:link 1 0 - -22 + -27 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 + :) may return an (:link 1 0 - -5 + -16 2 - :)> #include <boost/shared_ptr.hpp> #include <stdio.h> #include <string> typedef boost::(:link + :) which refers to an instance of (:link 1 0 - -39 + -15 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 + :). See (:link 1 0 - -22 + -27 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 + :) for details. !!!!Note: Instead of using the throw keyword directly, it is preferable to call boost::(:link 1 0 - -22 + -19 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 + :). This is guaranteed to throw an exception that derives from boost::(:link 1 0 - -22 + -7 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 + :) and supports the (:link 1 0 - -38 + -16 2 - :). + :) functionality. 0 - -27 + -20 - 17 + 27 2 - (:auto !!!:) The following example demonstrates how errno can be stored in exception objects using Boost Exception: [@#include <(:link + (:auto !!:) Some exception hierarchies can not be modified to make boost::(:link + 1 + + 0 + + -7 + + + 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 + + -7 + + + 2 + :) anyway. Here is an example: [@#include <(:link + 1 + + 0 + + -31 + + + 2 + :)> #include <stdexcept> typedef boost::(:link 1 0 @@ -5376,70 +5212,333 @@ 2 - :)> #include <errno.h> #include <iostream> typedef boost::(:link + :)<struct tag_std_range_min,size_t> std_range_min; typedef boost::(:link 1 0 - -39 + -5 2 - :)<struct tag_errno,int> errno_info; //(1) class my_error: public boost::(:link + :)<struct tag_std_range_max,size_t> std_range_max; typedef boost::(:link 1 0 - -22 + -5 2 - :), public std::exception { }; //(2) void f() { throw my_error() << errno_info(errno); //(3) } @] First, we instantiate the (:link + :)<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 - -39 + -24 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 + :)(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 - -22 + -24 2 - :). Finally, (3) illustrates how the typedef from (1) can be used with (:link + :)<T> gets us an object of ''unspecified type'' which is guaranteed to derive from both boost::(:link 1 0 - -11 + -7 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 + :) and T. This makes it possible to use (:link 1 0 - -38 + -9 2 - :)<errno_info>(x) ) std::cerr << "Error code: " << *err; } }@] The (:link + |operator<<:) 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 - -38 + -7 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. + :) &, so that (:link + 1 + + 0 + + -13 + + + 2 + |more information can be added to the exception at a later time:). + + + + + 0 + + -21 + + + + 21 + 2 + (:auto !!:) Class boost::(:link + 1 + + 0 + + -7 + + + 2 + :) provides a virtual member function (:link + 1 + + 0 + + -14 + + + 2 + mod="m":), with a signature similar to the familiar std::exception::what function. The default implementation returns a string value that 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 + + -31 + + + 2 + :)> #include <iostream> void f(); //throws unknown types that derive from boost::(:link + 1 + + 0 + + -7 + + + 2 + :). void g() { try { f(); } catch( boost::(:link + 1 + + 0 + + -7 + + + 2 + :) & e ) { std::cerr << e.(:link + 1 + + 0 + + -14 + + + 2 + mod="m":)(); } }@] The (:link + 1 + + 0 + + -14 + + + 2 + mod="m":) member function iterates over all data objects stored in the boost::(:link + 1 + + 0 + + -7 + + + 2 + :) through (:link + 1 + + 0 + + -9 + + + 2 + |operator<<:). The returned string is constructed by converting each data object to string and then concatenating these strings together. When the (:link + 1 + + 0 + + -5 + + + 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. + + + + + 0 + + -22 + + + + 5 + 2 + (:auto !!!:) (:include synopsis:) !!!!Requirements: E must be boost::(:link + 1 + + 0 + + -7 + + + 2 + :), or a type that derives (indirectly) from boost::(:link + 1 + + 0 + + -7 + + + 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 + + -23 + + + + 9 + 2 + (:auto !!!:) (:include synopsis:) !!!!Requirements: * ErrorInfo must be an instance of the (:link + 1 + + 0 + + -5 + + + 2 + :) template. * E must be polymorphic. * The + 1 + + 0 + + -23 + + + 2 + function must not be called outside of a catch block. !!!!Returns: * If dynamic_cast<boost::(:link + 1 + + 0 + + -7 + + + 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 + + -9 + + + 2 + |operator<<:) to store values in exception objects.) The shared_ptr is valid even after x has been destroyed. !!!!Throws: Nothing. + + + + + 0 + + -24 + + + + 5 + 2 + (:auto !!!:) (:include synopsis:) !!!!Requirements: T must be a class with an accessible no-throw copy constructor as per (15.5.1). !!!!Returns: * If T derives from boost::(:link + 1 + + 0 + + -7 + + + 2 + :), the returned object is of type T and is a copy of x. * Otherwise, the returned object is of an unspecified type that derives publicly from both T and boost::(:link + 1 + + 0 + + -7 + + + 2 + :). The T sub-object is initialized from x by the T copy constructor. !!!!Throws: Nothing. + + + + + 0 + + -25 + + + + 7 + 2 + (:auto !!!:) (:include synopsis:) This macro is designed to be used with (:link + 1 + + 0 + + -9 + + + 2 + |operator<<:) when throwing a boost::(:link + 1 + + 0 + + -7 + + + 2 + :), to store information about the location of the throw statement. It can be chained with other (:link + 1 + + 0 + + -5 + + + 2 + mod="p":) in a single throw expression. @@ -5450,9 +5549,18 @@ - 1 + 3 2 - (:auto !!:) !!!Synopsis (:include synopsis:) + (:auto !!!:) (:include synopsis:) !!!!Effects: As if try { throw e; } catch( ... ) { return (:link + 1 + + 0 + + -27 + + + 2 + :)(); } @@ -5463,54 +5571,148 @@ - 11 + 1 2 - (:auto !!!:) Here is how cloning can be enabled in a throw-expression (15.1): [@#include <(:link + (:auto !!!:) (:include synopsis:) !!!!Precondition: ep shall not be null. !!!!Throws: The exception to which ep refers. + + + + + 0 + + -27 + + + + 29 + 2 + (:auto !!!:) (:include synopsis:) !!!!Requirements: The (:link 1 0 - -12 + -27 2 - :)> #include <stdio.h> #include <errno.h> typedef boost::error_info<struct tag_errno,int> errno_info; class file_read_error: public boost::(:link + :) function must not be called outside of a catch block. !!!!Returns: * An (:link 1 0 - -22 + -16 2 - :) { }; void file_read( FILE * f, void * buffer, size_t size ) { if( size!=fread(buffer,1,size,f) ) throw boost::(:link + :) 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 - -31 + -16 2 - :)(file_read_error()) << errno_info(errno); }@] Of course, (:link + :) 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 - -31 + -27 2 - :) may be used with any exception type; there is no requirement that it should derive from boost::(:link + :) refer to the same exception object. * Correct implementation of (:link 1 0 - -22 + -27 2 - :). + :) may require compiler support, unless (:link + 1 + + 0 + + -26 + + + 2 + :) was used at the time the currently handled exception object was passed to throw. If (:link + 1 + + 0 + + -26 + + + 2 + :) was not used, and if the compiler does not provide the necessary support, then (:link + 1 + + 0 + + -27 + + + 2 + :) may return an (:link + 1 + + 0 + + -16 + + + 2 + :) that refers to an instance of (:link + 1 + + 0 + + -15 + + + 2 + :). In this case, if the original exception object derives from boost::(:link + 1 + + 0 + + -7 + + + 2 + :), then the boost::(:link + 1 + + 0 + + -7 + + + 2 + :) sub-object of the (:link + 1 + + 0 + + -15 + + + 2 + :) object is initialized by the boost::(:link + 1 + + 0 + + -7 + + + 2 + :) copy constructor. @@ -5521,112 +5723,27 @@ - 1 + 5 2 - (:auto !!:) !!!Synopsis (:include synopsis:) - - - - - 0 - - -31 - - - - 21 - 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 + (:auto !!!:) (:include synopsis:) !!!!Returns: Platform-specific diagnostic information about x. !!!!Notes: *If dynamic_cast<std::exception const *>(&x) is not null, the returned string includes the output from std::exception::what. *If dynamic_cast<boost::(:link 1 0 - -6 + -7 2 - :) support in Boost Exception. For example: [@class my_exception: public std::exception { }; .... throw boost::(:link + :) const *>(&x) is not null, the returned string includes the output from boost::(:link 1 0 - -31 + -14 2 - :)(my_exception());@] Unless (:link - 1 - - 0 - - -31 - - - 2 - :) is called at the time an exception object is used in a throw-expression, an attempt to copy it using (:link - 1 - - 0 - - -9 - - - 2 - :) may return an (:link - 1 - - 0 - - -6 - - - 2 - :) which refers to an instance of (:link - 1 - - 0 - - -41 - - - 2 - :). See (:link - 1 - - 0 - - -9 - - - 2 - :) for details. !!!!Note: Instead of using the throw keyword directly, it is preferable to call boost::(:link - 1 - - 0 - - -34 - - - 2 - :). This is guaranteed to throw an exception that derives from boost::(:link - 1 - - 0 - - -22 - - - 2 - :) and supports the (:link - 1 - - 0 - - -6 - - - 2 - :) functionality. + :). @@ -5642,6 +5759,19 @@ (:auto !!:) !!!Synopsis (:include synopsis:) + + + 0 + + -31 + + + + 1 + 2 + (:auto !!:) !!!Synopsis (:include synopsis:) + + 0 @@ -5650,18 +5780,9 @@ - 3 + 1 2 - (:auto !!!:) (:include synopsis:) !!!!Effects: As if try { throw e; } catch( ... ) { return (:link - 1 - - 0 - - -9 - - - 2 - :)(); } + (:auto !!:) !!!Synopsis (:include synopsis:) @@ -5672,63 +5793,9 @@ - 13 + 1 2 - (:auto !!!:) (:include synopsis:) !!!!Requirements: E must derive publicly from std::exception. !!!!Effects: * If BOOST_NO_EXCEPTIONS is not defined, boost::(:link - 1 - - 0 - - -34 - - - 2 - :)(e) is equivalent to throw boost::(:link - 1 - - 0 - - -31 - - - 2 - :)(boost::(:link - 1 - - 0 - - -37 - - - 2 - :)(e)), unless BOOST_EXCEPTION_DISABLE is defined, in which case boost::(:link - 1 - - 0 - - -34 - - - 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 - 1 - - 0 - - -34 - - - 2 - are allowed to assume that the function never returns; therefore, if the user-defined - 1 - - 0 - - -34 - - - 2 - returns, the behavior is undefined. + (:auto !!:) !!!Synopsis (:include synopsis:) @@ -5739,63 +5806,9 @@ - 13 + 1 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 - - -28 - - - 2 - :)> #include <boost/shared_ptr.hpp> #include <stdio.h> #include <string> #include <errno.h> typedef boost::(:link - 1 - - 0 - - -39 - - - 2 - :)<struct tag_file_name,std::string> file_name_info; typedef boost::(:link - 1 - - 0 - - -39 - - - 2 - :)<struct tag_function,char const *> function_info; typedef boost::(:link - 1 - - 0 - - -39 - - - 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 - - -22 - - - 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 - - -38 - - - 2 - :). + (:auto !!:) !!!Synopsis (:include synopsis:) @@ -5806,27 +5819,9 @@ - 5 + 1 2 - (:auto !!!:) (:include synopsis:) !!!!Returns: Platform-specific diagnostic information about x. !!!!Notes: *If dynamic_cast<std::exception const *>(&x) is not null, the returned string includes the output from std::exception::what. *If dynamic_cast<boost::(:link - 1 - - 0 - - -22 - - - 2 - :) const *>(&x) is not null, the returned string includes the output from boost::(:link - 1 - - 0 - - -40 - - - 2 - :). + (:auto !!:) !!!Synopsis (:include synopsis:) @@ -5837,27 +5832,9 @@ - 5 + 1 2 - (:auto !!!:) (:include synopsis:) !!!!Requirements: T must be a class with an accessible no-throw copy constructor as per (15.5.1). !!!!Returns: * If T derives from boost::(:link - 1 - - 0 - - -22 - - - 2 - :), the returned object is of type T and is a copy of x. * Otherwise, the returned object is of an unspecified type that derives publicly from both T and boost::(:link - 1 - - 0 - - -22 - - - 2 - :). The T sub-object is initialized from x by the T copy constructor. !!!!Throws: Nothing. + (:auto !!:) !!!Synopsis (:include synopsis:) @@ -5868,45 +5845,7 @@ - 9 - 2 - (:auto !!!:) (:include synopsis:) !!!!Requirements: * ErrorInfo must be an instance of the (:link - 1 - - 0 - - -39 - - - 2 - :) template. * E must be polymorphic. * The - 1 - - 0 - - -38 - - - 2 - function must not be called outside of a catch block. !!!!Returns: * If dynamic_cast<boost::(:link - 1 - - 0 - - -22 - - - 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 - - -11 - - - 2 - |operator<<:) to store values in exception objects.) The shared_ptr is valid even after x has been destroyed. !!!!Throws: Nothing. + 0 @@ -5917,18 +5856,9 @@ - 25 + 13 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 - - -39 - - - 2 - :)<Tag,T> can be passed to (: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 @@ -5937,206 +5867,251 @@ 2 - |operator<<:) to be stored in objects of type boost::(:link + :)> #include <boost/shared_ptr.hpp> #include <stdio.h> #include <string> #include <errno.h> typedef boost::(:link 1 0 - -22 + -5 2 - :). !!!!Note: The header <(:link + :)<struct tag_file_name,std::string> file_name_info; typedef boost::(:link 1 0 - -18 + -5 2 - :)> provides a declaration of the (:link + :)<struct tag_function,char const *> function_info; typedef boost::(:link 1 0 - -39 + -5 2 - :) template, which is sufficient for the purpose of typedefing an instance for specific Tag and T, like this: [@#include <(:link + :)<struct tag_errno,int> errno_info; typedef boost::tuple<function_info,errno_info> clib_failure; class file_open_error: public boost::(:link 1 0 - -18 + -7 2 - :)> typedef boost::(:link + :) { }; 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 - -39 - - - 2 - :)<struct tag_errno,int> errno_info;@] Of course, to actually add an (:link - 1 - - 0 - - -39 - - - 2 - :) object to (:link - 1 - - 0 - - -22 - - - 2 - mod="p":) using (:link - 1 - - 0 - - -11 - - - 2 - |operator<<:), or to retrieve it using (:link - 1 - - 0 - - -38 - - - 2 - :), you must first #include <(:link - 1 - - 0 - - -12 - - - 2 - :)>. - - - - - 0 - - -40 - - - - 15 - 2 - (:auto !!!:) (:include decl:) !!!!Returns: A string representation of all data stored in the boost::(:link - 1 - - 0 - - -22 - - - 2 - :) object by the (:link - 1 - - 0 - - -11 - - - 2 - |operator<<:) function. See "(:link - 1 - - 0 - - -10 - - - 2 - mod="w":)" for details. !!!!Throws: Nothing. !!!!Notes: *The return value remains valid until the exception object from which it was obtained is destroyed or modified. *The header (:link - 1 - - 0 - - -32 - - - 2 - :) provides a namespace-scope function (:link - 1 - - 0 - - -36 - - - 2 - :) which works with any exception. If its argument can be converted to boost::(:link - 1 - - 0 - - -22 - - - 2 - :), the output from (:link - 1 - - 0 - - -40 - - - 2 - :) is combined with other implementation-defined information into a std::string. - - - - - 0 - - -41 - - - - 5 - 2 - (:auto !!!:) (:include synopsis:) This type is used by the (:link - 1 - - 0 - - -6 - - - 2 - :) support in Boost Exception. Please see (:link - 1 - - 0 - - -9 + -23 2 :). + + + 0 + + -40 + + + + 3 + 2 + (:auto !!!:) (:include decl:) !!!!Effects: Frees all resources associated with a boost::(:link + 1 + + 0 + + -7 + + + 2 + :) object. !!!!Throws: Nothing. + + + + + 0 + + -41 + + + + 37 + 2 + (:auto !!!:) When you catch an exception, you can call (:link + 1 + + 0 + + -27 + + + 2 + :) to get an (:link + 1 + + 0 + + -16 + + + 2 + :) object: [@#include <(:link + 1 + + 0 + + -6 + + + 2 + :)> #include <boost/thread.hpp> #include <boost/bind.hpp> void do_work(); //throws cloning-enabled boost::(:link + 1 + + 0 + + -7 + + + 2 + :)s void worker_thread( boost::(:link + 1 + + 0 + + -16 + + + 2 + :) & error ) { try { do_work(); error = boost::(:link + 1 + + 0 + + -16 + + + 2 + :)(); } catch( ... ) { error = boost::(:link + 1 + + 0 + + -27 + + + 2 + :)(); } }@] In the above example, note that (:link + 1 + + 0 + + -27 + + + 2 + :) captures the original type of the exception object. The exception can be thrown again using the (:link + 1 + + 0 + + -29 + + + 2 + :) function: [@// ...continued void work() { boost::(:link + 1 + + 0 + + -16 + + + 2 + :) error; boost::(:link http://www.boost.org/doc/html/boost/thread.html|thread:) t( boost::(:link http://www.boost.org/libs/bind/bind.html|bind:)(worker_thread,boost::(:link http://www.boost.org/doc/html/ref.html|ref:)(error)) ); t.(:link http://www.boost.org/doc/html/boost/thread.html|join:)(); if( error ) boost::(:link + 1 + + 0 + + -29 + + + 2 + :)(error); }@] Note that (:link + 1 + + 0 + + -27 + + + 2 + :) could fail to copy the original exception object in the following cases: * if there is not enough memory, in which case the returned (:link + 1 + + 0 + + -16 + + + 2 + :) points to an instance of std::bad_alloc, or * if (:link + 1 + + 0 + + -26 + + + 2 + :) was not used in the throw-expression passed to the original throw statement and the current implementation does not have the necessary compiler-specific support to copy the exception automatically, in which case the returned (:link + 1 + + 0 + + -16 + + + 2 + :) points to an instance of (:link + 1 + + 0 + + -15 + + + 2 + :). Regardless, the use of (:link + 1 + + 0 + + -27 + + + 2 + :) and (:link + 1 + + 0 + + -29 + + + 2 + :) in the above examples is well-formed. + + 0 @@ -6145,7 +6120,36 @@ - 0 + 7 + 2 + (:auto !!!:) (:include decl:) !!!!Effects: * Default constructor: initializes an empty boost::(:link + 1 + + 0 + + -7 + + + 2 + :) object. * Copy constructor: initializes a boost::(:link + 1 + + 0 + + -7 + + + 2 + :) object which shares with x all data added through (:link + 1 + + 0 + + -9 + + + 2 + |operator<<:), including data that is added at a future time. !!!!Throws: Nothing. @@ -6214,7 +6218,9 @@ - 0 + 1 + 2 + !!!!Throws: std::bad_alloc, or any exception emitted by the T copy constructor. @@ -6236,9 +6242,7 @@ - 1 - 2 - !!!!Throws: std::bad_alloc, or any exception emitted by the T copy constructor. + 0 @@ -6329,6 +6333,17 @@ 0 + + + 0 + + -26 + + + + 0 + + 0 @@ -6348,9 +6363,7 @@ - 1 - 2 - !!!!Throws: std::bad_alloc, or any exception emitted by T1..TN copy constructor. + 0 @@ -6361,7 +6374,9 @@ - 0 + 1 + 2 + !!!!Throws: std::bad_alloc, or any exception emitted by T1..TN copy constructor. @@ -6397,28 +6412,6 @@ 0 - - - 0 - - -26 - - - - 0 - - - - - 0 - - -27 - - - - 0 - - 0 @@ -6441,6 +6434,17 @@ 0 + + + 0 + + -27 + + + + 0 + + 0 @@ -6456,7 +6460,7 @@ 0 - -31 + -32 @@ -6467,7 +6471,7 @@ 0 - -32 + -31 @@ -6606,9 +6610,18 @@ - 1 + 3 2 - [@(:include api:)@] + `#include <(:link + 1 + + 0 + + -36 + + + 2 + :)> [@namespace boost { (:include def pre_indent="4":) }@] @@ -6621,16 +6634,16 @@ 3 2 - `#include <(:link + [@#include <(:link 1 0 - -30 + -34 2 - :)> [@namespace boost { (:include decl pre_indent="4":) }@] + :)> namespace boost { (:include api pre_indent="4":) }@] @@ -6641,7 +6654,18 @@ - 0 + 3 + 2 + `#include <(:link + 1 + + 0 + + -34 + + + 2 + :)> [@namespace boost { (:include def pre_indent="4":) }@] @@ -6652,18 +6676,7 @@ - 3 - 2 - [@#include <(:link - 1 - - 0 - - -16 - - - 2 - :)> #include <exception> namespace boost { (:include api pre_indent="4":) }@] + 0 @@ -6681,11 +6694,11 @@ 0 - -30 + -36 2 - :)> [@namespace boost { (:include decl pre_indent="4":) }@] + :)>\\ [@namespace boost { (:include decl pre_indent="4":) }@] @@ -6707,18 +6720,9 @@ - 3 + 1 2 - `#include <(:link - 1 - - 0 - - -12 - - - 2 - :)>\\ [@namespace boost { (:include decl pre_indent="4":) }@] + [@#include <boost/tuple/tuple.hpp> namespace boost { (:include api pre_indent="4":) }@] @@ -6729,18 +6733,7 @@ - 3 - 2 - [@#include <(:link - 1 - - 0 - - -16 - - - 2 - :)> #include <boost/current_function.hpp> #include <boost/shared_ptr.hpp> namespace boost { (:include api pre_indent="4":) }@] + 0 @@ -6751,9 +6744,7 @@ - 1 - 2 - [@#include <boost/shared_ptr.hpp> namespace boost { (:include api pre_indent="4":) }@] + 0 @@ -6764,18 +6755,7 @@ - 3 - 2 - `#include <(:link - 1 - - 0 - - -30 - - - 2 - :)> [@namespace boost { (:include decl pre_indent="4":) }@] + 0 @@ -6786,7 +6766,18 @@ - 0 + 3 + 2 + `#include <(:link + 1 + + 0 + + -6 + + + 2 + :)> [@namespace boost { (:include decl pre_indent="4":) }@] @@ -6797,9 +6788,18 @@ - 1 + 3 2 - [@namespace boost { (:include api pre_indent="4":) }@] + `#include <(:link + 1 + + 0 + + -6 + + + 2 + :)> [@namespace boost { (:include decl pre_indent="4":) }@] @@ -6821,9 +6821,7 @@ - 1 - 2 - [@namespace boost { (:include api pre_indent="4":) }@] + 0 @@ -6841,13 +6839,35 @@ 0 - -12 + -37 2 :)> [@namespace boost { (:include decl pre_indent="4":) }@] + + + 0 + + -26 + + + + 3 + 2 + `#include < + 1 + + 0 + + -34 + + + 2 + > [@namespace boost { (:include decl pre_indent="4":) }@] + + 0 @@ -6867,27 +6887,7 @@ - 5 - 2 - `#include <(:link - 1 - - 0 - - -28 - - - 2 - :)> [@namespace boost { (:include - 1 - - 0 - - -21 - - - 2 - decl pre_indent="4":) }@] + 0 @@ -6898,18 +6898,27 @@ - 3 + 5 2 `#include <(:link 1 0 - -16 + -11 2 - :)> [@namespace boost { (:include def pre_indent="4":) }@] + :)> [@namespace boost { (:include + 1 + + 0 + + -22 + + + 2 + decl pre_indent="4":) }@] @@ -6919,107 +6928,6 @@ -23 - - 0 - - - - - 0 - - -24 - - - - 0 - - - - - 0 - - -25 - - - - 0 - - - - - 0 - - -26 - - - - 0 - - - - - 0 - - -27 - - - - 0 - - - - - 0 - - -28 - - - - 1 - 2 - [@#include <boost/tuple/tuple.hpp> namespace boost { (:include api pre_indent="4":) }@] - - - - - 0 - - -29 - - - - 0 - - - - - 0 - - -30 - - - - 3 - 2 - [@#include <(:link - 1 - - 0 - - -16 - - - 2 - :)> namespace boost { (:include api pre_indent="4":) }@] - - - - - 0 - - -31 - - 3 2 @@ -7028,7 +6936,7 @@ 0 - -16 + -35 2 @@ -7039,20 +6947,29 @@ 0 - -32 + -24 - 1 + 3 2 - [@#include <exception> namespace boost { (:include api pre_indent="4":) }@] + `#include < + 1 + + 0 + + -34 + + + 2 + > [@namespace boost { (:include decl pre_indent="4":) }@] 0 - -33 + -25 @@ -7063,7 +6980,7 @@ 0 - -30 + -36 2 @@ -7074,7 +6991,7 @@ 0 - -34 + -28 @@ -7085,7 +7002,7 @@ 0 - -8 + -6 2 @@ -7096,18 +7013,51 @@ 0 - -35 + -29 - 0 + 3 + 2 + `#include <(:link + 1 + + 0 + + -6 + + + 2 + :)> [@namespace boost { (:include decl pre_indent="4":) }@] 0 - -36 + -27 + + + + 3 + 2 + `#include <(:link + 1 + + 0 + + -6 + + + 2 + :)> [@namespace boost { (:include decl pre_indent="4":) }@] + + + + + 0 + + -30 @@ -7125,6 +7075,93 @@ :)> [@namespace boost { (:include decl pre_indent="4":) }@] + + + 0 + + -32 + + + + 1 + 2 + [@#include <exception> namespace boost { (:include api pre_indent="4":) }@] + + + + + 0 + + -31 + + + + 1 + 2 + [@(:include api:)@] + + + + + 0 + + -33 + + + + 1 + 2 + [@namespace boost { (:include api pre_indent="4":) }@] + + + + + 0 + + -34 + + + + 1 + 2 + [@namespace boost { (:include api pre_indent="4":) }@] + + + + + 0 + + -35 + + + + 1 + 2 + [@#include <boost/shared_ptr.hpp> namespace boost { (:include api pre_indent="4":) }@] + + + + + 0 + + -36 + + + + 3 + 2 + [@#include <(:link + 1 + + 0 + + -34 + + + 2 + :)> #include <boost/current_function.hpp> #include <boost/shared_ptr.hpp> namespace boost { (:include api pre_indent="4":) }@] + + 0 @@ -7135,16 +7172,16 @@ 3 2 - `#include < + [@#include <(:link 1 0 - -16 + -34 2 - > [@namespace boost { (:include decl pre_indent="4":) }@] + :)> #include <exception> namespace boost { (:include api pre_indent="4":) }@] @@ -7155,18 +7192,7 @@ - 3 - 2 - `#include < - 1 - - 0 - - -13 - - - 2 - > [@namespace boost { (:include decl pre_indent="4":) }@] + 0 @@ -7177,18 +7203,7 @@ - 3 - 2 - `#include <(:link - 1 - - 0 - - -12 - - - 2 - :)> [@namespace boost { (:include def pre_indent="4":) }@] + 0 @@ -7210,18 +7225,7 @@ - 3 - 2 - `#include <(:link - 1 - - 0 - - -30 - - - 2 - :)> [@namespace boost { (:include decl pre_indent="4":) }@] + 0 @@ -7298,6 +7302,9 @@ -19 + + -26 + -20 @@ -7316,26 +7323,23 @@ -25 - - -26 - - - -27 - -28 -29 + + -27 + -30 - -31 + -32 - -32 + -31 -33 @@ -7372,40 +7376,6 @@ 38 - - - - - 0 - - - - - - 1 - - - - -42 - - - - - - - 0 - - - - - - 1 - - - - -24 - - @@ -7437,7 +7407,41 @@ - -20 + -18 + + + + + + + 0 + + + + + + 1 + + + + -13 + + + + + + + 0 + + + + + + 1 + + + + -38 @@ -7485,7 +7489,7 @@ - -23 + -41 @@ -7513,7 +7517,7 @@ - -36 + -30 @@ -7537,22 +7541,18 @@ - -15 + -20 - 2 - 1B9769136D8D43898453AE9747BDC9FD1833F7D620D9083FB9A38C43804FCF35 - 2690633675 - 1570 - 504 - 8E724ECF48FB144FBAC1B7F27AE077812CDA75F1A05A08F951DD7F9D54863425 - 4144026351 - 676 - 888 + 1 + 3FB3FF960AB73CFA030B0B3BF9B9B0E4DF6534F39E22EFCD3FD44C240DC1A650 + 3103461725 + 1751 + 323 @@ -7565,7 +7565,7 @@ - -38 + -35 @@ -7589,7 +7589,63 @@ - -19 + -25 + + + + + + + 2 + 5D77D35C34EE3A1CF65AF8A54984D895F7FD5E5F61B51F1C00141EE26184826F + 2896829895 + 4094 + 775 + C8FF4A90C1FD526AC0192DD679640A1EB2CD15D65F18EAB9545BF47C803BB47C + 1251515622 + 519 + 3569 + + + + + + 0 + ../../../../boost/exception/info.hpp + 0 + 0 + + + + -9 + + + + + + + 2 + 5D77D35C34EE3A1CF65AF8A54984D895F7FD5E5F61B51F1C00141EE26184826F + 2896829895 + 4094 + 775 + CF9032A2CB14D66F0F004C0AFDE2BB94321F405D6D95AC46EC5350AB4843A4F1 + 1073329133 + 715 + 243 + + + + + + 0 + ../../../../boost/exception/info.hpp + 0 + 0 + + + + -5 @@ -7613,7 +7669,7 @@ - -8 + -37 @@ -7641,7 +7697,7 @@ - -33 + -28 @@ -7669,7 +7725,7 @@ - -41 + -15 @@ -7697,7 +7753,7 @@ - -9 + -27 @@ -7725,7 +7781,7 @@ - -6 + -16 @@ -7753,87 +7809,7 @@ - -14 - - - - - - - 2 - F7B9CDADF285065E8CB1F11340DFC40B3006D9CE7EE0D5291C08A78548499089 - 3958534298 - 4381 - 775 - C552A651ADC0B9506373CC1A78CB4D7D0342BC99BD24F2F2B8CAD3B555037FE7 - 141521629 - 382 - 3993 - - - - - - 0 - ../../../../boost/exception/info.hpp - 0 - 0 - - - - -11 - - - - - - - 2 - F7B9CDADF285065E8CB1F11340DFC40B3006D9CE7EE0D5291C08A78548499089 - 3958534298 - 4381 - 775 - CF9032A2CB14D66F0F004C0AFDE2BB94321F405D6D95AC46EC5350AB4843A4F1 - 1073329133 - 715 - 243 - - - - - - 0 - ../../../../boost/exception/info.hpp - 0 - 0 - - - - -39 - - - - - - - 1 - 3129727981C71FD1C5ED95F4B0A4D4B67DD804FC601C0B5EC13BE01D7CD8BA8A - 2918124076 - 4833 - 323 - - - - - - 0 - ../../../../boost/exception/info.hpp - 0 - 0 - - - - -12 + -29 @@ -7861,31 +7837,7 @@ - -34 - - - - - - - 1 - CAB4D823BD4720B71E1CA5BE482AC95B42A9E07CD5E08671EA23184635F281A2 - 3077708282 - 89 - 323 - - - - - - 0 - ../../../../boost/exception/error_info.hpp - 0 - 0 - - - - -18 + -19 @@ -7909,7 +7861,35 @@ - -30 + -6 + + + + + + + 2 + 316E7826A34AB7412F671B91F1115D9000953DA08C941AF99D28140ECDEEB6A6 + 718983169 + 1570 + 504 + FF9587851F54F772BCD4A548BC28D9CEB5FA00C61CBFC064568FD4F1E19AEC33 + 535614227 + 676 + 888 + + + + + + 0 + ../../../../boost/exception/get_error_info.hpp + 0 + 0 + + + + -23 @@ -7933,7 +7913,7 @@ - -28 + -11 @@ -7957,7 +7937,207 @@ - -29 + -12 + + + + + + + 1 + 798A43A58F30121B93FAAFE41BA02B933B5D189D95176607ADFC01796014F7D0 + 605377366 + 7735 + 323 + + + + + + 0 + ../../../../boost/exception/exception.hpp + 0 + 0 + + + + -34 + + + + + + + 2 + 798A43A58F30121B93FAAFE41BA02B933B5D189D95176607ADFC01796014F7D0 + 605377366 + 7735 + 323 + C4D6D690002735564AC480CEA72750731857C50F8E92B19420561B4CBBDA0748 + 1783445013 + 1182 + 3164 + + + + + + 0 + ../../../../boost/exception/exception.hpp + 0 + 0 + + + + -7 + + + + + + + 3 + 798A43A58F30121B93FAAFE41BA02B933B5D189D95176607ADFC01796014F7D0 + 605377366 + 7735 + 323 + C4D6D690002735564AC480CEA72750731857C50F8E92B19420561B4CBBDA0748 + 1783445013 + 1182 + 3164 + 9043738F71C025266AC2C0A2BEDC9DA3579175BE5BA672E59D136559D4269190 + 317401972 + 164 + 57 + + + + + + 0 + ../../../../boost/exception/exception.hpp + 0 + 0 + + + + -14 + + + + + + + 3 + 798A43A58F30121B93FAAFE41BA02B933B5D189D95176607ADFC01796014F7D0 + 605377366 + 7735 + 323 + C4D6D690002735564AC480CEA72750731857C50F8E92B19420561B4CBBDA0748 + 1783445013 + 1182 + 3164 + B805EBBE01B97F9E8E0306870AFA083BD42C2F04A72EE945E4D2161860B720AB + 269617501 + 51 + 245 + + + + + + 0 + ../../../../boost/exception/exception.hpp + 0 + 0 + + + + -42 + + + + + + + 2 + 798A43A58F30121B93FAAFE41BA02B933B5D189D95176607ADFC01796014F7D0 + 605377366 + 7735 + 323 + 17E691632123EB67BA67D590B49EB8094F462F5A10A66A1C5438E1867EF1478E + 765399792 + 77 + 4348 + + + + + + 0 + ../../../../boost/exception/exception.hpp + 0 + 0 + + + + -40 + + + + + + + 2 + 798A43A58F30121B93FAAFE41BA02B933B5D189D95176607ADFC01796014F7D0 + 605377366 + 7735 + 323 + DF9EA87B0140AACF4422F1B76F6A6A409C15F32858BBBA85A35981A824C56BA9 + 1137981799 + 192 + 7455 + + + + + + 0 + ../../../../boost/exception/exception.hpp + 0 + 0 + + + + -26 + + + + + + + 2 + 798A43A58F30121B93FAAFE41BA02B933B5D189D95176607ADFC01796014F7D0 + 605377366 + 7735 + 323 + B4D37C317A3B45825DDA1A8C8B1CE71CC2E530D15090D05995FCBEC4247F49C4 + 2742768198 + 258 + 5736 + + + + + + 0 + ../../../../boost/exception/exception.hpp + 0 + 0 + + + + -24 @@ -7981,7 +8161,31 @@ - -26 + -8 + + + + + + + 1 + BA1771AE0820845A4FBA4958AD943C4AE6F331ED91EFB29CC74357A9193B79D7 + 1140438873 + 4546 + 323 + + + + + + 0 + ../../../../boost/exception/info.hpp + 0 + 0 + + + + -36 @@ -8005,31 +8209,7 @@ - -10 - - - - - - - 1 - 985ACA12BA0E9D0359ED1DF17DB5608A27B8FD5B083E40B39D838B75C58B57DD - 1422943545 - 7756 - 323 - - - - - - 0 - ../../../../boost/exception/exception.hpp - 0 - 0 - - - - -16 + -21 @@ -8037,175 +8217,27 @@ 2 - 985ACA12BA0E9D0359ED1DF17DB5608A27B8FD5B083E40B39D838B75C58B57DD - 1422943545 - 7756 - 323 - B1D44CB4701E01A9F172883CC04BBD5A0173410AF3C6BEFAF711FD09F918954B - 3552071431 - 1239 - 3128 + 9A4ECF9A49A73AED83C1565CB8C67AE1519E8AFE6818F968B4C4733CB9E86CEF + 1615599655 + 68 + 227 + 34F0583BC8DE767CE2D79721E1F956895E43E5397473B1050F59BE7E26C773DB + 805836816 + 66 + 1 0 - ../../../../boost/exception/exception.hpp + ../../../../boost/exception/error_info.hpp 0 0 - -22 - - - - - - - 3 - 985ACA12BA0E9D0359ED1DF17DB5608A27B8FD5B083E40B39D838B75C58B57DD - 1422943545 - 7756 - 323 - B1D44CB4701E01A9F172883CC04BBD5A0173410AF3C6BEFAF711FD09F918954B - 3552071431 - 1239 - 3128 - 9043738F71C025266AC2C0A2BEDC9DA3579175BE5BA672E59D136559D4269190 - 317401972 - 164 - 57 - - - - - - 0 - ../../../../boost/exception/exception.hpp - 0 - 0 - - - - -40 - - - - - - - 3 - 985ACA12BA0E9D0359ED1DF17DB5608A27B8FD5B083E40B39D838B75C58B57DD - 1422943545 - 7756 - 323 - B1D44CB4701E01A9F172883CC04BBD5A0173410AF3C6BEFAF711FD09F918954B - 3552071431 - 1239 - 3128 - B805EBBE01B97F9E8E0306870AFA083BD42C2F04A72EE945E4D2161860B720AB - 269617501 - 51 - 245 - - - - - - 0 - ../../../../boost/exception/exception.hpp - 0 - 0 - - - - -25 - - - - - - - 2 - 985ACA12BA0E9D0359ED1DF17DB5608A27B8FD5B083E40B39D838B75C58B57DD - 1422943545 - 7756 - 323 - 17E691632123EB67BA67D590B49EB8094F462F5A10A66A1C5438E1867EF1478E - 765399792 - 77 - 4369 - - - - - - 0 - ../../../../boost/exception/exception.hpp - 0 - 0 - - - - -7 - - - - - - - 2 - 985ACA12BA0E9D0359ED1DF17DB5608A27B8FD5B083E40B39D838B75C58B57DD - 1422943545 - 7756 - 323 - DF9EA87B0140AACF4422F1B76F6A6A409C15F32858BBBA85A35981A824C56BA9 - 1137981799 - 192 - 7476 - - - - - - 0 - ../../../../boost/exception/exception.hpp - 0 - 0 - - - - -31 - - - - - - - 2 - 985ACA12BA0E9D0359ED1DF17DB5608A27B8FD5B083E40B39D838B75C58B57DD - 1422943545 - 7756 - 323 - B4D37C317A3B45825DDA1A8C8B1CE71CC2E530D15090D05995FCBEC4247F49C4 - 2742768198 - 258 - 5757 - - - - - - 0 - ../../../../boost/exception/exception.hpp - 0 - 0 - - - - -37 + -33 @@ -8233,7 +8265,7 @@ - -21 + -22 @@ -8257,7 +8289,7 @@ - -27 + -10 @@ -8281,7 +8313,7 @@ - -35 + -39 @@ -8305,31 +8337,7 @@ - -5 - - - - - - - 1 - DDE2FCDD8E72B54F251AF3A5386B67741519415D947D3F22ECA0EE51BB70FEFE - 780144935 - 1751 - 323 - - - - - - 0 - ../../../../boost/exception/get_error_info.hpp - 0 - 0 - - - - -13 + -31 @@ -8346,7 +8354,7 @@ - 40 + 39 1 @@ -8360,7 +8368,7 @@ -5 - + type @@ -8369,7 +8377,7 @@ -6 - type + @@ -8378,7 +8386,7 @@ -7 - function + type @@ -8387,7 +8395,7 @@ -8 - + noalso noindex tutorial @@ -8396,7 +8404,7 @@ -9 - exception_ptr free function + error_info free function @@ -8405,7 +8413,7 @@ -10 - diagnostic_information tutorial + noalso noindex tutorial @@ -8414,7 +8422,7 @@ -11 - error_info free function + @@ -8423,7 +8431,7 @@ -12 - + noalso noindex tutorial @@ -8432,7 +8440,7 @@ -13 - error_info + tutorial @@ -8441,7 +8449,7 @@ -14 - exception_ptr free function + function @@ -8450,7 +8458,7 @@ -15 - tutorial + exception_ptr type @@ -8459,7 +8467,7 @@ -16 - + type @@ -8468,7 +8476,7 @@ -17 - tutorial + noindex @@ -8477,7 +8485,7 @@ -18 - + tutorial @@ -8486,67 +8494,7 @@ -19 - - - - - 0 - - -20 - - - index noindex - - - - 0 - - -21 - - - error_info free function - - - - 0 - - -22 - - - type - - - - 1 - - - - - - 0 - - -23 - - - noalso noindex tutorial - - - - 0 - - -24 - - - tutorial - - - - 0 - - -25 - - - function + free function @@ -8555,16 +8503,61 @@ -26 - noalso noindex tutorial + exception_ptr free function 0 - -27 + -20 - noalso noindex tutorial + tutorial + + + + 0 + + -21 + + + diagnostic_information tutorial + + + + 0 + + -22 + + + error_info free function + + + + 0 + + -23 + + + error_info free function + + + + 0 + + -24 + + + error_info free function + + + + 0 + + -25 + + + @@ -8573,7 +8566,7 @@ -28 - + exception_ptr free function @@ -8582,7 +8575,16 @@ -29 - noalso noindex tutorial + exception_ptr free function + + + + 0 + + -27 + + + exception_ptr free function @@ -8591,16 +8593,7 @@ -30 - - - - - 0 - - -31 - - - exception_ptr free function + diagnostic_information free function @@ -8611,6 +8604,15 @@ + + + 0 + + -31 + + + + 0 @@ -8618,7 +8620,7 @@ -33 - exception_ptr free function + @@ -8627,7 +8629,7 @@ -34 - free function + @@ -8636,7 +8638,7 @@ -35 - noalso noindex tutorial + error_info @@ -8645,7 +8647,7 @@ -36 - diagnostic_information free function + @@ -8654,7 +8656,7 @@ -37 - error_info free function + @@ -8663,7 +8665,7 @@ -38 - error_info free function + index noindex @@ -8672,7 +8674,7 @@ -39 - type + noalso noindex tutorial @@ -8690,7 +8692,7 @@ -41 - exception_ptr type + noalso noindex tutorial @@ -8699,7 +8701,7 @@ -42 - noindex + function diff --git a/include/boost/exception/error_info.hpp b/include/boost/exception/error_info.hpp index 23f6f30..d80bf39 100644 --- a/include/boost/exception/error_info.hpp +++ b/include/boost/exception/error_info.hpp @@ -3,14 +3,4 @@ //Distributed under the Boost Software License, Version 1.0. (See accompanying //file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) -#ifndef UUID_0E57632CCA3011DCB876FD9955D89593 -#define UUID_0E57632CCA3011DCB876FD9955D89593 - -namespace -boost - { - template - class error_info; - } - -#endif +namespace boost { template class error_info; } diff --git a/include/boost/exception/exception.hpp b/include/boost/exception/exception.hpp index 3e7cf27..dcc6d43 100644 --- a/include/boost/exception/exception.hpp +++ b/include/boost/exception/exception.hpp @@ -119,6 +119,12 @@ boost template class shared_ptr; + template + class error_info; + + template + E const & operator<<( E const &, error_info const & ); + namespace exception_detail { @@ -135,9 +141,7 @@ boost }; template - shared_ptr get_data( exception const & ); - - void set_data( exception const *, shared_ptr const &, type_info_ const & ); + shared_ptr get_info( exception const & ); } class @@ -177,10 +181,11 @@ boost private: - template - friend shared_ptr exception_detail::get_data( exception const & ); + template + friend E const & operator<<( E const &, error_info const & ); - friend void exception_detail::set_data( exception const *, shared_ptr const &, exception_detail::type_info_ const & ); + template + friend shared_ptr exception_detail::get_info( exception const & ); mutable exception_detail::refcount_ptr data_; }; diff --git a/include/boost/exception/get_error_info.hpp b/include/boost/exception/get_error_info.hpp index 1c4a030..477ba5e 100644 --- a/include/boost/exception/get_error_info.hpp +++ b/include/boost/exception/get_error_info.hpp @@ -20,7 +20,7 @@ boost template inline shared_ptr - get_data( exception const & x ) + get_info( exception const & x ) { if( exception_detail::error_info_container * c=x.data_.get() ) if( shared_ptr eib = c->get(BOOST_EXCEPTION_STATIC_TYPEID(ErrorInfo)) ) @@ -41,7 +41,7 @@ boost shared_ptr get_error_info( boost::exception const & x ) { - return exception_detail::get_data(x); + return exception_detail::get_info(x); } #else template @@ -50,7 +50,7 @@ boost get_error_info( E const & some_exception ) { if( exception const * x = dynamic_cast(&some_exception) ) - return exception_detail::get_data(*x); + return exception_detail::get_info(*x); else return shared_ptr(); } diff --git a/include/boost/exception/info.hpp b/include/boost/exception/info.hpp index a5808da..d324986 100644 --- a/include/boost/exception/info.hpp +++ b/include/boost/exception/info.hpp @@ -146,16 +146,6 @@ boost delete this; } }; - - inline - void - set_data( exception const * e, shared_ptr const & x, exception_detail::type_info_ const & typeid_ ) - { - exception_detail::error_info_container * c; - if( !(c=e->data_.get()) ) - e->data_.adopt(c=new exception_detail::error_info_container_impl); - c->set(x,typeid_); - } } template @@ -165,8 +155,11 @@ boost { typedef error_info error_info_tag_t; shared_ptr p( new error_info_tag_t(v) ); - exception_detail::set_data(&x,p,BOOST_EXCEPTION_STATIC_TYPEID(error_info_tag_t)); - return x; + exception_detail::error_info_container * c; + if( !(c=x.data_.get()) ) + x.data_.adopt(c=new exception_detail::error_info_container_impl); + c->set(p,BOOST_EXCEPTION_STATIC_TYPEID(error_info_tag_t)); + return x; } } diff --git a/test/diagnostic_information_hpp_test.cpp b/test/diagnostic_information_hpp_test.cpp index e7381db..5fe5a4c 100644 --- a/test/diagnostic_information_hpp_test.cpp +++ b/test/diagnostic_information_hpp_test.cpp @@ -4,3 +4,4 @@ //file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) #include +#include diff --git a/test/error_info_hpp_test.cpp b/test/error_info_hpp_test.cpp index a47d620..f38680c 100644 --- a/test/error_info_hpp_test.cpp +++ b/test/error_info_hpp_test.cpp @@ -4,3 +4,4 @@ //file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) #include +#include diff --git a/test/exception_hpp_test.cpp b/test/exception_hpp_test.cpp index 3f2ed76..6e53d83 100644 --- a/test/exception_hpp_test.cpp +++ b/test/exception_hpp_test.cpp @@ -4,3 +4,4 @@ //file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) #include +#include diff --git a/test/exception_ptr_hpp_test.cpp b/test/exception_ptr_hpp_test.cpp index a671147..91c90dc 100644 --- a/test/exception_ptr_hpp_test.cpp +++ b/test/exception_ptr_hpp_test.cpp @@ -4,3 +4,4 @@ //file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) #include +#include diff --git a/test/get_error_info_hpp_test.cpp b/test/get_error_info_hpp_test.cpp index a7ea56b..1317640 100644 --- a/test/get_error_info_hpp_test.cpp +++ b/test/get_error_info_hpp_test.cpp @@ -4,3 +4,4 @@ //file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) #include +#include diff --git a/test/info_hpp_test.cpp b/test/info_hpp_test.cpp index 34407bc..f0fd463 100644 --- a/test/info_hpp_test.cpp +++ b/test/info_hpp_test.cpp @@ -4,3 +4,4 @@ //file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) #include +#include diff --git a/test/info_tuple_hpp_test.cpp b/test/info_tuple_hpp_test.cpp index a4040ab..59a14a4 100644 --- a/test/info_tuple_hpp_test.cpp +++ b/test/info_tuple_hpp_test.cpp @@ -4,3 +4,4 @@ //file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) #include +#include diff --git a/test/to_string_hpp_test.cpp b/test/to_string_hpp_test.cpp index 27b98a3..98dc77f 100644 --- a/test/to_string_hpp_test.cpp +++ b/test/to_string_hpp_test.cpp @@ -4,3 +4,4 @@ //file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) #include +#include diff --git a/test/to_string_stub_hpp_test.cpp b/test/to_string_stub_hpp_test.cpp index 475b72f..a265ee1 100644 --- a/test/to_string_stub_hpp_test.cpp +++ b/test/to_string_stub_hpp_test.cpp @@ -4,3 +4,4 @@ //file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) #include +#include