From 88f0b2e863f930e2011f6edfc9d0b48655e2bf80 Mon Sep 17 00:00:00 2001 From: Emil Dotchevski Date: Tue, 31 Mar 2009 06:41:11 +0000 Subject: [PATCH] documentation update [SVN r52074] --- doc/source/boost-exception.reno | 9376 ++++++++++++++++--------------- 1 file changed, 4832 insertions(+), 4544 deletions(-) diff --git a/doc/source/boost-exception.reno b/doc/source/boost-exception.reno index 4a8e112..3647b1e 100644 --- a/doc/source/boost-exception.reno +++ b/doc/source/boost-exception.reno @@ -39,7 +39,7 @@ - 44 + 45 0 @@ -53,36 +53,28 @@ - 3 - 55F1164770FD778354E151EF65A3E830DA20F325F7ED20A95130A4B83FC801BF - 1282550303 - 9192 - 323 - 65D35B8A2063883A53E9D0DCC3FF8E5CA3573A58451A653CDE3003FFBEC576D3 - 1693870740 - 2195 - 3720 - DA154372D8C23BD9EDC30005CA7959CE686D198891097A837D006B5222F04DE9 - 2768248809 - 143 - 60 + 1 + CAD6C404CB725D336A44920D2341ECA131149AB02C368B59028F8147F16737BF + 2258638601 + 94 + 227 0 - ../../../../boost/exception/exception.hpp + ../../../../boost/exception/info_tuple.hpp 0 0 - <string>exception::exception</string> + <string>boost/exception/info_tuple.hpp</string> - exception_constructors + exception_error_info_group_hpp @@ -107,31 +99,31 @@ 2 - 808CABE6CCA47C52CC9DD21911BF0B42284A5DD55AC3E665B29ED2B5F16AF7DA - 3660693492 - 8718 - 615 - 0E9DF8366080712A816BE91ABCEF1E2044145B63D75B0B995B537900F378189E - 1069696031 - 255 - 8457 + 55F1164770FD778354E151EF65A3E830DA20F325F7ED20A95130A4B83FC801BF + 1282550303 + 9192 + 323 + 17E691632123EB67BA67D590B49EB8094F462F5A10A66A1C5438E1867EF1478E + 765399792 + 77 + 5917 0 - ../../../../boost/exception_ptr.hpp + ../../../../boost/exception/exception.hpp 0 0 - <string>rethrow_exception</string> + <string>exception::~exception</string> - + exception_destructor @@ -155,21 +147,28 @@ - 0 + 1 + 7116AEECEA666794E31DC99390ADEC1BA6AF74B2398067A0739767B4B76FA97A + 4128134227 + 307 + 302 - 1 + 0 + ../../example/logging.cpp + 0 + 0 - <string>transporting of arbitrary data to the catch site</string> + <string>diagnostic information</string> - tutorial_transporting_data + tutorial_diagnostic_information @@ -193,28 +192,32 @@ - 1 - F647827E95C64B626A8E3751AD4E4D21237DD17482EEA6DB93A16A2C6AC79E87 - 527078204 - 446 - 227 + 2 + 55F1164770FD778354E151EF65A3E830DA20F325F7ED20A95130A4B83FC801BF + 1282550303 + 9192 + 323 + 65D35B8A2063883A53E9D0DCC3FF8E5CA3573A58451A653CDE3003FFBEC576D3 + 1693870740 + 2195 + 3720 0 - ../../../../boost/exception.hpp + ../../../../boost/exception/exception.hpp 0 0 - <string>boost/exception.hpp</string> + <string>exception</string> - exception_hpp + @@ -222,7 +225,7 @@ 1 2 - (:include include:) (:auto also:) + (:include include:) ---- !!!See Also: (:pagelist link="backlink" except_tags="exception,member" mod="w":) @@ -238,29 +241,18 @@ - 2 - 55F1164770FD778354E151EF65A3E830DA20F325F7ED20A95130A4B83FC801BF - 1282550303 - 9192 - 323 - F3FB15CD82336271C6E875BC620385322777D16F0B7C233300783CE35710CCBF - 3292878997 - 282 - 7305 + 0 - 0 - ../../../../boost/exception/exception.hpp - 0 - 0 + 1 - <string>enable_error_info</string> + <string>Motivation</string> @@ -269,103 +261,84 @@ - 1 + 5 2 - (:include include:) (:auto also:) - - - - - 0 - - 10 - - reno_context - - - + (:include include:) (:auto also explicit=" + 1 + + 0 + + 10 + + reno_context + + - - - 2 - 808CABE6CCA47C52CC9DD21911BF0B42284A5DD55AC3E665B29ED2B5F16AF7DA - 3660693492 - 8718 - 615 - 0066D4E6E6B189906E6DE04F08509F3737511701A1B1355B37511EC18E8371F4 - 2078296250 - 305 - 8150 - - + + + + 0 + + + + + + 1 + + - - - 0 - ../../../../boost/exception_ptr.hpp - 0 - 0 - - - - - <string>copy_exception</string> - - - - - - - - - 1 + + <string>transporting of arbitrary data to the catch site</string> + + + tutorial_transporting_data + + + + 2 - (:include include:) (:auto also:) - - - - - 0 - - 11 - - reno_context - - - + + 1 + + 0 + + 11 + + reno_context + + - - - 1 - 3D40DD88A1E41D75BC79CA8DACC35BEE2A16A64422AC8E6BE0D61169D9360EF7 - 4184757263 - 4220 - 323 - - + + + + 1 + D9B8E6AA12A4F33953B1A961FA590C5A3840234B6531CA8C04AC985AD5800835 + 2432554768 + 702 + 408 + + + + + + 0 + ../../example/enable_error_info.cpp + 0 + 0 + + - - - 0 - ../../../../boost/exception/info.hpp - 0 - 0 - - - - - <string>boost/exception/info.hpp</string> - - - exception_error_info_hpp - - - - - - 1 + + <string>integrating boost exception in existing exception class hierarchies</string> + + + tutorial_enable_error_info + + + + 2 - (:include include:) (:auto also:) + ":) @@ -430,28 +403,21 @@ - 1 - 7116AEECEA666794E31DC99390ADEC1BA6AF74B2398067A0739767B4B76FA97A - 4128134227 - 307 - 302 + 0 - 0 - ../../example/logging.cpp - 0 - 0 + 1 - <string>diagnostic information</string> + <string>boost/exception/enable_error_info.hpp</string> - tutorial_diagnostic_information + exception_enable_error_info_hpp @@ -470,426 +436,6 @@ reno_context - - - - - - 2 - E8AFD260BD0196A516F0E29A9FE6D09BF84B37D31E228910E3370365CAA4AB43 - 3229661566 - 3665 - 504 - BB8AF986C96801345719855FEA083AF5684FBC349F6520E150F19A6370019265 - 3731478139 - 686 - 2973 - - - - - - 0 - ../../../../boost/exception/get_error_info.hpp - 0 - 0 - - - - - <string>get_error_info</string> - - - - - - - - - 1 - 2 - (:include include:) (:auto also:) - - - - - 0 - - 15 - - reno_context - - - - - - - 1 - 17FF6C63843EE64ED66CB038DD95B4C4D6BA1B0FD36B27BEFD84A909161D2853 - 1237535165 - 231 - 1186 - - - - - - 0 - ../../../../boost/throw_exception.hpp - 0 - 0 - - - - - <string>BOOST_THROW_EXCEPTION</string> - - - - - - - - - 1 - 2 - (:include include:) (:pagelist link="backlink":) - - - - - 0 - - 16 - - reno_context - - - - - - - 2 - 9A4ECF9A49A73AED83C1565CB8C67AE1519E8AFE6818F968B4C4733CB9E86CEF - 1615599655 - 68 - 227 - 34F0583BC8DE767CE2D79721E1F956895E43E5397473B1050F59BE7E26C773DB - 805836816 - 66 - 1 - - - - - - 0 - ../../../../boost/exception/error_info.hpp - 0 - 0 - - - - - <string>boost/exception/error_info.hpp</string> - - - exception_error_info_value_hpp - - - - - - 1 - 2 - (:include include:) (:auto also:) - - - - - 0 - - 17 - - reno_context - - - - - - - 3 - 612485E090D76B2CC43C1A296F813075BA165C2496082E78E939F10B3DA8E09A - 1770110914 - 587 - 1497 - 60F3F48B87487FA6E0D2CCC0750AF435CC92CEC80BBBF609AC71295031AADD0D - 3929437933 - 361 - 213 - CD1241D84950468704F3C3F04116B8DA5162A8BEA4364F10951232F49113C5DE - 1658463867 - 121 - 238 - - - - - - 0 - ../../../../boost/throw_exception.hpp - 0 - 0 - - - - - <string>configuration macros</string> - - - - - - - - - 1 - 2 - (:include include:) (:auto also:) - - - - - 0 - - 18 - - reno_context - - - - - - - 0 - - - - - - 1 - - - - - <string>boost/exception/enable_current_exception.hpp</string> - - - exception_enable_current_exception_hpp - - - - - - 1 - 2 - (:include include:) (:auto also:) - - - - - 0 - - 19 - - 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 - - 20 - - reno_context - - - - - - - 2 - 808CABE6CCA47C52CC9DD21911BF0B42284A5DD55AC3E665B29ED2B5F16AF7DA - 3660693492 - 8718 - 615 - F86EB07D04CD0D0645080D1121DA899746D0C45137E17E1D9BE605E75396F047 - 1983537541 - 1346 - 148 - - - - - - 0 - ../../../../boost/exception_ptr.hpp - 0 - 0 - - - - - <string>exception_ptr</string> - - - - - - - - - 1 - 2 - (:include include:) (:auto also:) - - - - - 0 - - 21 - - reno_context - - - - - - - 2 - 3D64A3F5639045A59A0CD362AD4C531ECC763B7C523E284DCBFBACAAF5F681C3 - 4142572795 - 1596 - 462 - 6FE1F0AF570A010E8FDA1647DE61E0CC3AA979C8A8638722DAACDF8FBC4790D2 - 1246830037 - 1023 - 567 - - - - - - 0 - ../../../../boost/exception/diagnostic_information.hpp - 0 - 0 - - - - - <string>diagnostic_information</string> - - - - - - - - - 1 - 2 - (:include include:) (:auto also:) - - - - - 0 - - 22 - - 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 - - 23 - - reno_context - @@ -929,7 +475,7 @@ 0 - 24 + 15 reno_context @@ -938,28 +484,32 @@ - 1 - 373FAB70D1DAE4F1111AACCCCD3F6B55EAF8D1222E03A26A5A2F860B70D2D0C4 - 3697768091 - 2013 - 91 + 2 + 00067869F918D0E8905D8A464C17FA9DAD9F497B3A172EB360239EEB5778A206 + 3465219615 + 4025 + 518 + D31BCE814DF5B8B718E7EB67A194AD08EF716A26D422E436596ABA1F145007D8 + 4055211476 + 525 + 3494 0 - ../../../../boost/throw_exception.hpp + ../../../../boost/exception/info.hpp 0 0 - <string>boost/throw_exception.hpp</string> + <string>exception/operator<<</string> - throw_exception_hpp + @@ -974,95 +524,7 @@ 0 - 25 - - 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 - - 26 - - reno_context - - - - - - - 1 - 77680088697752BD6CCF429C0B264C866F5BF1D911D3BF3F1F18B06490D9F0CB - 2016079400 - 1841 - 227 - - - - - - 0 - ../../../../boost/exception/diagnostic_information.hpp - 0 - 0 - - - - - <string>boost/exception/diagnostic_information.hpp</string> - - - exception_diagnostic_information_hpp - - - - - - 1 - 2 - (:include include:) (:auto also:) - - - - - 0 - - 27 + 16 reno_context @@ -1111,7 +573,7 @@ 0 - 28 + 17 reno_context @@ -1120,28 +582,32 @@ - 1 - D9B8E6AA12A4F33953B1A961FA590C5A3840234B6531CA8C04AC985AD5800835 - 2432554768 - 702 - 408 + 2 + 808CABE6CCA47C52CC9DD21911BF0B42284A5DD55AC3E665B29ED2B5F16AF7DA + 3660693492 + 8718 + 615 + 0066D4E6E6B189906E6DE04F08509F3737511701A1B1355B37511EC18E8371F4 + 2078296250 + 305 + 8150 0 - ../../example/enable_error_info.cpp + ../../../../boost/exception_ptr.hpp 0 0 - <string>integrating boost exception in existing exception class hierarchies</string> + <string>copy_exception</string> - tutorial_enable_error_info + @@ -1156,7 +622,201 @@ 0 - 29 + 18 + + reno_context + + + + + + + 2 + E8AFD260BD0196A516F0E29A9FE6D09BF84B37D31E228910E3370365CAA4AB43 + 3229661566 + 3665 + 504 + BB8AF986C96801345719855FEA083AF5684FBC349F6520E150F19A6370019265 + 3731478139 + 686 + 2973 + + + + + + 0 + ../../../../boost/exception/get_error_info.hpp + 0 + 0 + + + + + <string>get_error_info</string> + + + + + + + + + 1 + 2 + (:include include:) (:auto also:) + + + + + 0 + + 19 + + reno_context + + + + + + + 2 + 126BB1D8971585CBE7D78EF3C12259D72FD5E973A84626AA9FC3234220A11CAB + 3471702891 + 969 + 344 + A7FD310E1340E103081DA2A7899DA0E213C696C84D52C17ADA09F6942EE97D47 + 2978648279 + 530 + 433 + + + + + + 0 + ../../../../boost/exception/detail/error_info_impl.hpp + 0 + 0 + + + + + <string>error_info</string> + + + + + + + + + 1 + 2 + (:include include:) (:auto also:) + + + + + 0 + + 20 + + reno_context + + + + + + + 3 + 126BB1D8971585CBE7D78EF3C12259D72FD5E973A84626AA9FC3234220A11CAB + 3471702891 + 969 + 344 + A7FD310E1340E103081DA2A7899DA0E213C696C84D52C17ADA09F6942EE97D47 + 2978648279 + 530 + 433 + 02372FA6B987EAC15E78C5A12036F203A92B3D4C857C02985B1BF0A24008D976 + 2987989218 + 109 + 259 + + + + + + 0 + ../../../../boost/exception/detail/error_info_impl.hpp + 0 + 0 + + + + + <string>error_info::value</string> + + + + + + + + + 1 + 2 + (:include include:) (:auto also:) + + + + + 0 + + 21 + + 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 + + 22 reno_context @@ -1209,7 +869,187 @@ 0 - 30 + 23 + + 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 + + 24 + + 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 + + 25 + + reno_context + + + + + + + 2 + 808CABE6CCA47C52CC9DD21911BF0B42284A5DD55AC3E665B29ED2B5F16AF7DA + 3660693492 + 8718 + 615 + F86EB07D04CD0D0645080D1121DA899746D0C45137E17E1D9BE605E75396F047 + 1983537541 + 1346 + 148 + + + + + + 0 + ../../../../boost/exception_ptr.hpp + 0 + 0 + + + + + <string>exception_ptr</string> + + + + + + + + + 1 + 2 + (:include include:) (:auto also:) + + + + + 0 + + 26 + + reno_context + + + + + + + 1 + 55F1164770FD778354E151EF65A3E830DA20F325F7ED20A95130A4B83FC801BF + 1282550303 + 9192 + 323 + + + + + + 0 + ../../../../boost/exception/exception.hpp + 0 + 0 + + + + + <string>boost/exception/exception.hpp</string> + + + exception_exception_hpp + + + + + + 1 + 2 + (:include include:) (:auto also:) + + + + + 0 + + 27 reno_context @@ -1247,7 +1087,94 @@ 0 - 31 + 28 + + reno_context + + + + + + + 2 + 3D64A3F5639045A59A0CD362AD4C531ECC763B7C523E284DCBFBACAAF5F681C3 + 4142572795 + 1596 + 462 + 6FE1F0AF570A010E8FDA1647DE61E0CC3AA979C8A8638722DAACDF8FBC4790D2 + 1246830037 + 1023 + 567 + + + + + + 0 + ../../../../boost/exception/diagnostic_information.hpp + 0 + 0 + + + + + <string>diagnostic_information</string> + + + + + + + + + 1 + 2 + (:include include:) (:auto also:) + + + + + 0 + + 29 + + reno_context + + + + + + + 0 + + + + + + 1 + + + + + <string>transporting of exceptions between threads</string> + + + tutorial_exception_ptr + + + + + + 1 + 2 + (:include include:) (:auto also:) + + + + + 0 + + 30 reno_context @@ -1292,6 +1219,55 @@ (:include include:) (:auto also:) + + + 0 + + 31 + + reno_context + + + + + + + 2 + 00067869F918D0E8905D8A464C17FA9DAD9F497B3A172EB360239EEB5778A206 + 3465219615 + 4025 + 518 + 6E325144EF4F41FA3A225EB30729101382C4E99B3D6160E307311E4B4E641010 + 1097215175 + 161 + 240 + + + + + + 0 + ../../../../boost/exception/info.hpp + 0 + 0 + + + + + <string>error_info::error_info</string> + + + + + + + + + 1 + 2 + (:include include:) (:auto also:) + + 0 @@ -1354,79 +1330,1009 @@ - 2 - 808CABE6CCA47C52CC9DD21911BF0B42284A5DD55AC3E665B29ED2B5F16AF7DA - 3660693492 - 8718 - 615 - DA033132CFA8F85C147C01F51FF7CF7399CF7D32D412F730EA3219CDAC608C72 - 3830952485 - 712 - 1496 + 0 - 0 - ../../../../boost/exception_ptr.hpp - 0 - 0 + 1 - <string>unknown_exception</string> + <string>boost exception</string> - + boost-exception - 1 + 121 2 - (:include include:) (:auto also:) - - - - - 0 - - 34 - - reno_context - - - + !!Introduction The purpose of Boost Exception is to ease the design of exception class hierarchies and to help write exception handling and error reporting code. It supports transporting of arbitrary data to the catch site, which is otherwise tricky due to the no-throw requirements (15.5.1) for exception types. Data can be added to any exception object, either directly in the throw-expression (15.1), or at a later time as the exception object propagates up the call stack. The ability to add data to exception objects after they have been passed to throw is important, because often some of the information needed to handle an exception is unavailable in the context where the failure is detected. Boost Exception also supports (:link http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2179.html|N2179:)-style (:link + 1 + + 0 + + -29 + + + 2 + |copying:) of exception objects, implemented non-intrusively and automatically by the boost::(:link + 1 + + 0 + + -30 + + + 2 + :) function. !!Contents #(:link + 1 + + 0 + + -9 + + + 2 + :) #Tutorial ##(:link + 1 + + 0 + + -10 + + + 2 + mod="w":) ##(:link + 1 + + 0 + + -7 + + + 2 + mod="w":) ##(:link + 1 + + 0 + + -11 + + + 2 + mod="w":) ##(:link + 1 + + 0 + + -29 + + + 2 + mod="w":) #Documentation ##Class (:link + 1 + + 0 + + -8 + + + 2 + :) ##Transporting of Arbitrary Data to the Catch Site ###(:link + 1 + + 0 + + -19 + + + 2 + :) ###(:link + 1 + + 0 + + -15 + + + 2 + :) ###(:link + 1 + + 0 + + -32 + + + 2 + :) ###(:link + 1 + + 0 + + -18 + + + 2 + :) ###(:link + 1 + + 0 + + 34 + + reno_context + + - - - 1 - F6C6B72C2CDEBC5E3EAA924F637563A8F8A95684AF6EEF39FE2260C86C77F531 - 2151348977 - 3846 - 323 - - + + + + 2 + 55F1164770FD778354E151EF65A3E830DA20F325F7ED20A95130A4B83FC801BF + 1282550303 + 9192 + 323 + F3FB15CD82336271C6E875BC620385322777D16F0B7C233300783CE35710CCBF + 3292878997 + 282 + 7305 + + + + + + 0 + ../../../../boost/exception/exception.hpp + 0 + 0 + + - - - 0 - ../../../../boost/exception/get_error_info.hpp - 0 - 0 - - - - - <string>boost/exception/get_error_info.hpp</string> - - - exception_get_error_info_hpp - - + + <string>enable_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 + + -25 + + + 2 + :) ###(:link + 1 + + 0 + + -16 + + + 2 + :) ###(:link + 1 + + 0 + + -12 + + + 2 + :) ###(:link + 1 + + 0 + + -17 + + + 2 + :) ###(:link + 1 + + 0 + + 35 + + reno_context + + + + + + + 2 + 808CABE6CCA47C52CC9DD21911BF0B42284A5DD55AC3E665B29ED2B5F16AF7DA + 3660693492 + 8718 + 615 + 0E9DF8366080712A816BE91ABCEF1E2044145B63D75B0B995B537900F378189E + 1069696031 + 255 + 8457 + + + + + + 0 + ../../../../boost/exception_ptr.hpp + 0 + 0 + + + + + <string>rethrow_exception</string> + + + + + + + + 2 + :) ###(:link + 1 + + 0 + + 36 + + reno_context + + + + + + + 2 + 808CABE6CCA47C52CC9DD21911BF0B42284A5DD55AC3E665B29ED2B5F16AF7DA + 3660693492 + 8718 + 615 + DA033132CFA8F85C147C01F51FF7CF7399CF7D32D412F730EA3219CDAC608C72 + 3830952485 + 712 + 1496 + + + + + + 0 + ../../../../boost/exception_ptr.hpp + 0 + 0 + + + + + <string>unknown_exception</string> + + + + + + + + 2 + :) ##(:link + 1 + + 0 + + -28 + + + 2 + :) ##(:link + 1 + + 0 + + -30 + + + 2 + :), (:link + 1 + + 0 + + 37 + + reno_context + + + + + + + 1 + 17FF6C63843EE64ED66CB038DD95B4C4D6BA1B0FD36B27BEFD84A909161D2853 + 1237535165 + 231 + 1186 + + + + + + 0 + ../../../../boost/throw_exception.hpp + 0 + 0 + + + + + <string>BOOST_THROW_EXCEPTION</string> + + + + + + + + 2 + :) ##(:link + 1 + + 0 + + 38 + + reno_context + + + + + + + 3 + 612485E090D76B2CC43C1A296F813075BA165C2496082E78E939F10B3DA8E09A + 1770110914 + 587 + 1497 + 60F3F48B87487FA6E0D2CCC0750AF435CC92CEC80BBBF609AC71295031AADD0D + 3929437933 + 361 + 213 + CD1241D84950468704F3C3F04116B8DA5162A8BEA4364F10951232F49113C5DE + 1658463867 + 121 + 238 + + + + + + 0 + ../../../../boost/throw_exception.hpp + 0 + 0 + + + + + <string>configuration macros</string> + + + + + + + + 2 + mod="w":) ##Headers ###(:link + 1 + + 0 + + 39 + + reno_context + + + + + + + 1 + F647827E95C64B626A8E3751AD4E4D21237DD17482EEA6DB93A16A2C6AC79E87 + 527078204 + 446 + 227 + + + + + + 0 + ../../../../boost/exception.hpp + 0 + 0 + + + + + <string>boost/exception.hpp</string> + + + exception_hpp + + + + + 2 + :) ###(:link + 1 + + 0 + + 40 + + reno_context + + + + + + + 1 + 77680088697752BD6CCF429C0B264C866F5BF1D911D3BF3F1F18B06490D9F0CB + 2016079400 + 1841 + 227 + + + + + + 0 + ../../../../boost/exception/diagnostic_information.hpp + 0 + 0 + + + + + <string>boost/exception/diagnostic_information.hpp</string> + + + exception_diagnostic_information_hpp + + + + + 2 + :) ###(:link + 1 + + 0 + + 41 + + reno_context + + + + + + + 0 + + + + + + 1 + + + + + <string>boost/exception/enable_current_exception.hpp</string> + + + exception_enable_current_exception_hpp + + + + + 2 + :) ###(:link + 1 + + 0 + + -13 + + + 2 + :) ###(:link + 1 + + 0 + + 42 + + 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 + + -26 + + + 2 + :) ###(:link + 1 + + 0 + + 43 + + reno_context + + + + + + + 1 + F6C6B72C2CDEBC5E3EAA924F637563A8F8A95684AF6EEF39FE2260C86C77F531 + 2151348977 + 3846 + 323 + + + + + + 0 + ../../../../boost/exception/get_error_info.hpp + 0 + 0 + + + + + <string>boost/exception/get_error_info.hpp</string> + + + exception_get_error_info_hpp + + + + + 2 + :) ###(:link + 1 + + 0 + + 44 + + reno_context + + + + + + + 1 + 3D40DD88A1E41D75BC79CA8DACC35BEE2A16A64422AC8E6BE0D61169D9360EF7 + 4184757263 + 4220 + 323 + + + + + + 0 + ../../../../boost/exception/info.hpp + 0 + 0 + + + + + <string>boost/exception/info.hpp</string> + + + exception_error_info_hpp + + + + + 2 + :) ###(:link + 1 + + 0 + + -5 + + + 2 + :) ###(:link + 1 + + 0 + + 45 + + reno_context + + + + + + + 1 + FBC69CDA5E19FA40270F3855A8B99B2F77572439353F9DC5D15386F3520BC616 + 1405483403 + 8882 + 451 + + + + + + 0 + ../../../../boost/exception_ptr.hpp + 0 + 0 + + + + + <string>boost/exception_ptr.hpp</string> + + + exception_cloning_hpp + + + + + 2 + :) ###(:link + 1 + + 0 + + 46 + + reno_context + + + + + + + 1 + 373FAB70D1DAE4F1111AACCCCD3F6B55EAF8D1222E03A26A5A2F860B70D2D0C4 + 3697768091 + 2013 + 91 + + + + + + 0 + ../../../../boost/throw_exception.hpp + 0 + 0 + + + + + <string>boost/throw_exception.hpp</string> + + + throw_exception_hpp + + + + + 2 + :) #(:link + 1 + + 0 + + -27 + + + 2 + :) !!Synopsis `#include <(:link + 1 + + 0 + + -39 + + + 2 + :)> [@namespace boost { (:include + 1 + + 0 + + -26 + + + 2 + api pre_indent="4":) (:include + 1 + + 0 + + -44 + + + 2 + api pre_indent="4":) (:include + 1 + + 0 + + -5 + + + 2 + api pre_indent="4":) (:include + 1 + + 0 + + -13 + + + 2 + api pre_indent="4":) (:include + 1 + + 0 + + -40 + + + 2 + api pre_indent="4":) (:include + 1 + + 0 + + -45 + + + 2 + api pre_indent="4":) (:include + 1 + + 0 + + -41 + + + 2 + api pre_indent="4":) }@] `#include <(:link + 1 + + 0 + + -46 + + + 2 + :)> [@(:include + 1 + + 0 + + -46 + + + 2 + api:)@] !!Class exception (:include + 1 + + 0 + + -8 + + + 2 + :) !!Transporting of Arbitrary Data to the Catch Site (:include + 1 + + 0 + + -19 + + + 2 + :) (:include + 1 + + 0 + + -15 + + + 2 + :) (:include + 1 + + 0 + + -32 + + + 2 + :) (:include + 1 + + 0 + + -18 + + + 2 + :) (:include + 1 + + 0 + + -34 + + + 2 + :) !!Transporting of Exceptions between Threads (:include + 1 + + 0 + + -25 + + + 2 + :) (:include + 1 + + 0 + + -16 + + + 2 + :) (:include + 1 + + 0 + + -12 + + + 2 + :) (:include + 1 + + 0 + + -17 + + + 2 + :) (:include + 1 + + 0 + + -35 + + + 2 + :) (:include + 1 + + 0 + + -36 + + + 2 + :) !!Printing Diagnostic Information (:include + 1 + + 0 + + -28 + + + 2 + :) !!Throwing Exceptions (:include + 1 + + 0 + + -30 + + + 2 + :) (:include + 1 + + 0 + + -37 + + + 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 + + -36 @@ -1439,7 +2345,59 @@ 0 - 35 + -37 + + + + 1 + 2 + (:include include:) (:pagelist link="backlink":) + + + + + 0 + + -11 + + + + 1 + 2 + (:include include:) (:auto also:) + + + + + 0 + + -45 + + + + 1 + 2 + (:include include:) (:auto also:) + + + + + 0 + + -43 + + + + 1 + 2 + (:include include:) (:auto also:) + + + + + 0 + + 47 reno_context @@ -1482,32 +2440,7 @@ 0 - 36 - - reno_context - - - - - - - 0 - - - - - - 1 - - - - - <string>boost/exception/enable_error_info.hpp</string> - - - exception_enable_error_info_hpp - - + -46 @@ -1520,865 +2453,7 @@ 0 - 37 - - reno_context - - - - - - - 2 - 00067869F918D0E8905D8A464C17FA9DAD9F497B3A172EB360239EEB5778A206 - 3465219615 - 4025 - 518 - D31BCE814DF5B8B718E7EB67A194AD08EF716A26D422E436596ABA1F145007D8 - 4055211476 - 525 - 3494 - - - - - - 0 - ../../../../boost/exception/info.hpp - 0 - 0 - - - - - <string>exception/operator<<</string> - - - - - - - - - 1 - 2 - (:include include:) (:auto also:) - - - - - 0 - - 38 - - reno_context - - - - - - - 1 - 55F1164770FD778354E151EF65A3E830DA20F325F7ED20A95130A4B83FC801BF - 1282550303 - 9192 - 323 - - - - - - 0 - ../../../../boost/exception/exception.hpp - 0 - 0 - - - - - <string>boost/exception/exception.hpp</string> - - - exception_exception_hpp - - - - - - 1 - 2 - (:include include:) (:auto also:) - - - - - 0 - - 39 - - reno_context - - - - - - - 1 - FBC69CDA5E19FA40270F3855A8B99B2F77572439353F9DC5D15386F3520BC616 - 1405483403 - 8882 - 451 - - - - - - 0 - ../../../../boost/exception_ptr.hpp - 0 - 0 - - - - - <string>boost/exception_ptr.hpp</string> - - - exception_cloning_hpp - - - - - - 1 - 2 - (:include include:) (:auto also:) - - - - - 0 - - 40 - - reno_context - - - - - - - 3 - 126BB1D8971585CBE7D78EF3C12259D72FD5E973A84626AA9FC3234220A11CAB - 3471702891 - 969 - 344 - A7FD310E1340E103081DA2A7899DA0E213C696C84D52C17ADA09F6942EE97D47 - 2978648279 - 530 - 433 - 02372FA6B987EAC15E78C5A12036F203A92B3D4C857C02985B1BF0A24008D976 - 2987989218 - 109 - 259 - - - - - - 0 - ../../../../boost/exception/detail/error_info_impl.hpp - 0 - 0 - - - - - <string>error_info::value</string> - - - - - - - - - 1 - 2 - (:include include:) (:auto also:) - - - - - 0 - - 41 - - reno_context - - - - - - - 0 - - - - - - 1 - - - - - <string>boost exception</string> - - - boost-exception - - - - - - 119 - 2 - !!Introduction The purpose of Boost Exception is to ease the design of exception class hierarchies and to help write exception handling and error reporting code. It supports transporting of arbitrary data to the catch site, which is otherwise tricky due to the no-throw requirements (15.5.1) for exception types. Data can be added to any exception object, either directly in the throw-expression (15.1), or at a later time as the exception object propagates up the call stack. The ability to add data to exception objects after they have been passed to throw is important, because often some of the information needed to handle an exception is unavailable in the context where the failure is detected. Boost Exception also supports (:link http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2179.html|N2179:)-style (:link - 1 - - 0 - - 42 - - reno_context - - - - - - - 0 - - - - - - 1 - - - - - <string>transporting of exceptions between threads</string> - - - tutorial_exception_ptr - - - - - 2 - |copying:) of exception objects, implemented non-intrusively and automatically by the boost::(:link - 1 - - 0 - - -31 - - - 2 - :) function. !!Contents #Tutorial ##(:link - 1 - - 0 - - -7 - - - 2 - mod="w":) ##(:link - 1 - - 0 - - -13 - - - 2 - mod="w":) ##(:link - 1 - - 0 - - -28 - - - 2 - mod="w":) ##(:link - 1 - - 0 - - -42 - - - 2 - mod="w":) #Documentation ##Class (:link - 1 - - 0 - - 43 - - reno_context - - - - - - - 2 - 55F1164770FD778354E151EF65A3E830DA20F325F7ED20A95130A4B83FC801BF - 1282550303 - 9192 - 323 - 65D35B8A2063883A53E9D0DCC3FF8E5CA3573A58451A653CDE3003FFBEC576D3 - 1693870740 - 2195 - 3720 - - - - - - 0 - ../../../../boost/exception/exception.hpp - 0 - 0 - - - - - <string>exception</string> - - - - - - - - 2 - :) ##Transporting of Arbitrary Data to the Catch Site ###(:link - 1 - - 0 - - 44 - - reno_context - - - - - - - 2 - 126BB1D8971585CBE7D78EF3C12259D72FD5E973A84626AA9FC3234220A11CAB - 3471702891 - 969 - 344 - A7FD310E1340E103081DA2A7899DA0E213C696C84D52C17ADA09F6942EE97D47 - 2978648279 - 530 - 433 - - - - - - 0 - ../../../../boost/exception/detail/error_info_impl.hpp - 0 - 0 - - - - - <string>error_info</string> - - - - - - - - 2 - :) ###(:link - 1 - - 0 - - -37 - - - 2 - :) ###(:link - 1 - - 0 - - -32 - - - 2 - :) ###(:link - 1 - - 0 - - -14 - - - 2 - :) ###(:link - 1 - - 0 - - -9 - - - 2 - :) ##(:link http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2179.html|N2179:) Transporting of Exceptions between Threads ###(:link - 1 - - 0 - - -20 - - - 2 - :) ###(:link - 1 - - 0 - - -27 - - - 2 - :) ###(:link - 1 - - 0 - - -12 - - - 2 - :) ###(:link - 1 - - 0 - - -10 - - - 2 - :) ###(:link - 1 - - 0 - - -6 - - - 2 - :) ###(:link - 1 - - 0 - - -33 - - - 2 - :) ##(:link - 1 - - 0 - - -21 - - - 2 - :) ##(:link - 1 - - 0 - - -31 - - - 2 - :), (:link - 1 - - 0 - - -15 - - - 2 - :) ##(:link - 1 - - 0 - - -17 - - - 2 - mod="w":) ##Headers ###(:link - 1 - - 0 - - -8 - - - 2 - :) ###(:link - 1 - - 0 - - -26 - - - 2 - :) ###(:link - 1 - - 0 - - -18 - - - 2 - :) ###(:link - 1 - - 0 - - -36 - - - 2 - :) ###(:link - 1 - - 0 - - -16 - - - 2 - :) ###(:link - 1 - - 0 - - -38 - - - 2 - :) ###(:link - 1 - - 0 - - -34 - - - 2 - :) ###(:link - 1 - - 0 - - -11 - - - 2 - :) ###(:link - 1 - - 0 - - -22 - - - 2 - :) ###(:link - 1 - - 0 - - -39 - - - 2 - :) ###(:link - 1 - - 0 - - -24 - - - 2 - :) #(:link - 1 - - 0 - - -30 - - - 2 - :) !!Synopsis `#include <(:link - 1 - - 0 - - -8 - - - 2 - :)> [@namespace boost { (:include - 1 - - 0 - - -38 - - - 2 - api pre_indent="4":) (:include - 1 - - 0 - - -11 - - - 2 - api pre_indent="4":) (:include - 1 - - 0 - - -22 - - - 2 - api pre_indent="4":) (:include - 1 - - 0 - - -36 - - - 2 - api pre_indent="4":) (:include - 1 - - 0 - - -26 - - - 2 - api pre_indent="4":) (:include - 1 - - 0 - - -39 - - - 2 - api pre_indent="4":) (:include - 1 - - 0 - - -18 - - - 2 - api pre_indent="4":) }@] `#include <(:link - 1 - - 0 - - -24 - - - 2 - :)> [@(:include - 1 - - 0 - - -24 - - - 2 - api:)@] !!Class exception (:include - 1 - - 0 - - -43 - - - 2 - :) !!Transporting of Arbitrary Data to the Catch Site (:include - 1 - - 0 - - -44 - - - 2 - :) (:include - 1 - - 0 - - -37 - - - 2 - :) (:include - 1 - - 0 - - -32 - - - 2 - :) (:include - 1 - - 0 - - -14 - - - 2 - :) (:include - 1 - - 0 - - -9 - - - 2 - :) !!Transporting of Exceptions between Threads (:include - 1 - - 0 - - -20 - - - 2 - :) (:include - 1 - - 0 - - -27 - - - 2 - :) (:include - 1 - - 0 - - -12 - - - 2 - :) (:include - 1 - - 0 - - -10 - - - 2 - :) (:include - 1 - - 0 - - -6 - - - 2 - :) (:include - 1 - - 0 - - -33 - - - 2 - :) !!Printing Diagnostic Information (:include - 1 - - 0 - - -21 - - - 2 - :) !!Throwing Exceptions (:include - 1 - - 0 - - -31 - - - 2 - :) (:include - 1 - - 0 - - -15 - - - 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 - - 45 + 48 reno_context @@ -2421,20 +2496,7 @@ 0 - -43 - - - - 1 - 2 - (:include include:) ---- !!!See Also: (:pagelist link="backlink" except_tags="exception,member" mod="w":) - - - - - 0 - - -44 + -41 @@ -2447,7 +2509,20 @@ 0 - 46 + -40 + + + + 1 + 2 + (:include include:) (:auto also:) + + + + + 0 + + 49 reno_context @@ -2456,15 +2531,19 @@ - 2 + 3 55F1164770FD778354E151EF65A3E830DA20F325F7ED20A95130A4B83FC801BF 1282550303 9192 323 - 17E691632123EB67BA67D590B49EB8094F462F5A10A66A1C5438E1867EF1478E - 765399792 - 77 - 5917 + 65D35B8A2063883A53E9D0DCC3FF8E5CA3573A58451A653CDE3003FFBEC576D3 + 1693870740 + 2195 + 3720 + DA154372D8C23BD9EDC30005CA7959CE686D198891097A837D006B5222F04DE9 + 2768248809 + 143 + 60 @@ -2478,10 +2557,10 @@ - <string>exception::~exception</string> + <string>exception::exception</string> - exception_destructor + exception_constructors @@ -2492,6 +2571,58 @@ (:include include:) (:auto also:) + + + 0 + + -35 + + + + 1 + 2 + (:include include:) (:auto also:) + + + + + 0 + + -10 + + + + 1 + 2 + (:include include:) (:auto also:) + + + + + 0 + + -44 + + + + 1 + 2 + (:include include:) (:auto also:) + + + + + 0 + + -39 + + + + 1 + 2 + (:include include:) (:auto also:) + + 0 @@ -2509,86 +2640,20 @@ 0 - 47 - - 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 - - + -38 - 0 + 1 + 2 + (:include include:) (:auto also:) 0 - 48 - - reno_context - - - - - - - 2 - 00067869F918D0E8905D8A464C17FA9DAD9F497B3A172EB360239EEB5778A206 - 3465219615 - 4025 - 518 - 6E325144EF4F41FA3A225EB30729101382C4E99B3D6160E307311E4B4E641010 - 1097215175 - 161 - 240 - - - - - - 0 - ../../../../boost/exception/info.hpp - 0 - 0 - - - - - <string>error_info::error_info</string> - - - - - + -34 @@ -2604,13 +2669,13 @@ def - 49 + 50 reno_layer - 44 + 45 0 @@ -2652,7 +2717,36 @@ - 0 + 7 + 2 + [@class (:link + 1 + + 0 + + -8 + + + 2 + :) { protected: (:include + 1 + + 0 + + -49 + + + 2 + decl pre_indent="4":) (:include + 1 + + 0 + + -6 + + + 2 + decl pre_indent="4":) };@] @@ -2666,28 +2760,6 @@ 0 - - - 0 - - -10 - - - - 0 - - - - - 0 - - -11 - - - - 0 - - 0 @@ -2773,7 +2845,45 @@ - 0 + 9 + 2 + [@template <class Tag,class T> class (:link + 1 + + 0 + + -19 + + + 2 + :) { public: (:include + 1 + + 0 + + -22 + + + 2 + decl pre_indent="4":) (:include + 1 + + 0 + + -31 + + + 2 + decl pre_indent="4":) (:include + 1 + + 0 + + -20 + + + 2 + decl pre_indent="4":) };@] @@ -2930,28 +3040,6 @@ 0 - - - 0 - - -34 - - - - 0 - - - - - 0 - - -35 - - - - 0 - - 0 @@ -2978,40 +3066,7 @@ 0 - -38 - - - - 0 - - - - - 0 - - -39 - - - - 0 - - - - - 0 - - -40 - - - - 0 - - - - - 0 - - -41 + -11 @@ -3036,106 +3091,6 @@ -43 - - 7 - 2 - [@class (:link - 1 - - 0 - - -43 - - - 2 - :) { protected: (:include - 1 - - 0 - - -5 - - - 2 - decl pre_indent="4":) (:include - 1 - - 0 - - -46 - - - 2 - decl pre_indent="4":) };@] - - - - - 0 - - -44 - - - - 9 - 2 - [@template <class Tag,class T> class (:link - 1 - - 0 - - -44 - - - 2 - :) { public: (:include - 1 - - 0 - - -29 - - - 2 - decl pre_indent="4":) (:include - 1 - - 0 - - -48 - - - 2 - decl pre_indent="4":) (:include - 1 - - 0 - - -40 - - - 2 - decl pre_indent="4":) };@] - - - - - 0 - - -46 - - - - 0 - - - - - 0 - - -42 - - 0 @@ -3151,6 +3106,17 @@ 0 + + + 0 + + -46 + + + + 0 + + 0 @@ -3162,25 +3128,11 @@ 0 - - - - - - api - - 50 - - reno_layer - - - - 44 0 - -5 + -41 @@ -3191,7 +3143,7 @@ 0 - -6 + -40 @@ -3202,7 +3154,7 @@ 0 - -7 + -49 @@ -3213,83 +3165,7 @@ 0 - -8 - - - - 15 - 2 - [@#include <(:link - 1 - - 0 - - -26 - - - 2 - :)> #include <(:link - 1 - - 0 - - -16 - - - 2 - :)> #include <(:link - 1 - - 0 - - -38 - - - 2 - :)> #include <(:link - 1 - - 0 - - -34 - - - 2 - :)> #include <(:link - 1 - - 0 - - -11 - - - 2 - :)> #include <(:link - 1 - - 0 - - -22 - - - 2 - :)> #include <(:link - 1 - - 0 - - -39 - - - 2 - :)>@] - - - - - 0 - - -9 + -35 @@ -3311,38 +3187,7 @@ 0 - -11 - - - - 5 - 2 - [@(:include - 1 - - 0 - - -44 - - - 2 - def:) (:include - 1 - - 0 - - -37 - - - 2 - decl:)@] - - - - - 0 - - -12 + -44 @@ -3353,7 +3198,7 @@ 0 - -13 + -39 @@ -3364,7 +3209,7 @@ 0 - -14 + -42 @@ -3375,7 +3220,7 @@ 0 - -15 + -38 @@ -3386,95 +3231,32 @@ 0 - -16 - - - - 3 - 2 - [@(:include - 1 - - 0 - - -44 - - - 2 - decl:)@] - - - - - 0 - - -17 + -34 0 + + + + + + api + + 51 + + reno_layer + + + + 45 0 - -18 - - - - 3 - 2 - [@(:include - 1 - - 0 - - -27 - - - 2 - decl:)@] - - - - - 0 - - -19 - - - - 0 - - - - - 0 - - -20 - - - - 0 - - - - - 0 - - -21 - - - - 0 - - - - - 0 - - -22 + -5 @@ -3492,6 +3274,182 @@ decl:)@] + + + 0 + + -6 + + + + 0 + + + + + 0 + + -7 + + + + 0 + + + + + 0 + + -8 + + + + 0 + + + + + 0 + + -9 + + + + 0 + + + + + 0 + + -12 + + + + 0 + + + + + 0 + + -13 + + + + 3 + 2 + [@(:include + 1 + + 0 + + -34 + + + 2 + decl:)@] + + + + + 0 + + -14 + + + + 0 + + + + + 0 + + -15 + + + + 0 + + + + + 0 + + -16 + + + + 0 + + + + + 0 + + -17 + + + + 0 + + + + + 0 + + -18 + + + + 0 + + + + + 0 + + -19 + + + + 0 + + + + + 0 + + -20 + + + + 0 + + + + + 0 + + -21 + + + + 0 + + + + + 0 + + -22 + + + + 0 + + 0 @@ -3511,27 +3469,7 @@ - 5 - 2 - [@(:include - 1 - - 0 - - -15 - - - 2 - decl:) namespace boost { (:include - 1 - - 0 - - -31 - - - 2 - decl:) }@] + 0 @@ -3553,18 +3491,54 @@ - 3 + 11 2 [@(:include 1 0 - -21 + -8 2 - decl:)@] + def:) (:include + 1 + + 0 + + -19 + + + 2 + decl:) typedef (:link + 1 + + 0 + + -19 + + + 2 + :)<struct tag_throw_function,char const *> throw_function; typedef (:link + 1 + + 0 + + -19 + + + 2 + :)<struct tag_throw_file,char const *> throw_file; typedef (:link + 1 + + 0 + + -19 + + + 2 + :)<struct tag_throw_line,int> throw_line;@] @@ -3644,39 +3618,6 @@ 0 - - - 0 - - -34 - - - - 3 - 2 - [@(:include - 1 - - 0 - - -14 - - - 2 - decl:)@] - - - - - 0 - - -35 - - - - 0 - - 0 @@ -3685,18 +3626,7 @@ - 3 - 2 - [@(:include - 1 - - 0 - - -9 - - - 2 - decl:)@] + 0 @@ -3714,65 +3644,18 @@ 0 - -38 + -11 - 11 - 2 - [@(:include - 1 - - 0 - - -43 - - - 2 - def:) (:include - 1 - - 0 - - -44 - - - 2 - decl:) typedef (:link - 1 - - 0 - - -44 - - - 2 - :)<struct tag_throw_function,char const *> throw_function; typedef (:link - 1 - - 0 - - -44 - - - 2 - :)<struct tag_throw_file,char const *> throw_file; typedef (:link - 1 - - 0 - - -44 - - - 2 - :)<struct tag_throw_line,int> throw_line;@] + 0 0 - -39 + -45 @@ -3783,7 +3666,7 @@ 0 - -33 + -36 2 @@ -3792,7 +3675,7 @@ 0 - -20 + -25 2 @@ -3801,7 +3684,7 @@ 0 - -10 + -17 2 @@ -3819,46 +3702,13 @@ 0 - -6 + -35 2 decl:)@] - - - 0 - - -40 - - - - 0 - - - - - 0 - - -41 - - - - 0 - - - - - 0 - - -45 - - - - 0 - - 0 @@ -3867,40 +3717,18 @@ - 0 - - - - - 0 - - -44 - - - - 0 - - - - - 0 - - -46 - - - - 0 - - - - - 0 - - -42 - - - - 0 + 3 + 2 + [@(:include + 1 + + 0 + + -18 + + + 2 + decl:)@] @@ -3914,6 +3742,37 @@ 0 + + + 0 + + -46 + + + + 5 + 2 + [@(:include + 1 + + 0 + + -37 + + + 2 + decl:) namespace boost { (:include + 1 + + 0 + + -30 + + + 2 + decl:) }@] + + 0 @@ -3925,6 +3784,234 @@ 0 + + + 0 + + -41 + + + + 3 + 2 + [@(:include + 1 + + 0 + + -16 + + + 2 + decl:)@] + + + + + 0 + + -40 + + + + 3 + 2 + [@(:include + 1 + + 0 + + -28 + + + 2 + decl:)@] + + + + + 0 + + -49 + + + + 0 + + + + + 0 + + -35 + + + + 0 + + + + + 0 + + -10 + + + + 0 + + + + + 0 + + -44 + + + + 5 + 2 + [@(:include + 1 + + 0 + + -19 + + + 2 + def:) (:include + 1 + + 0 + + -15 + + + 2 + decl:)@] + + + + + 0 + + -39 + + + + 15 + 2 + [@#include <(:link + 1 + + 0 + + -40 + + + 2 + :)> #include <(:link + 1 + + 0 + + -42 + + + 2 + :)> #include <(:link + 1 + + 0 + + -26 + + + 2 + :)> #include <(:link + 1 + + 0 + + -43 + + + 2 + :)> #include <(:link + 1 + + 0 + + -44 + + + 2 + :)> #include <(:link + 1 + + 0 + + -5 + + + 2 + :)> #include <(:link + 1 + + 0 + + -45 + + + 2 + :)>@] + + + + + 0 + + -42 + + + + 3 + 2 + [@(:include + 1 + + 0 + + -19 + + + 2 + decl:)@] + + + + + 0 + + -38 + + + + 0 + + + + + 0 + + -34 + + + + 0 + + @@ -3932,13 +4019,13 @@ decl - 51 + 52 reno_layer - 44 + 45 0 @@ -3947,36 +4034,7 @@ - 7 - 2 - [@(:link - 1 - - 0 - - -5 - - - 2 - mod="m":)(); (:link - 1 - - 0 - - -5 - - - 2 - mod="m":)( (:link - 1 - - 0 - - -43 - - - 2 - :) const & x );@] + 0 @@ -3987,9 +4045,9 @@ - 5 + 3 2 - [@void (:link + [@(:link 1 0 @@ -3998,16 +4056,7 @@ 2 - :)( (:link - 1 - - 0 - - -20 - - - 2 - :) const & ep ); + mod="m":)();@] @@ -4029,7 +4078,18 @@ - 0 + 3 + 2 + [@class (:link + 1 + + 0 + + -8 + + + 2 + :);@] @@ -4039,59 +4099,6 @@ -9 - - 3 - 2 - [@template <class T> ---unspecified--- (:link - 1 - - 0 - - -9 - - - 2 - :)( T const & x );@] - - - - - 0 - - -10 - - - - 5 - 2 - [@template <class T> (:link - 1 - - 0 - - -20 - - - 2 - :) (:link - 1 - - 0 - - -10 - - - 2 - :)( T const & e );@] - - - - - 0 - - -11 - - 0 @@ -4111,7 +4118,7 @@ 0 - -20 + -25 2 @@ -4146,18 +4153,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 - - -14 - - - 2 - :)( E const & x );@] + 0 @@ -4168,18 +4164,9 @@ - 19 + 5 2 - [@#if !defined( BOOST_NO_EXCEPTIONS ) && !defined( BOOST_EXCEPTION_DISABLE ) #include < - 1 - - 0 - - -38 - - - 2 - > #include <boost/current_function.hpp> #define + [@template <class E, class Tag, class T> E const & (:link 1 0 @@ -4188,70 +4175,16 @@ 2 - (x)\ ::boost:: + mod="/":)( E const & x, (:link 1 0 - -31 + -19 2 - ( ::boost:: - 1 - - 0 - - -9 - - - 2 - (x) <<\ ::boost::(:link - 1 - - 0 - - -38 - - - 2 - |throw_function:)(BOOST_CURRENT_FUNCTION) <<\ ::boost::(:link - 1 - - 0 - - -38 - - - 2 - |throw_file:)(__FILE__) <<\ ::boost::(:link - 1 - - 0 - - -38 - - - 2 - |throw_line:)((int)__LINE__) ) #else #define - 1 - - 0 - - -15 - - - 2 - (x) ::boost:: - 1 - - 0 - - -31 - - - 2 - (x) #endif@] + :)<Tag,T> const & v );@] @@ -4262,7 +4195,18 @@ - 0 + 3 + 2 + [@template <class T> ---unspecified--- (:link + 1 + + 0 + + -16 + + + 2 + :)( T const & e );@] @@ -4273,7 +4217,27 @@ - 0 + 5 + 2 + [@template <class T> (:link + 1 + + 0 + + -25 + + + 2 + :) (:link + 1 + + 0 + + -17 + + + 2 + :)( T const & e );@] @@ -4284,7 +4248,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 + + -18 + + + 2 + :)( E const & x );@] @@ -4294,26 +4269,15 @@ -19 - - 0 - - - - - 0 - - -20 - - 3 2 - [@typedef ---unspecified--- (:link + [@template <class Tag,class T> class (:link 1 0 - -20 + -19 2 @@ -4324,31 +4288,42 @@ 0 - -21 + -20 5 2 - [@std::string (:link + [@(:link 1 0 - -21 + -22 2 - :)( boost::(:link + mod="m":) const & (:link 1 0 - -43 + -20 2 - :) const & );@] + mod="m":)() const;@] + + + + + 0 + + -21 + + + + 0 @@ -4359,7 +4334,18 @@ - 0 + 3 + 2 + [@typedef T (:link + 1 + + 0 + + -22 + + + 2 + mod="m":);@] @@ -4392,7 +4378,18 @@ - 0 + 3 + 2 + [@typedef ---unspecified--- (:link + 1 + + 0 + + -25 + + + 2 + :);@] @@ -4414,18 +4411,7 @@ - 3 - 2 - [@template <class T> ---unspecified--- (:link - 1 - - 0 - - -27 - - - 2 - :)( T const & e );@] + 0 @@ -4436,7 +4422,27 @@ - 0 + 5 + 2 + [@std::string (:link + 1 + + 0 + + -28 + + + 2 + :)( boost::(:link + 1 + + 0 + + -8 + + + 2 + :) const & );@] @@ -4447,18 +4453,7 @@ - 3 - 2 - [@typedef T (:link - 1 - - 0 - - -29 - - - 2 - mod="m":);@] + 0 @@ -4469,7 +4464,27 @@ - 0 + 5 + 2 + [@#ifdef BOOST_NO_EXCEPTIONS void (:link + 1 + + 0 + + -30 + + + 2 + :)( std::exception const & e ); // user defined #else template <class E> void (:link + 1 + + 0 + + -30 + + + 2 + :)( E const & e ); #endif@] @@ -4482,7 +4497,7 @@ 5 2 - [@#ifdef BOOST_NO_EXCEPTIONS void (:link + [@(:link 1 0 @@ -4491,16 +4506,16 @@ 2 - :)( std::exception const & e ); // user defined #else template <class E> void (:link + mod="m":)( (:link 1 0 - -31 + -22 2 - :)( E const & e ); #endif@] + mod="m":) const & v );@] @@ -4527,7 +4542,7 @@ 0 - -44 + -19 2 @@ -4536,7 +4551,7 @@ 0 - -44 + -19 2 @@ -4550,48 +4565,6 @@ -33 - - 5 - 2 - [@class (:link - 1 - - 0 - - -33 - - - 2 - :): public std::exception public boost:: - 1 - - 0 - - -43 - - - 2 - { ---unspecified--- };@] - - - - - 0 - - -34 - - - - 0 - - - - - 0 - - -35 - - 0 @@ -4604,7 +4577,27 @@ - 0 + 5 + 2 + [@class (:link + 1 + + 0 + + -36 + + + 2 + :): public std::exception public boost:: + 1 + + 0 + + -8 + + + 2 + { ---unspecified--- };@] @@ -4615,9 +4608,18 @@ - 5 + 19 2 - [@template <class E, class Tag, class T> E const & (:link + [@#if !defined( BOOST_NO_EXCEPTIONS ) && !defined( BOOST_EXCEPTION_DISABLE ) #include < + 1 + + 0 + + -26 + + + 2 + > #include <boost/current_function.hpp> #define 1 0 @@ -4626,76 +4628,77 @@ 2 - mod="/":)( E const & x, (:link + (x)\ ::boost:: 1 0 - -44 + -30 2 - :)<Tag,T> const & v );@] - - - - - 0 - - -38 - - - - 0 - - - - - 0 - - -39 - - - - 0 - - - - - 0 - - -40 - - - - 5 - 2 - [@(:link + ( ::boost:: 1 0 - -29 + -34 2 - mod="m":) const & (:link + (x) <<\ ::boost::(:link 1 0 - -40 + -26 2 - mod="m":)() const;@] + |throw_function:)(BOOST_CURRENT_FUNCTION) <<\ ::boost::(:link + 1 + + 0 + + -26 + + + 2 + |throw_file:)(__FILE__) <<\ ::boost::(:link + 1 + + 0 + + -26 + + + 2 + |throw_line:)((int)__LINE__) ) #else #define + 1 + + 0 + + -37 + + + 2 + (x) ::boost:: + 1 + + 0 + + -30 + + + 2 + (x) #endif@] 0 - -41 + -11 @@ -4720,72 +4723,6 @@ -43 - - 3 - 2 - [@class (:link - 1 - - 0 - - -43 - - - 2 - :);@] - - - - - 0 - - -44 - - - - 3 - 2 - [@template <class Tag,class T> class (:link - 1 - - 0 - - -44 - - - 2 - :);@] - - - - - 0 - - -46 - - - - 3 - 2 - [@(:link - 1 - - 0 - - -46 - - - 2 - mod="m":)();@] - - - - - 0 - - -42 - - 0 @@ -4801,6 +4738,17 @@ 0 + + + 0 + + -46 + + + + 0 + + 0 @@ -4809,14 +4757,56 @@ - 5 + 0 + + + + + 0 + + -41 + + + + 0 + + + + + 0 + + -40 + + + + 0 + + + + + 0 + + -49 + + + + 7 2 [@(:link 1 0 - -48 + -49 + + + 2 + mod="m":)(); (:link + 1 + + 0 + + -49 2 @@ -4825,11 +4815,119 @@ 0 - -29 + -8 2 - mod="m":) const & v );@] + :) const & x );@] + + + + + 0 + + -35 + + + + 5 + 2 + [@void (:link + 1 + + 0 + + -35 + + + 2 + :)( (:link + 1 + + 0 + + -25 + + + 2 + :) const & ep ); + + + + + 0 + + -10 + + + + 0 + + + + + 0 + + -44 + + + + 0 + + + + + 0 + + -39 + + + + 0 + + + + + 0 + + -42 + + + + 0 + + + + + 0 + + -38 + + + + 0 + + + + + 0 + + -34 + + + + 3 + 2 + [@template <class T> ---unspecified--- (:link + 1 + + 0 + + -34 + + + 2 + :)( T const & x );@] @@ -4839,13 +4937,13 @@ include - 52 + 53 reno_layer - 44 + 45 0 @@ -4854,36 +4952,9 @@ - 7 + 1 2 - (:auto !!!:) (:include decl:) !!!!Effects: * Default constructor: initializes an empty boost::(:link - 1 - - 0 - - -43 - - - 2 - :) object. * Copy constructor: initializes a boost::(:link - 1 - - 0 - - -43 - - - 2 - :) object which shares ownership with x of all data added through (:link - 1 - - 0 - - -37 - - - 2 - mod="/":), including data that is added at a future time. !!!!Throws: Nothing. + (:auto !!:) !!!Synopsis (:include synopsis:) @@ -4894,9 +4965,18 @@ - 1 + 3 2 - (:auto !!!:) (:include synopsis:) !!!!Precondition: ep shall not be null. !!!!Throws: The exception to which ep refers. + (:auto !!!:) (:include decl:) !!!!Effects: Frees all resources associated with a boost::(:link + 1 + + 0 + + -8 + + + 2 + :) object. !!!!Throws: Nothing. @@ -4907,50 +4987,86 @@ - 11 + 19 2 - (:auto !!:) All exception types that derive from boost::(:link + (:auto !!:) Boost Exception provides a namespace-scope function (:link 1 0 - -43 + -28 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 + :) which takes a boost::(:link 1 0 - -43 + -8 2 - :) at the time of the throw, or at a later time. (:include + :). The returned string contains: *the string representation of all data objects added to the boost::(:link 1 0 - -19 + -8 2 - :) (:include + :) through (:link 1 0 - -47 + -15 2 - :) (:include + mod="/":); *the output from std::exception::what; *additional platform-specific diagnostic information. The returned string is not presentable as a friendly user message, but because it is generated automatically, it is useful for debugging or logging purposes. Here is an example: [@#include <(:link 1 0 - -35 + -39 + + + 2 + :)> #include <iostream> void f(); //throws unknown types that derive from boost::(:link + 1 + + 0 + + -8 + + + 2 + :). void g() { try { f(); } catch( boost::(:link + 1 + + 0 + + -8 + + + 2 + :) & e ) { std::cerr << (:link + 1 + + 0 + + -28 + + + 2 + :)(e); } }@] (:include + 1 + + 0 + + -14 2 @@ -4965,9 +5081,63 @@ - 1 + 13 2 - (:auto !!:) !!!Synopsis (:include synopsis:) + (:auto !!!:) (:include synopsis:) Class boost::(:link + 1 + + 0 + + -8 + + + 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 + + -8 + + + 2 + :) can store data of arbitrary types, using the (:link + 1 + + 0 + + -19 + + + 2 + :) wrapper and (:link + 1 + + 0 + + -15 + + + 2 + mod="/":). To retrieve data from a boost::(:link + 1 + + 0 + + -8 + + + 2 + :) object, use the (:link + 1 + + 0 + + -18 + + + 2 + :) function template. @@ -4978,71 +5148,144 @@ - 5 + 31 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 + (:auto !!!:) Traditionally, when using exceptions to report failures, the throw site: *creates an exception object of appropriate type, and *stuffs it with data relevant to the detected error. A higher context contains a catch statement which: *selects failures based on exception types, and *inspects exception objects for data required to deal with the problem. The main issue with this "traditional" approach is that often, the data available at the point of the throw is insufficient to handle the failure at the catch site. Here is an example of a catch statement: [@catch( file_read_error & e ) { std::cerr << e.file_name(); }@] And here is a possible matching throw: [@void read_file( FILE * f ) { .... size_t nr=fread(buf,1,count,f); if( ferror(f) ) throw file_read_error(???); .... }@] Clearly, the problem is that the handler requires a file name but the read_file function does not have a file name to put in the exception object; all it has is a FILE pointer! In an attempt to deal with this problem, we could modify read_file to accept a file name: [@void read_file( FILE * f, char const * name ) { .... size_t nr=fread(buf,1,count,f); if( ferror(f) ) throw file_read_error(name); .... }@] This is not a real solution: it simply shifts the burden of supplying a file name to the immediate caller of the read_file function. ->''In general, the data required to handle a given library-emitted exception depends on the program that links to it. Many contexts between the throw and the catch may have relevant information which must be transported to the exception handler.'' !!!Exception wrapping The idea of exception wrapping is to catch an exception from a lower level function (such as the read_file function above), and throw a new exception object that contains the original exception (and also carries a file name.) This method seems to be particularly popular with C++ programmers with Java background. Exception wrapping leads to the following problems: #To wrap an exception object it must be copied, which may result in slicing. #Wrapping is practically impossible to use in generic contexts. The second point is actually a special case of violating the exception neutrality principle. Most contexts in a program can not handle exceptions; such contexts should not interfere with the process of exception handling. !!!The Boost way *Simply derive your exception types from boos:: 1 0 - -43 + -8 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 + . *Confidently limit the throw site to provide only data that is available naturally. *Use exception-neutral contexts between the throw and the catch to augment exceptions with more relevant data as they bubble up. In the throw statement below, we only add the errno code, since this is the only failure-relevant information available in this context: [@struct exception_base: virtual std::exception, virtual boost:: 1 0 - -43 + -8 2 - :). The T sub-object is initialized from x by the T copy constructor. !!!!Throws: Nothing. - - - - - 0 - - -10 - - - - 5 - 2 - (:auto !!!:) (:include synopsis:) !!!!Effects: As if [@try { throw + { }; struct file_read_error: virtual exception_base { }; typedef boost:: 1 0 - -27 + -19 2 - (e); } catch(...) { return (:link + <struct tag_errno_code,int> errno_code; void read_file( FILE * f ) { .... size_t nr=fread(buf,1,count,f); if( ferror(f) ) throw file_read_error() (:link 1 0 - -12 + -15 2 - :)(); }@] - - - - - 0 - - -11 - - - - 1 + |<<:) errno_code(errno); .... }@] In a higher exception-neutral context, we add the file name: [@typedef boost:: + 1 + + 0 + + -19 + + 2 - (:auto !!:) !!!Synopsis (:include synopsis:) + <struct tag_file_name,std::string> file_name; .... try { if( FILE * fp=fopen(“foo.txt”,”rt”) ) { shared_ptr<FILE> f(fp,fclose); .... read_file(fp); //throws types deriving from boost:: + 1 + + 0 + + -8 + + + 2 + do_something(); .... } else throw file_open_error() (:link + 1 + + 0 + + -15 + + + 2 + |<<:) errno_code(errno); } catch( boost:: + 1 + + 0 + + -8 + + + 2 + & e ) { e (:link + 1 + + 0 + + -15 + + + 2 + |<<:) file_name(“foo.txt”); throw; }@] And here is how the handler retreives data from exceptions that derive from boost:: + 1 + + 0 + + -8 + + + 2 + : [@catch( io_error & e ) { std::cerr << “I/O Error!\n”; if( shared_ptr<std::string const> fn= + 1 + + 0 + + -18 + + + 2 + <file_name>(e) ) std::cerr << “File name: “ << *fn << “\n”; if( shared_ptr<int const> c= + 1 + + 0 + + -18 + + + 2 + <errno_code>(e) ) std::cerr << “OS says: “ << strerror(*c) << “\n”; }@] !!!Exception types as simple semantic tags Deriving from boost:: + 1 + + 0 + + -8 + + + 2 + effectively decouples the semantics of a failure from the information that is relevant to each individual instance of reporting a failure with a given semantic. In other words: with boost:: + 1 + + 0 + + -8 + + + 2 + , what data a given exception object transports depends primarily on the context in which failures are reported (not on its type). Since exception types need no members, it becomes very natural to throw exceptions that derive from more than one type to indicate multiple appropriate semantics: [@struct exception_base: virtual std::exception, virtual boost:: + 1 + + 0 + + -8 + + + 2 + { }; struct io_error: virtual exception_base { }; struct file_error: virtual io_error { }; struct read_error: virtual io_error { }; struct file_read_error: virtual file_error, virtual read_error { };@] @@ -5069,7 +5312,7 @@ 0 - -20 + -25 2 @@ -5078,7 +5321,7 @@ 0 - -20 + -25 2 @@ -5105,7 +5348,7 @@ 0 - -27 + -16 2 @@ -5114,7 +5357,7 @@ 0 - -27 + -16 2 @@ -5132,7 +5375,7 @@ 0 - -20 + -25 2 @@ -5141,7 +5384,7 @@ 0 - -33 + -36 2 @@ -5150,7 +5393,7 @@ 0 - -43 + -8 2 @@ -5159,7 +5402,7 @@ 0 - -43 + -8 2 @@ -5168,7 +5411,7 @@ 0 - -33 + -36 2 @@ -5177,7 +5420,7 @@ 0 - -43 + -8 2 @@ -5192,90 +5435,9 @@ - 19 + 1 2 - (:auto !!:) Boost Exception provides a namespace-scope function (:link - 1 - - 0 - - -21 - - - 2 - :) which takes a boost::(:link - 1 - - 0 - - -43 - - - 2 - :). The returned string contains: *the string representation of all data objects added to the boost::(:link - 1 - - 0 - - -43 - - - 2 - :) through (:link - 1 - - 0 - - -37 - - - 2 - mod="/":); *the output from std::exception::what; *additional platform-specific diagnostic information. The returned string is not presentable as a friendly user message, but because it is generated automatically, it is useful for debugging or logging purposes. Here is an example: [@#include <(:link - 1 - - 0 - - -8 - - - 2 - :)> #include <iostream> void f(); //throws unknown types that derive from boost::(:link - 1 - - 0 - - -43 - - - 2 - :). void g() { try { f(); } catch( boost::(:link - 1 - - 0 - - -43 - - - 2 - :) & e ) { std::cerr << (:link - 1 - - 0 - - -21 - - - 2 - :)(e); } }@] (:include - 1 - - 0 - - -23 - - - 2 - :) + (:auto !!!:) !!!Synopsis (:include synopsis:) @@ -5286,63 +5448,18 @@ - 13 + 3 2 - (:auto !!!:) (:include synopsis:) !!!!Requirements: * ErrorInfo must be an instance of the (:link + !!!!Example: this is a possible output from the (:link 1 0 - -44 + -28 2 - :) template. * E must be polymorphic. * The (:link - 1 - - 0 - - -14 - - - 2 - :) function must not be called outside of a catch block. !!!!Returns: * If dynamic_cast<boost::(:link - 1 - - 0 - - -43 - - - 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 - - -37 - - - 2 - mod="/":) to store values in exception objects.) The shared_ptr is valid even after x has been destroyed. !!!!Throws: Nothing. !!!!Note: The interface of (:link - 1 - - 0 - - -14 - - - 2 - :) may be affected by the build (:link - 1 - - 0 - - -17 - - - 2 - :). + :) function, as used in ''libs/exception/example/example_io.cpp:'' [@libs\exception\example\example_io.cpp(83): Throw in function class boost::shared_ptr<struct _iobuf> __cdecl my_fopen(const char *,const char *) Dynamic exception type: class boost::exception_detail::clone_impl<class fopen_error> std::exception::what: example_io error [struct tag_errno *] = 2, OS says "No such file or directory" [struct tag_file_name *] = tmp1.txt [struct tag_function *] = fopen [struct tag_open_mode *] = rb@] @@ -5355,34 +5472,34 @@ 7 2 - (:auto !!!:) (:include synopsis:) This macro takes an exception object, records BOOST_CURRENT_FUNCTION, __FILE__ and __LINE__ in it, and forwards it to + (:auto !!!:) (:include synopsis:) !!!!Requirements: E must be boost::(:link 1 0 - -31 + -8 2 - . To recover this information at the catch site, use + :), or a type that derives (indirectly) from boost::(:link 1 0 - -14 + -8 2 - ; the information is also included in the message returned by + :). !!!!Effects: Stores a copy of v into x. If x already contains data of type (:link 1 0 - -21 + -19 2 - . + :)<Tag,T>, that data is overwritten. !!!!Returns: x. (:include throws:) @@ -5393,9 +5510,99 @@ - 1 + 21 2 - (:auto !!:) !!!Synopsis (:include synopsis:) + (:auto !!!:) (:include synopsis:) !!!!Requirements: T must be a class with an accessible no-throw copy constructor. !!!!Returns: An object of ''unspecified'' type which derives publicly from T. That is, the returned object can be intercepted by a catch(T &). !!!!Description: This function is designed to be used directly in a throw-expression to enable the (:link + 1 + + 0 + + -25 + + + 2 + :) support in Boost Exception. For example: [@class my_exception: public std::exception { }; .... throw boost::(:link + 1 + + 0 + + -16 + + + 2 + :)(my_exception());@] Unless (:link + 1 + + 0 + + -16 + + + 2 + :) is called at the time an exception object is used in a throw-expression, an attempt to copy it using (:link + 1 + + 0 + + -12 + + + 2 + :) may return an (:link + 1 + + 0 + + -25 + + + 2 + :) which refers to an instance of (:link + 1 + + 0 + + -36 + + + 2 + :). See (:link + 1 + + 0 + + -12 + + + 2 + :) for details. !!!!Note: Instead of using the throw keyword directly, it is preferable to call boost::(:link + 1 + + 0 + + -30 + + + 2 + :). This is guaranteed to throw an exception that derives from boost::(:link + 1 + + 0 + + -8 + + + 2 + :) and supports the (:link + 1 + + 0 + + -25 + + + 2 + :) functionality. @@ -5406,72 +5613,27 @@ - 15 + 5 2 - (:auto !!!:) Boost Exception responds to the following configuration macros: '''BOOST_NO_RTTI'''\\ '''BOOST_NO_TYPEID''' The first macro prevents Boost Exception from using dynamic_cast and dynamic typeid. If the second macro is also defined, Boost Exception does not use static typeid either. There are no observable degrading effects on the library functionality, except for the following: ->By default, the (:link + (:auto !!!:) (:include synopsis:) !!!!Effects: As if [@try { throw 1 0 - -14 + -16 2 - :) function template can be called with any exception type. If BOOST_NO_RTTI is defined, (:link + (e); } catch(...) { return (:link 1 0 - -14 + -12 2 - :) can be used only with objects of type boost::(:link - 1 - - 0 - - -43 - - - 2 - :). '''BOOST_EXCEPTION_DISABLE''' By default, (:link - 1 - - 0 - - -27 - - - 2 - :) and (:link - 1 - - 0 - - -9 - - - 2 - :) are integrated directly in the (:link - 1 - - 0 - - -31 - - - 2 - :) function. Defining BOOST_EXCEPTION_DISABLE disables this integration. Note that on some non-conformant compilers, for example MSVC 7.0 and older, as well as BCC, BOOST_EXCEPTION_DISABLE is implicitly defined in (:link - 1 - - 0 - - -24 - - - 2 - :). + :)(); }@] @@ -5482,9 +5644,63 @@ - 1 + 13 2 - (:auto !!!:) !!!Synopsis (:include synopsis:) + (:auto !!!:) (:include synopsis:) !!!!Requirements: * ErrorInfo must be an instance of the (:link + 1 + + 0 + + -19 + + + 2 + :) template. * E must be polymorphic. * The (:link + 1 + + 0 + + -18 + + + 2 + :) function must not be called outside of a catch block. !!!!Returns: * If dynamic_cast<boost::(:link + 1 + + 0 + + -8 + + + 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 + + -15 + + + 2 + mod="/":) to store values in exception objects.) The shared_ptr is valid even after x has been destroyed. !!!!Throws: Nothing. !!!!Note: The interface of (:link + 1 + + 0 + + -18 + + + 2 + :) may be affected by the build (:link + 1 + + 0 + + -38 + + + 2 + :). @@ -5495,9 +5711,27 @@ - 17 + 25 2 - (:auto !!!:) The following example demonstrates how errno can be stored in exception objects using Boost Exception: [@#include <(:link + (: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 + + -19 + + + 2 + :)<Tag,T> can be passed to (:link + 1 + + 0 + + -15 + + + 2 + mod="/":) to be stored in objects of type boost::(:link 1 0 @@ -5506,7 +5740,79 @@ 2 - :)> #include <errno.h> #include <iostream> typedef boost::(:link + :). !!!!Note: The header <(:link + 1 + + 0 + + -42 + + + 2 + :)> provides a declaration of the (:link + 1 + + 0 + + -19 + + + 2 + :) template, which is sufficient for the purpose of typedefing an instance for specific Tag and T, like this: [@#include <(:link + 1 + + 0 + + -42 + + + 2 + :)> typedef boost::(:link + 1 + + 0 + + -19 + + + 2 + :)<struct tag_errno,int> errno_info;@] Of course, to actually add an (:link + 1 + + 0 + + -19 + + + 2 + :) object to (:link + 1 + + 0 + + -8 + + + 2 + mod="p":) using (:link + 1 + + 0 + + -15 + + + 2 + mod="/":), or to retrieve it using (:link + 1 + + 0 + + -18 + + + 2 + :), you must first #include <(:link 1 0 @@ -5515,61 +5821,7 @@ 2 - :)<struct tag_errno,int> errno_info; //(1) class my_error: public boost::(:link - 1 - - 0 - - -43 - - - 2 - :), public std::exception { }; //(2) void f() { throw my_error() << errno_info(errno); //(3) } @] First, we instantiate the (:link - 1 - - 0 - - -44 - - - 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 - - -43 - - - 2 - :). Finally, (3) illustrates how the typedef from (1) can be used with (:link - 1 - - 0 - - -37 - - - 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 - - -14 - - - 2 - :)<errno_info>(x) ) std::cerr << "Error code: " << *err; } }@] The (:link - 1 - - 0 - - -14 - - - 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. + :)>. @@ -5579,6 +5831,305 @@ -20 + + 5 + 2 + (:auto !!!:) (:include synopsis:) !!!!Description: Returns a const reference to the copy of the value passed to (:link + 1 + + 0 + + -19 + + + 2 + :)'s constructor stored in the (:link + 1 + + 0 + + -19 + + + 2 + :) object. !!!!Throws: Nothing. + + + + + 0 + + -21 + + + + 11 + 2 + (:auto !!!:) Here is how cloning can be enabled in a throw-expression (15.1): [@#include <(:link + 1 + + 0 + + -44 + + + 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 + + -8 + + + 2 + :) { }; void file_read( FILE * f, void * buffer, size_t size ) { if( size!=fread(buffer,1,size,f) ) throw boost::(:link + 1 + + 0 + + -16 + + + 2 + :)(file_read_error()) << errno_info(errno); }@] Of course, (:link + 1 + + 0 + + -16 + + + 2 + :) may be used with any exception type; there is no requirement that it should derive from boost::(:link + 1 + + 0 + + -8 + + + 2 + :). + + + + + 0 + + -22 + + + + 5 + 2 + (:auto !!!:) (:include synopsis:) !!!!Definition: The expression + 1 + + 0 + + -19 + + + 2 + <Tag,T>::(:link + 1 + + 0 + + -22 + + + 2 + mod="m":) evaluates to T. + + + + + 0 + + -23 + + + + 17 + 2 + (:auto !!!:) The following example demonstrates how errno can be stored in exception objects using Boost Exception: [@#include <(:link + 1 + + 0 + + -39 + + + 2 + :)> #include <errno.h> #include <iostream> typedef boost::(:link + 1 + + 0 + + -19 + + + 2 + :)<struct tag_errno,int> errno_info; //(1) class my_error: public boost::(:link + 1 + + 0 + + -8 + + + 2 + :), public std::exception { }; //(2) void f() { throw my_error() << errno_info(errno); //(3) } @] First, we instantiate the (:link + 1 + + 0 + + -19 + + + 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 + + -8 + + + 2 + :). Finally, (3) illustrates how the typedef from (1) can be used with (:link + 1 + + 0 + + -15 + + + 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 + + -18 + + + 2 + :)<errno_info>(x) ) std::cerr << "Error code: " << *err; } }@] The (:link + 1 + + 0 + + -18 + + + 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 + + -24 + + + + 19 + 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. Let's say we have an exception type file_read_error, which takes a file name in its constructor. Consider the following function: [@void file_read( FILE * f, void * buffer, size_t size ) { if( size!=fread(buffer,1,size,f) ) throw file_read_error(????); }@] How can the file_read function pass a file name to the exception type constructor? All it has is a FILE handle. Using boost:: + 1 + + 0 + + -8 + + + 2 + allows us to free the file_read function from the burden of storing the file name in exceptions it throws: [@#include <(:link + 1 + + 0 + + -39 + + + 2 + :)> #include <stdio.h> #include <errno.h> typedef boost::(:link + 1 + + 0 + + -19 + + + 2 + :)<struct tag_errno,int> errno_info; class file_read_error: public boost::(:link + 1 + + 0 + + -8 + + + 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 + + -39 + + + 2 + :)> #include <boost/shared_ptr.hpp> #include <stdio.h> #include <string> typedef boost::(:link + 1 + + 0 + + -19 + + + 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 + + -8 + + + 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 + + -8 + + + 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 + + -8 + + + 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''. + + + + + 0 + + -25 + + 17 2 @@ -5587,7 +6138,7 @@ 0 - -20 + -25 2 @@ -5596,7 +6147,7 @@ 0 - -20 + -25 2 @@ -5605,7 +6156,7 @@ 0 - -20 + -25 2 @@ -5614,7 +6165,7 @@ 0 - -20 + -25 2 @@ -5623,7 +6174,7 @@ 0 - -20 + -25 2 @@ -5632,7 +6183,7 @@ 0 - -20 + -25 2 @@ -5650,231 +6201,13 @@ 0 - -6 + -35 2 :) concurrently to throw the same exception object into multiple threads. - - - 0 - - -21 - - - - 23 - 2 - (:auto !!!:) (:include synopsis:) !!!!Returns: This function returns a string value that is automatically composed from the string representations of all (:link - 1 - - 0 - - -44 - - - 2 - :) objects stored in a boost::(:link - 1 - - 0 - - -43 - - - 2 - :) through (:link - 1 - - 0 - - -37 - - - 2 - mod="/":), along with other diagnostic information relevant to the exception. The string representation of each (:link - 1 - - 0 - - -44 - - - 2 - :) object is deduced by a function call that is bound at the time the (:link - 1 - - 0 - - -44 - - - 2 - :)<Tag,T> template is instantiated. The following overload resolutions are attempted in order: #Unqualified call to to_string(x), where x is of type (:link - 1 - - 0 - - -44 - - - 2 - :)<Tag,T> (the return value is expected to be of type std::string.) #Unqualified call to to_string(x.(:link - 1 - - 0 - - -40 - - - 2 - mod="m":)()) (the return value is expected to be of type std::string.) #Unqualified call to s << x.(:link - 1 - - 0 - - -40 - - - 2 - mod="m":)(), where s is a std::ostringstream. The first successfully bound function is used at the time (:link - 1 - - 0 - - -21 - - - 2 - :) is called; if all 3 overload resolutions are unsuccessful, the system is unable to convert the (:link - 1 - - 0 - - -44 - - - 2 - :) object to string, and ''an unspecified stub string value is used without issuing a compile error.'' !!!!Notes: *The format of the returned string is unspecified. *The returned string is ''not'' user-friendly. *If dynamic_cast<std::exception const *>(&x) is not null, the returned string includes the output from std::exception::what. *The returned string may include additional platform-specific diagnostic information. (:include - 1 - - 0 - - -23 - - - 2 - :) - - - - - 0 - - -22 - - - - 1 - 2 - (:auto !!:) !!!Synopsis (:include synopsis:) - - - - - 0 - - -23 - - - - 3 - 2 - !!!!Example: this is a possible output from the (:link - 1 - - 0 - - -21 - - - 2 - :) function, as used in ''libs/exception/example/example_io.cpp:'' [@libs\exception\example\example_io.cpp(83): Throw in function class boost::shared_ptr<struct _iobuf> __cdecl my_fopen(const char *,const char *) Dynamic exception type: class boost::exception_detail::clone_impl<class fopen_error> std::exception::what: example_io error [struct tag_errno *] = 2, OS says "No such file or directory" [struct tag_file_name *] = tmp1.txt [struct tag_function *] = fopen [struct tag_open_mode *] = rb@] - - - - - 0 - - -24 - - - - 1 - 2 - (:auto !!:) !!!Synopsis (:include synopsis:) - - - - - 0 - - -25 - - - - 11 - 2 - (:auto !!!:) Here is how cloning can be enabled in a throw-expression (15.1): [@#include <(:link - 1 - - 0 - - -11 - - - 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 - - -43 - - - 2 - :) { }; void file_read( FILE * f, void * buffer, size_t size ) { if( size!=fread(buffer,1,size,f) ) throw boost::(:link - 1 - - 0 - - -27 - - - 2 - :)(file_read_error()) << errno_info(errno); }@] Of course, (:link - 1 - - 0 - - -27 - - - 2 - :) may be used with any exception type; there is no requirement that it should derive from boost::(:link - 1 - - 0 - - -43 - - - 2 - :). - - 0 @@ -5896,99 +6229,7 @@ - 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 - 1 - - 0 - - -20 - - - 2 - :) support in Boost Exception. For example: [@class my_exception: public std::exception { }; .... throw boost::(:link - 1 - - 0 - - -27 - - - 2 - :)(my_exception());@] Unless (:link - 1 - - 0 - - -27 - - - 2 - :) is called at the time an exception object is used in a throw-expression, an attempt to copy it using (:link - 1 - - 0 - - -12 - - - 2 - :) may return an (:link - 1 - - 0 - - -20 - - - 2 - :) which refers to an instance of (:link - 1 - - 0 - - -33 - - - 2 - :). See (:link - 1 - - 0 - - -12 - - - 2 - :) for details. !!!!Note: Instead of using the throw keyword directly, it is preferable to call boost::(:link - 1 - - 0 - - -31 - - - 2 - :). This is guaranteed to throw an exception that derives from boost::(:link - 1 - - 0 - - -43 - - - 2 - :) and supports the (:link - 1 - - 0 - - -20 - - - 2 - :) functionality. + 0 @@ -5999,36 +6240,18 @@ - 27 + 23 2 - (:auto !!:) Some exception hierarchies can not be modified to make boost::(:link + (:auto !!!:) (:include synopsis:) !!!!Returns: This function returns a string value that is automatically composed from the string representations of all (:link 1 0 - -43 + -19 2 - :) a base type. In this case, the (:link - 1 - - 0 - - -9 - - - 2 - :) function template can be used to make exception objects derive from boost::(:link - 1 - - 0 - - -43 - - - 2 - :) anyway. Here is an example: [@#include <(:link + :) objects stored in a boost::(:link 1 0 @@ -6037,88 +6260,88 @@ 2 - :)> #include <stdexcept> typedef boost::(:link + :) through (:link 1 0 - -44 + -15 2 - :)<struct tag_std_range_min,size_t> std_range_min; typedef boost::(:link + mod="/":), along with other diagnostic information relevant to the exception. The string representation of each (:link 1 0 - -44 + -19 2 - :)<struct tag_std_range_max,size_t> std_range_max; typedef boost::(:link + :) object is deduced by a function call that is bound at the time the (:link 1 0 - -44 + -19 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 + :)<Tag,T> template is instantiated. The following overload resolutions are attempted in order: #Unqualified call to to_string(x), where x is of type (:link 1 0 - -9 + -19 2 - :)(std::range_error("Index out of range")) << std_range_min(0) << std_range_max(size()) << std_range_index(i); //.... } }; @] The call to (:link + :)<Tag,T> (the return value is expected to be of type std::string.) #Unqualified call to to_string(x.(:link 1 0 - -9 + -20 2 - :)<T> gets us an object of ''unspecified type'' which is guaranteed to derive from both boost::(:link + mod="m":)()) (the return value is expected to be of type std::string.) #Unqualified call to s << x.(:link 1 0 - -43 + -20 2 - :) and T. This makes it possible to use (:link + mod="m":)(), where s is a std::ostringstream. The first successfully bound function is used at the time (:link 1 0 - -37 + -28 2 - mod="/":) to store additional information in the exception object. The exception can be intercepted as T &, so existing exception handling will not break. It can also be intercepted as boost::(:link + :) is called; if all 3 overload resolutions are unsuccessful, the system is unable to convert the (:link 1 0 - -43 + -19 2 - :) &, so that (:link + :) object to string, and ''an unspecified stub string value is used without issuing a compile error.'' !!!!Notes: *The format of the returned string is unspecified. *The returned string is ''not'' user-friendly. *If dynamic_cast<std::exception const *>(&x) is not null, the returned string includes the output from std::exception::what. *The returned string may include additional platform-specific diagnostic information. (:include 1 0 - -7 + -14 2 - |more information can be added to the exception at a later time:). + :) @@ -6129,27 +6352,54 @@ - 5 + 11 2 - (:auto !!!:) (:include synopsis:) !!!!Definition: The expression + (: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 - -44 + -16 2 - <Tag,T>::(:link + :) at the time of the throw is required in order to use cloning. !!!!Note: All exceptions emitted by the familiar function boost::(:link 1 0 - -29 + -30 2 - mod="m":) evaluates to T. + :) are guaranteed to derive from boost::(:link + 1 + + 0 + + -8 + + + 2 + :) and to support cloning. (:include + 1 + + 0 + + -21 + + + 2 + :) (:include + 1 + + 0 + + -48 + + + 2 + :) @@ -6160,7 +6410,63 @@ - 0 + 13 + 2 + (:auto !!!:) (:include synopsis:) !!!!Requirements: E must derive publicly from std::exception. !!!!Effects: * If BOOST_NO_EXCEPTIONS is not defined, boost::(:link + 1 + + 0 + + -30 + + + 2 + :)(e) is equivalent to throw boost::(:link + 1 + + 0 + + -16 + + + 2 + :)(boost::(:link + 1 + + 0 + + -34 + + + 2 + :)(e)), unless BOOST_EXCEPTION_DISABLE is defined, in which case boost::(:link + 1 + + 0 + + -30 + + + 2 + :)(e) is equivalent to throw e; * If BOOST_NO_EXCEPTIONS is defined, the function is left undefined, and the user is expected to supply an appropriate definition. Callers of (:link + 1 + + 0 + + -30 + + + 2 + :) are allowed to assume that the function never returns; therefore, if the user-defined (:link + 1 + + 0 + + -30 + + + 2 + :) returns, the behavior is undefined. @@ -6171,63 +6477,18 @@ - 13 + 3 2 - (:auto !!!:) (:include synopsis:) !!!!Requirements: E must derive publicly from std::exception. !!!!Effects: * If BOOST_NO_EXCEPTIONS is not defined, boost::(:link + (:auto !!!:) (:include synopsis:) !!!!Effects: Stores a copy of v in the 1 0 - -31 + -19 2 - :)(e) is equivalent to throw boost::(:link - 1 - - 0 - - -27 - - - 2 - :)(boost::(:link - 1 - - 0 - - -9 - - - 2 - :)(e)), unless BOOST_EXCEPTION_DISABLE is defined, in which case boost::(:link - 1 - - 0 - - -31 - - - 2 - :)(e) is equivalent to throw e; * If BOOST_NO_EXCEPTIONS is defined, the function is left undefined, and the user is expected to supply an appropriate definition. Callers of (:link - 1 - - 0 - - -31 - - - 2 - :) are allowed to assume that the function never returns; therefore, if the user-defined (:link - 1 - - 0 - - -31 - - - 2 - :) returns, the behavior is undefined. + object. (:include throws:) @@ -6245,7 +6506,7 @@ 0 - -43 + -8 2 @@ -6254,7 +6515,7 @@ 0 - -43 + -8 2 @@ -6268,6 +6529,17 @@ -33 + + 0 + + + + + 0 + + -36 + + 5 2 @@ -6276,7 +6548,7 @@ 0 - -20 + -25 2 @@ -6296,7 +6568,177 @@ 0 - -34 + -37 + + + + 7 + 2 + (:auto !!!:) (:include synopsis:) This macro takes an exception object, records BOOST_CURRENT_FUNCTION, __FILE__ and __LINE__ in it, and forwards it to + 1 + + 0 + + -30 + + + 2 + . To recover this information at the catch site, use + 1 + + 0 + + -18 + + + 2 + ; the information is also included in the message returned by + 1 + + 0 + + -28 + + + 2 + . + + + + + 0 + + -11 + + + + 27 + 2 + (:auto !!:) Some exception hierarchies can not be modified to make boost::(:link + 1 + + 0 + + -8 + + + 2 + :) a base type. In this case, the (:link + 1 + + 0 + + -34 + + + 2 + :) function template can be used to make exception objects derive from boost::(:link + 1 + + 0 + + -8 + + + 2 + :) anyway. Here is an example: [@#include <(:link + 1 + + 0 + + -39 + + + 2 + :)> #include <stdexcept> typedef boost::(:link + 1 + + 0 + + -19 + + + 2 + :)<struct tag_std_range_min,size_t> std_range_min; typedef boost::(:link + 1 + + 0 + + -19 + + + 2 + :)<struct tag_std_range_max,size_t> std_range_max; typedef boost::(:link + 1 + + 0 + + -19 + + + 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 + + -34 + + + 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 + + -34 + + + 2 + :)<T> gets us an object of ''unspecified type'' which is guaranteed to derive from both boost::(:link + 1 + + 0 + + -8 + + + 2 + :) and T. This makes it possible to use (:link + 1 + + 0 + + -15 + + + 2 + mod="/":) to store additional information in the exception object. The exception can be intercepted as T &, so existing exception handling will not break. It can also be intercepted as boost::(:link + 1 + + 0 + + -8 + + + 2 + :) &, so that (:link + 1 + + 0 + + -10 + + + 2 + |more information can be added to the exception at a later time:). + + + + + 0 + + -45 @@ -6309,7 +6751,20 @@ 0 - -35 + -43 + + + + 1 + 2 + (:auto !!:) !!!Synopsis (:include synopsis:) + + + + + 0 + + -47 @@ -6320,7 +6775,7 @@ 0 - -22 + -5 2 @@ -6329,7 +6784,7 @@ 0 - -44 + -19 2 @@ -6338,7 +6793,7 @@ 0 - -44 + -19 2 @@ -6347,7 +6802,7 @@ 0 - -44 + -19 2 @@ -6356,7 +6811,7 @@ 0 - -43 + -8 2 @@ -6365,7 +6820,7 @@ 0 - -14 + -18 2 @@ -6376,60 +6831,7 @@ 0 - -36 - - - - 1 - 2 - (:auto !!!:) !!!Synopsis (:include synopsis:) - - - - - 0 - - -37 - - - - 7 - 2 - (:auto !!!:) (:include synopsis:) !!!!Requirements: E must be boost::(:link - 1 - - 0 - - -43 - - - 2 - :), or a type that derives (indirectly) from boost::(:link - 1 - - 0 - - -43 - - - 2 - :). !!!!Effects: Stores a copy of v into x. If x already contains data of type (:link - 1 - - 0 - - -44 - - - 2 - :)<Tag,T>, that data is overwritten. !!!!Returns: x. (:include throws:) - - - - - 0 - - -38 + -46 @@ -6442,62 +6844,7 @@ 0 - -39 - - - - 1 - 2 - (:auto !!:) !!!Synopsis (:include synopsis:) - - - - - 0 - - -40 - - - - 5 - 2 - (:auto !!!:) (:include synopsis:) !!!!Description: Returns a const reference to the copy of the value passed to (:link - 1 - - 0 - - -44 - - - 2 - :)'s constructor stored in the (:link - 1 - - 0 - - -44 - - - 2 - :) object. !!!!Throws: Nothing. - - - - - 0 - - -41 - - - - 0 - - - - - 0 - - -45 + -48 @@ -6517,7 +6864,7 @@ 0 - -20 + -25 2 @@ -6526,7 +6873,7 @@ 0 - -39 + -45 2 @@ -6535,7 +6882,7 @@ 0 - -43 + -8 2 @@ -6544,7 +6891,7 @@ 0 - -20 + -25 2 @@ -6553,7 +6900,7 @@ 0 - -20 + -25 2 @@ -6580,7 +6927,7 @@ 0 - -6 + -35 2 @@ -6589,7 +6936,7 @@ 0 - -20 + -25 2 @@ -6598,7 +6945,7 @@ 0 - -6 + -35 2 @@ -6616,7 +6963,7 @@ 0 - -20 + -25 2 @@ -6625,7 +6972,7 @@ 0 - -27 + -16 2 @@ -6634,7 +6981,7 @@ 0 - -20 + -25 2 @@ -6643,7 +6990,7 @@ 0 - -33 + -36 2 @@ -6661,7 +7008,7 @@ 0 - -6 + -35 2 @@ -6672,255 +7019,115 @@ 0 - -43 + -41 - 13 + 1 2 - (:auto !!!:) (:include synopsis:) Class boost::(:link - 1 - - 0 - - -43 - - - 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 - - -43 - - - 2 - :) can store data of arbitrary types, using the (:link - 1 - - 0 - - -44 - - - 2 - :) wrapper and (:link - 1 - - 0 - - -37 - - - 2 - mod="/":). To retrieve data from a boost::(:link - 1 - - 0 - - -43 - - - 2 - :) object, use the (:link - 1 - - 0 - - -14 - - - 2 - :) function template. + (:auto !!!:) !!!Synopsis (:include synopsis:) 0 - -44 + -40 - 25 + 1 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 - - -44 - - - 2 - :)<Tag,T> can be passed to (:link - 1 - - 0 - - -37 - - - 2 - mod="/":) to be stored in objects of type boost::(:link - 1 - - 0 - - -43 - - - 2 - :). !!!!Note: The header <(:link - 1 - - 0 - - -16 - - - 2 - :)> provides a declaration of the (:link - 1 - - 0 - - -44 - - - 2 - :) template, which is sufficient for the purpose of typedefing an instance for specific Tag and T, like this: [@#include <(:link - 1 - - 0 - - -16 - - - 2 - :)> typedef boost::(:link - 1 - - 0 - - -44 - - - 2 - :)<struct tag_errno,int> errno_info;@] Of course, to actually add an (:link - 1 - - 0 - - -44 - - - 2 - :) object to (:link - 1 - - 0 - - -43 - - - 2 - mod="p":) using (:link - 1 - - 0 - - -37 - - - 2 - mod="/":), or to retrieve it using (:link - 1 - - 0 - - -14 - - - 2 - :), you must first #include <(:link - 1 - - 0 - - -11 - - - 2 - :)>. + (:auto !!:) !!!Synopsis (:include synopsis:) 0 - -46 + -49 - 3 + 7 2 - (:auto !!!:) (:include decl:) !!!!Effects: Frees all resources associated with a boost::(:link + (:auto !!!:) (:include decl:) !!!!Effects: * Default constructor: initializes an empty boost::(:link 1 0 - -43 + -8 2 - :) object. !!!!Throws: Nothing. + :) object. * Copy constructor: initializes a boost::(:link + 1 + + 0 + + -8 + + + 2 + :) object which shares ownership with x of all data added through (:link + 1 + + 0 + + -15 + + + 2 + mod="/":), including data that is added at a future time. !!!!Throws: Nothing. 0 - -42 + -35 + + + + 1 + 2 + (:auto !!!:) (:include synopsis:) !!!!Precondition: ep shall not be null. !!!!Throws: The exception to which ep refers. + + + + + 0 + + -10 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 + (:auto !!:) All exception types that derive from boost::(:link 1 0 - -27 + -8 2 - :) at the time of the throw is required in order to use cloning. !!!!Note: All exceptions emitted by the familiar function boost::(:link + :) 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 - -31 + -8 2 - :) are guaranteed to derive from boost::(:link + :) at the time of the throw, or at a later time. (:include 1 0 - -43 - - - 2 - :) and to support cloning. (:include - 1 - - 0 - - -25 + -23 2 @@ -6929,7 +7136,16 @@ 0 - -45 + -24 + + + 2 + :) (:include + 1 + + 0 + + -47 2 @@ -6940,116 +7156,146 @@ 0 - -47 + -44 - 19 + 1 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. Let's say we have an exception type file_read_error, which takes a file name in its constructor. Consider the following function: [@void file_read( FILE * f, void * buffer, size_t size ) { if( size!=fread(buffer,1,size,f) ) throw file_read_error(????); }@] How can the file_read function pass a file name to the exception type constructor? All it has is a FILE handle. Using boost:: - 1 - - 0 - - -43 - - - 2 - allows us to free the file_read function from the burden of storing the file name in exceptions it throws: [@#include <(:link - 1 - - 0 - - -8 - - - 2 - :)> #include <stdio.h> #include <errno.h> typedef boost::(:link - 1 - - 0 - - -44 - - - 2 - :)<struct tag_errno,int> errno_info; class file_read_error: public boost::(:link - 1 - - 0 - - -43 - - - 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 - - -8 - - - 2 - :)> #include <boost/shared_ptr.hpp> #include <stdio.h> #include <string> typedef boost::(:link - 1 - - 0 - - -44 - - - 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 - - -43 - - - 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 - - -43 - - - 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 - - -43 - - - 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''. + (:auto !!:) !!!Synopsis (:include synopsis:) 0 - -48 + -39 - 3 + 1 2 - (:auto !!!:) (:include synopsis:) !!!!Effects: Stores a copy of v in the + (:auto !!:) !!!Synopsis (:include synopsis:) + + + + + 0 + + -42 + + + + 1 + 2 + (:auto !!:) !!!Synopsis (:include synopsis:) + + + + + 0 + + -38 + + + + 15 + 2 + (:auto !!!:) Boost Exception responds to the following configuration macros: '''BOOST_NO_RTTI'''\\ '''BOOST_NO_TYPEID''' The first macro prevents Boost Exception from using dynamic_cast and dynamic typeid. If the second macro is also defined, Boost Exception does not use static typeid either. There are no observable degrading effects on the library functionality, except for the following: ->By default, the (:link 1 0 - -44 + -18 2 - object. (:include throws:) + :) function template can be called with any exception type. If BOOST_NO_RTTI is defined, (:link + 1 + + 0 + + -18 + + + 2 + :) can be used only with objects of type boost::(:link + 1 + + 0 + + -8 + + + 2 + :). '''BOOST_EXCEPTION_DISABLE''' By default, (:link + 1 + + 0 + + -16 + + + 2 + :) and (:link + 1 + + 0 + + -34 + + + 2 + :) are integrated directly in the (:link + 1 + + 0 + + -30 + + + 2 + :) function. Defining BOOST_EXCEPTION_DISABLE disables this integration. Note that on some non-conformant compilers, for example MSVC 7.0 and older, as well as BCC, BOOST_EXCEPTION_DISABLE is implicitly defined in (:link + 1 + + 0 + + -46 + + + 2 + :). + + + + + 0 + + -34 + + + + 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 + + -8 + + + 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 + + -8 + + + 2 + :). The T sub-object is initialized from x by the T copy constructor. !!!!Throws: Nothing. @@ -7059,13 +7305,13 @@ throws - 53 + 54 reno_layer - 44 + 45 0 @@ -7121,28 +7367,6 @@ 0 - - - 0 - - -10 - - - - 0 - - - - - 0 - - -11 - - - - 0 - - 0 @@ -7184,7 +7408,9 @@ - 0 + 1 + 2 + !!!!Throws: std::bad_alloc, or any exception emitted by the T copy constructor. @@ -7360,7 +7586,9 @@ - 0 + 1 + 2 + !!!!Throws: Any exception emitted by v's copy constructor. @@ -7387,28 +7615,6 @@ 0 - - - 0 - - -34 - - - - 0 - - - - - 0 - - -35 - - - - 0 - - 0 @@ -7427,19 +7633,6 @@ -37 - - 1 - 2 - !!!!Throws: std::bad_alloc, or any exception emitted by the T copy constructor. - - - - - 0 - - -38 - - 0 @@ -7448,29 +7641,7 @@ 0 - -39 - - - - 0 - - - - - 0 - - -40 - - - - 0 - - - - - 0 - - -41 + -11 @@ -7503,7 +7674,7 @@ 0 - -44 + -47 @@ -7521,6 +7692,94 @@ 0 + + + 0 + + -48 + + + + 0 + + + + + 0 + + -41 + + + + 0 + + + + + 0 + + -40 + + + + 0 + + + + + 0 + + -49 + + + + 0 + + + + + 0 + + -35 + + + + 0 + + + + + 0 + + -10 + + + + 0 + + + + + 0 + + -44 + + + + 0 + + + + + 0 + + -39 + + + + 0 + + 0 @@ -7536,7 +7795,7 @@ 0 - -47 + -38 @@ -7547,13 +7806,11 @@ 0 - -48 + -34 - 1 - 2 - !!!!Throws: Any exception emitted by v's copy constructor. + 0 @@ -7563,13 +7820,13 @@ synopsis - 54 + 55 reno_layer - 44 + 45 0 @@ -7578,7 +7835,9 @@ - 0 + 1 + 2 + [@#include <boost/tuple/tuple.hpp> namespace boost { (:include api pre_indent="4":) }@] @@ -7589,18 +7848,7 @@ - 3 - 2 - `#include <(:link - 1 - - 0 - - -39 - - - 2 - :)> [@namespace boost { (:include decl pre_indent="4":) }@] + 0 @@ -7622,9 +7870,18 @@ - 1 + 3 2 - [@(:include api:)@] + `#include <(:link + 1 + + 0 + + -26 + + + 2 + :)> [@namespace boost { (:include def pre_indent="4":) }@] @@ -7635,62 +7892,7 @@ - 3 - 2 - `#include < - 1 - - 0 - - -36 - - - 2 - > [@namespace boost { (:include decl pre_indent="4":) }@] - - - - - 0 - - -10 - - - - 3 - 2 - `#include <(:link - 1 - - 0 - - -39 - - - 2 - :)> [@namespace boost { (:include decl pre_indent="4":) }@] - - - - - 0 - - -11 - - - - 3 - 2 - [@#include <(:link - 1 - - 0 - - -38 - - - 2 - :)> #include <boost/current_function.hpp> #include <boost/shared_ptr.hpp> namespace boost { (:include api pre_indent="4":) }@] + 0 @@ -7708,7 +7910,7 @@ 0 - -39 + -45 2 @@ -7723,7 +7925,18 @@ - 0 + 3 + 2 + [@#include < + 1 + + 0 + + -26 + + + 2 + > namespace boost { (:include api pre_indent="4":) }@] @@ -7734,18 +7947,7 @@ - 3 - 2 - `#include < - 1 - - 0 - - -34 - - - 2 - > [@namespace boost { (:include decl pre_indent="4":) }@] + 0 @@ -7758,16 +7960,16 @@ 3 2 - `#include < + `#include <(:link 1 0 - -24 + -44 2 - > (:include decl:) + :)>\\ [@namespace boost { (:include decl pre_indent="4":) }@] @@ -7778,9 +7980,18 @@ - 1 + 3 2 - [@namespace boost { (:include api pre_indent="4":) }@] + `#include < + 1 + + 0 + + -41 + + + 2 + > [@namespace boost { (:include decl pre_indent="4":) }@] @@ -7791,7 +8002,18 @@ - 0 + 3 + 2 + `#include <(:link + 1 + + 0 + + -45 + + + 2 + :)> [@namespace boost { (:include decl pre_indent="4":) }@] @@ -7804,16 +8026,16 @@ 3 2 - [@#include < + `#include < 1 0 - -38 + -43 2 - > namespace boost { (:include api pre_indent="4":) }@] + > [@namespace boost { (:include decl pre_indent="4":) }@] @@ -7824,7 +8046,18 @@ - 0 + 3 + 2 + `#include <(:link + 1 + + 0 + + -44 + + + 2 + :)> [@namespace boost { (:include def pre_indent="4":) }@] @@ -7842,11 +8075,11 @@ 0 - -39 + -44 2 - :)> [@namespace boost { (:include decl pre_indent="4":) }@] + :)> [@(:include decl:)@] @@ -7857,18 +8090,7 @@ - 3 - 2 - `#include <(:link - 1 - - 0 - - -26 - - - 2 - :)>\\ [@namespace boost { (:include decl pre_indent="4":) }@] + 0 @@ -7879,9 +8101,18 @@ - 1 + 3 2 - [@#include <boost/tuple/tuple.hpp> namespace boost { (:include api pre_indent="4":) }@] + `#include <(:link + 1 + + 0 + + -44 + + + 2 + :)> [@(:include decl:)@] @@ -7903,9 +8134,7 @@ - 1 - 2 - (:include api:) + 0 @@ -7916,7 +8145,18 @@ - 0 + 3 + 2 + `#include <(:link + 1 + + 0 + + -45 + + + 2 + :)> [@namespace boost { (:include decl pre_indent="4":) }@] @@ -7927,18 +8167,9 @@ - 3 + 1 2 - [@#include <string> namespace boost { (:include - 1 - - 0 - - -43 - - - 2 - decl pre_indent="4":) (:include api pre_indent="4":) }@] + [@namespace boost { (:include api pre_indent="4":) }@] @@ -7949,18 +8180,7 @@ - 3 - 2 - `#include < - 1 - - 0 - - -18 - - - 2 - > [@namespace boost { (:include decl pre_indent="4":) }@] + 0 @@ -7971,7 +8191,18 @@ - 0 + 3 + 2 + `#include <(:link + 1 + + 0 + + -40 + + + 2 + :)>\\ [@namespace boost { (:include decl pre_indent="4":) }@] @@ -7982,18 +8213,7 @@ - 3 - 2 - `#include <(:link - 1 - - 0 - - -11 - - - 2 - :)> [@(:include decl:)@] + 0 @@ -8004,7 +8224,18 @@ - 0 + 3 + 2 + `#include <(:link + 1 + + 0 + + -46 + + + 2 + :)> [@namespace boost { (:include decl:) }@] @@ -8022,11 +8253,11 @@ 0 - -24 + -44 2 - :)> [@namespace boost { (:include decl:) }@] + :)> [@(:include decl:)@] @@ -8044,7 +8275,7 @@ 0 - -22 + -5 2 @@ -8067,41 +8298,6 @@ -33 - - 3 - 2 - `#include <(:link - 1 - - 0 - - -39 - - - 2 - :)> [@namespace boost { (:include decl pre_indent="4":) }@] - - - - - 0 - - -34 - - - - 1 - 2 - [@#include <boost/shared_ptr.hpp> namespace boost { (:include api pre_indent="4":) }@] - - - - - 0 - - -35 - - 0 @@ -8116,16 +8312,16 @@ 3 2 - [@#include < + `#include <(:link 1 0 - -38 + -45 2 - > namespace boost { (:include api pre_indent="4":) }@] + :)> [@namespace boost { (:include decl pre_indent="4":) }@] @@ -8138,80 +8334,23 @@ 3 2 - `#include <(:link + `#include < 1 0 - -11 + -46 2 - :)>\\ [@namespace boost { (:include decl pre_indent="4":) }@] + > (:include decl:) 0 - -38 - - - - 1 - 2 - [@namespace boost { (:include api pre_indent="4":) }@] - - - - - 0 - - -39 - - - - 3 - 2 - [@#include <(:link - 1 - - 0 - - -38 - - - 2 - :)> namespace boost { (:include api pre_indent="4":) }@] - - - - - 0 - - -40 - - - - 3 - 2 - `#include <(:link - 1 - - 0 - - -11 - - - 2 - :)> [@(:include decl:)@] - - - - - 0 - - -41 + -11 @@ -8226,7 +8365,18 @@ - 0 + 3 + 2 + [@#include <(:link + 1 + + 0 + + -26 + + + 2 + :)> namespace boost { (:include api pre_indent="4":) }@] @@ -8237,62 +8387,9 @@ - 3 + 1 2 - `#include <(:link - 1 - - 0 - - -38 - - - 2 - :)> [@namespace boost { (:include def pre_indent="4":) }@] - - - - - 0 - - -44 - - - - 3 - 2 - `#include <(:link - 1 - - 0 - - -11 - - - 2 - :)> [@namespace boost { (:include def pre_indent="4":) }@] - - - - - 0 - - -46 - - - - 0 - - - - - 0 - - -42 - - - - 0 + [@#include <boost/shared_ptr.hpp> namespace boost { (:include api pre_indent="4":) }@] @@ -8306,6 +8403,19 @@ 0 + + + 0 + + -46 + + + + 1 + 2 + (:include api:) + + 0 @@ -8313,6 +8423,72 @@ -48 + + 0 + + + + + 0 + + -41 + + + + 3 + 2 + [@#include < + 1 + + 0 + + -26 + + + 2 + > namespace boost { (:include api pre_indent="4":) }@] + + + + + 0 + + -40 + + + + 3 + 2 + [@#include <string> namespace boost { (:include + 1 + + 0 + + -8 + + + 2 + decl pre_indent="4":) (:include api pre_indent="4":) }@] + + + + + 0 + + -49 + + + + 0 + + + + + 0 + + -35 + + 3 2 @@ -8321,11 +8497,103 @@ 0 - -11 + -45 2 - :)> [@(:include decl:)@] + :)> [@namespace boost { (:include decl pre_indent="4":) }@] + + + + + 0 + + -10 + + + + 0 + + + + + 0 + + -44 + + + + 3 + 2 + [@#include <(:link + 1 + + 0 + + -26 + + + 2 + :)> #include <boost/current_function.hpp> #include <boost/shared_ptr.hpp> namespace boost { (:include api pre_indent="4":) }@] + + + + + 0 + + -39 + + + + 1 + 2 + [@(:include api:)@] + + + + + 0 + + -42 + + + + 1 + 2 + [@namespace boost { (:include api pre_indent="4":) }@] + + + + + 0 + + -38 + + + + 0 + + + + + 0 + + -34 + + + + 3 + 2 + `#include < + 1 + + 0 + + -13 + + + 2 + > [@namespace boost { (:include decl pre_indent="4":) }@] @@ -8338,14 +8606,14 @@ - 55 + 56 reno_context_map - 44 + 45 -5 @@ -8361,12 +8629,6 @@ -9 - - -10 - - - -11 - -12 @@ -8433,12 +8695,6 @@ -33 - - -34 - - - -35 - -36 @@ -8446,16 +8702,7 @@ -37 - -38 - - - -39 - - - -40 - - - -41 + -11 -45 @@ -8464,25 +8711,134 @@ -43 - -44 + -47 -46 + + -48 + + + -41 + + + -40 + + + -49 + + + -35 + + + -10 + + + -44 + + + -39 + -42 - -47 + -38 - -48 + -34 - 44 + 45 + + + + + 0 + + + + + + 1 + + + + -33 + + + + + + + 0 + + + + + + 1 + + + + -29 + + + + + + + 0 + + + + + + 1 + + + + -10 + + + + + + + 0 + + + + + + 1 + + + + -27 + + + + + + + 0 + + + + + + 1 + + + + -13 + + @@ -8514,75 +8870,7 @@ - -42 - - - - - - - 0 - - - - - - 1 - - - - -7 - - - - - - - 0 - - - - - - 1 - - - - -30 - - - - - - - 0 - - - - - - 1 - - - - -36 - - - - - - - 0 - - - - - - 1 - - - - -18 + -9 @@ -8610,7 +8898,7 @@ - -48 + -31 @@ -8638,7 +8926,7 @@ - -37 + -15 @@ -8662,7 +8950,7 @@ - -39 + -45 @@ -8686,7 +8974,7 @@ - -45 + -48 @@ -8710,7 +8998,7 @@ - -34 + -43 @@ -8734,7 +9022,7 @@ - -28 + -11 @@ -8762,7 +9050,7 @@ - -14 + -18 @@ -8786,7 +9074,7 @@ - -15 + -37 @@ -8810,7 +9098,7 @@ - -13 + -7 @@ -8834,7 +9122,7 @@ - -8 + -39 @@ -8862,7 +9150,7 @@ - -31 + -30 @@ -8894,7 +9182,7 @@ - -17 + -38 @@ -8918,7 +9206,7 @@ - -23 + -14 @@ -8946,7 +9234,7 @@ - -44 + -19 @@ -8978,7 +9266,7 @@ - -29 + -22 @@ -9010,7 +9298,7 @@ - -40 + -20 @@ -9034,7 +9322,7 @@ - -38 + -26 @@ -9062,7 +9350,7 @@ - -46 + -6 @@ -9090,7 +9378,7 @@ - -27 + -16 @@ -9118,7 +9406,7 @@ - -9 + -34 @@ -9146,7 +9434,7 @@ - -43 + -8 @@ -9178,7 +9466,7 @@ - -5 + -49 @@ -9202,7 +9490,7 @@ - -22 + -5 @@ -9230,7 +9518,7 @@ - -21 + -28 @@ -9254,7 +9542,7 @@ - -24 + -46 @@ -9278,7 +9566,7 @@ - -25 + -21 @@ -9302,7 +9590,7 @@ - -26 + -40 @@ -9326,7 +9614,7 @@ - -47 + -24 @@ -9382,7 +9670,7 @@ - -20 + -25 @@ -9410,7 +9698,7 @@ - -33 + -36 @@ -9438,7 +9726,7 @@ - -6 + -35 @@ -9466,7 +9754,7 @@ - -10 + -17 @@ -9494,7 +9782,7 @@ - -16 + -42 @@ -9546,7 +9834,7 @@ - -19 + -23 @@ -9570,7 +9858,7 @@ - -35 + -47 @@ -9594,7 +9882,7 @@ - -11 + -44 @@ -9604,7 +9892,7 @@ - 56 + 57 tag_index @@ -9625,7 +9913,7 @@ -5 - function + @@ -9634,7 +9922,7 @@ -6 - exception_ptr free function + function @@ -9643,7 +9931,7 @@ -7 - tutorial + diagnostic_information tutorial @@ -9652,34 +9940,7 @@ -8 - - - - - 0 - - -9 - - - error_info free function - - - - 0 - - -10 - - - exception_ptr free function - - - - 0 - - -11 - - - + type @@ -9697,16 +9958,7 @@ -13 - diagnostic_information tutorial - - - - 0 - - -14 - - - error_info free function + error_info @@ -9715,7 +9967,7 @@ -15 - + error_info free function @@ -9724,7 +9976,16 @@ -16 - + exception_ptr free function + + + + 0 + + -17 + + + exception_ptr free function @@ -9733,7 +9994,7 @@ -18 - exception_ptr + error_info free function @@ -9742,7 +10003,7 @@ -19 - noalso noindex tutorial + type @@ -9751,7 +10012,7 @@ -20 - type + function member @@ -9760,7 +10021,7 @@ -21 - diagnostic_information free function + noalso noindex tutorial @@ -9769,7 +10030,16 @@ -22 - + type + + + + 0 + + -23 + + + noalso noindex tutorial @@ -9778,7 +10048,7 @@ -24 - + noalso noindex tutorial @@ -9787,7 +10057,7 @@ -25 - noalso noindex tutorial + type @@ -9805,7 +10075,7 @@ -27 - exception_ptr free function + index noindex @@ -9814,7 +10084,7 @@ -28 - tutorial + diagnostic_information free function @@ -9823,7 +10093,7 @@ -29 - type + tutorial @@ -9832,7 +10102,7 @@ -30 - index noindex + free function @@ -9841,7 +10111,7 @@ -31 - free function + function member @@ -9859,25 +10129,7 @@ -33 - exception_ptr type - - - - 0 - - -34 - - - error_info - - - - 0 - - -35 - - - noalso noindex tutorial + noindex @@ -9886,7 +10138,7 @@ -36 - error_info + exception_ptr type @@ -9895,13 +10147,112 @@ -37 - error_info free function + 0 - -38 + -11 + + + tutorial + + + + 0 + + -45 + + + + + + + 0 + + -43 + + + error_info + + + + 0 + + -47 + + + noalso noindex tutorial + + + + 0 + + -46 + + + + + + + 0 + + -48 + + + noalso noindex tutorial + + + + 0 + + -41 + + + exception_ptr + + + + 0 + + -40 + + + + + + + 0 + + -49 + + + function + + + + 0 + + -35 + + + exception_ptr free function + + + + 0 + + -10 + + + tutorial + + + + 0 + + -44 @@ -9915,60 +10266,6 @@ - - - 0 - - -40 - - - function member - - - - 0 - - -41 - - - noindex - - - - 0 - - -45 - - - noalso noindex tutorial - - - - 0 - - -43 - - - type - - - - 0 - - -44 - - - type - - - - 0 - - -46 - - - function - 0 @@ -9976,25 +10273,16 @@ -42 - tutorial + 0 - -47 + -34 - noalso noindex tutorial - - - - 0 - - -48 - - - function member + error_info free function