From 5512295ae2bc2dbc37ebabc6dc2a997b3952b4d4 Mon Sep 17 00:00:00 2001 From: Emil Dotchevski Date: Thu, 5 Mar 2009 23:01:53 +0000 Subject: [PATCH] Documentation update [SVN r51631] --- doc/boost-exception.html | 15 + doc/source/boost-exception.reno | 8777 ++++++++++++++++--------------- 2 files changed, 4408 insertions(+), 4384 deletions(-) diff --git a/doc/boost-exception.html b/doc/boost-exception.html index 2d90b9e..0b06f9a 100644 --- a/doc/boost-exception.html +++ b/doc/boost-exception.html @@ -446,6 +446,21 @@ boost
+

BOOST_THROW_EXCEPTION

+
+

#include <boost/throw_exception.hpp>

+
#if !defined( BOOST_NO_EXCEPTIONS ) && !defined( BOOST_EXCEPTION_DISABLE )
+    #include <boost/exception/exception.hpp>
+    #include <boost/current_function.hpp>
+    #define BOOST_THROW_EXCEPTION(x)\
+        ::boost::throw_exception( ::boost::enable_error_info(x) <<\
+        ::boost::throw_function(BOOST_CURRENT_FUNCTION) <<\
+        ::boost::throw_file(__FILE__) <<\
+        ::boost::throw_line((int)__LINE__) )
+#else
+    #define BOOST_THROW_EXCEPTION(x) ::boost::throw_exception(x)
+#endif
+

This macro takes an exception object, records BOOST_CURRENT_FUNCTION, __FILE__ and __LINE__ in it, and forwards it to throw_exception. To recover this information at the catch site, use get_error_info; the information is also included in the message returned by diagnostic_information.

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.

diff --git a/doc/source/boost-exception.reno b/doc/source/boost-exception.reno index aa1e5cc..4a8e112 100644 --- a/doc/source/boost-exception.reno +++ b/doc/source/boost-exception.reno @@ -53,32 +53,36 @@ - 2 - 9A4ECF9A49A73AED83C1565CB8C67AE1519E8AFE6818F968B4C4733CB9E86CEF - 1615599655 - 68 - 227 - 34F0583BC8DE767CE2D79721E1F956895E43E5397473B1050F59BE7E26C773DB - 805836816 - 66 - 1 + 3 + 55F1164770FD778354E151EF65A3E830DA20F325F7ED20A95130A4B83FC801BF + 1282550303 + 9192 + 323 + 65D35B8A2063883A53E9D0DCC3FF8E5CA3573A58451A653CDE3003FFBEC576D3 + 1693870740 + 2195 + 3720 + DA154372D8C23BD9EDC30005CA7959CE686D198891097A837D006B5222F04DE9 + 2768248809 + 143 + 60 0 - ../../../../boost/exception/error_info.hpp + ../../../../boost/exception/exception.hpp 0 0 - <string>boost/exception/error_info.hpp</string> + <string>exception::exception</string> - exception_error_info_value_hpp + exception_constructors @@ -102,21 +106,32 @@ - 0 + 2 + 808CABE6CCA47C52CC9DD21911BF0B42284A5DD55AC3E665B29ED2B5F16AF7DA + 3660693492 + 8718 + 615 + 0E9DF8366080712A816BE91ABCEF1E2044145B63D75B0B995B537900F378189E + 1069696031 + 255 + 8457 - 1 + 0 + ../../../../boost/exception_ptr.hpp + 0 + 0 - <string>boost/exception/enable_current_exception.hpp</string> + <string>rethrow_exception</string> - exception_enable_current_exception_hpp + @@ -151,10 +166,10 @@ - <string>boost/exception/enable_error_info.hpp</string> + <string>transporting of arbitrary data to the catch site</string> - exception_enable_error_info_hpp + tutorial_transporting_data @@ -179,10 +194,10 @@ 1 - 67D64FAD0AB7CA6B2173A14F363D19B27F59EEBDB5C1076F8BCCA1B54D4CCD7D - 2241687287 - 303 - 323 + F647827E95C64B626A8E3751AD4E4D21237DD17482EEA6DB93A16A2C6AC79E87 + 527078204 + 446 + 227 @@ -224,28 +239,28 @@ 2 - 808CABE6CCA47C52CC9DD21911BF0B42284A5DD55AC3E665B29ED2B5F16AF7DA - 3660693492 - 8718 - 487 - E23085202D084CBB50F289988A6A592F06D923B77D0AB25D7A98A7188DF5BE3B - 1414247481 - 766 - 7382 + 55F1164770FD778354E151EF65A3E830DA20F325F7ED20A95130A4B83FC801BF + 1282550303 + 9192 + 323 + F3FB15CD82336271C6E875BC620385322777D16F0B7C233300783CE35710CCBF + 3292878997 + 282 + 7305 0 - ../../../../boost/exception_ptr.hpp + ../../../../boost/exception/exception.hpp 0 0 - <string>current_exception</string> + <string>enable_error_info</string> @@ -276,105 +291,7 @@ 808CABE6CCA47C52CC9DD21911BF0B42284A5DD55AC3E665B29ED2B5F16AF7DA 3660693492 8718 - 487 - DA033132CFA8F85C147C01F51FF7CF7399CF7D32D412F730EA3219CDAC608C72 - 3830952485 - 712 - 1496 - - - - - - 0 - ../../../../boost/exception_ptr.hpp - 0 - 0 - - - - - <string>unknown_exception</string> - - - - - - - - - 1 - 2 - (:include include:) (:auto also:) - - - - - 0 - - 11 - - reno_context - - - - - - - 2 - 612485E090D76B2CC43C1A296F813075BA165C2496082E78E939F10B3DA8E09A - 1770110914 - 587 - 1497 - 60F3F48B87487FA6E0D2CCC0750AF435CC92CEC80BBBF609AC71295031AADD0D - 3929437933 - 361 - 213 - - - - - - 0 - ../../../../boost/throw_exception.hpp - 0 - 0 - - - - - <string>throw_exception</string> - - - - - - - - - 1 - 2 - (:include include:) (:auto also:) - - - - - 0 - - 12 - - reno_context - - - - - - - 2 - 808CABE6CCA47C52CC9DD21911BF0B42284A5DD55AC3E665B29ED2B5F16AF7DA - 3660693492 - 8718 - 487 + 615 0066D4E6E6B189906E6DE04F08509F3737511701A1B1355B37511EC18E8371F4 2078296250 305 @@ -410,7 +327,52 @@ 0 - 13 + 11 + + reno_context + + + + + + + 1 + 3D40DD88A1E41D75BC79CA8DACC35BEE2A16A64422AC8E6BE0D61169D9360EF7 + 4184757263 + 4220 + 323 + + + + + + 0 + ../../../../boost/exception/info.hpp + 0 + 0 + + + + + <string>boost/exception/info.hpp</string> + + + exception_error_info_hpp + + + + + + 1 + 2 + (:include include:) (:auto also:) + + + + + 0 + + 12 reno_context @@ -423,11 +385,11 @@ 808CABE6CCA47C52CC9DD21911BF0B42284A5DD55AC3E665B29ED2B5F16AF7DA 3660693492 8718 - 487 - 0E9DF8366080712A816BE91ABCEF1E2044145B63D75B0B995B537900F378189E - 1069696031 - 255 - 8457 + 615 + E23085202D084CBB50F289988A6A592F06D923B77D0AB25D7A98A7188DF5BE3B + 1414247481 + 766 + 7382 @@ -441,7 +403,7 @@ - <string>rethrow_exception</string> + <string>current_exception</string> @@ -455,6 +417,51 @@ (:include include:) (:auto also:) + + + 0 + + 13 + + reno_context + + + + + + + 1 + 7116AEECEA666794E31DC99390ADEC1BA6AF74B2398067A0739767B4B76FA97A + 4128134227 + 307 + 302 + + + + + + 0 + ../../example/logging.cpp + 0 + 0 + + + + + <string>diagnostic information</string> + + + tutorial_diagnostic_information + + + + + + 1 + 2 + (:include include:) (:auto also:) + + 0 @@ -469,28 +476,28 @@ 2 - 55F1164770FD778354E151EF65A3E830DA20F325F7ED20A95130A4B83FC801BF - 1282550303 - 9192 - 323 - DF9EA87B0140AACF4422F1B76F6A6A409C15F32858BBBA85A35981A824C56BA9 - 1137981799 - 192 - 8994 + E8AFD260BD0196A516F0E29A9FE6D09BF84B37D31E228910E3370365CAA4AB43 + 3229661566 + 3665 + 504 + BB8AF986C96801345719855FEA083AF5684FBC349F6520E150F19A6370019265 + 3731478139 + 686 + 2973 0 - ../../../../boost/exception/exception.hpp + ../../../../boost/exception/get_error_info.hpp 0 0 - <string>enable_current_exception</string> + <string>get_error_info</string> @@ -518,27 +525,27 @@ 1 - 265AFB67CCEF87EC9B58DB910ED23C0B1A5546C44767E2FFD6829ABADAF4828B - 1235989793 - 1632 - 323 + 17FF6C63843EE64ED66CB038DD95B4C4D6BA1B0FD36B27BEFD84A909161D2853 + 1237535165 + 231 + 1186 0 - ../../../../boost/exception/diagnostic_information.hpp + ../../../../boost/throw_exception.hpp 0 0 - <string>boost/exception/diagnostic_information.hpp</string> + <string>BOOST_THROW_EXCEPTION</string> - exception_diagnostic_information_hpp + @@ -546,7 +553,7 @@ 1 2 - (:include include:) (:auto also:) + (:include include:) (:pagelist link="backlink":) @@ -563,31 +570,31 @@ 2 - 126BB1D8971585CBE7D78EF3C12259D72FD5E973A84626AA9FC3234220A11CAB - 3471702891 - 969 - 344 - A7FD310E1340E103081DA2A7899DA0E213C696C84D52C17ADA09F6942EE97D47 - 2978648279 - 530 - 433 + 9A4ECF9A49A73AED83C1565CB8C67AE1519E8AFE6818F968B4C4733CB9E86CEF + 1615599655 + 68 + 227 + 34F0583BC8DE767CE2D79721E1F956895E43E5397473B1050F59BE7E26C773DB + 805836816 + 66 + 1 0 - ../../../../boost/exception/detail/error_info_impl.hpp + ../../../../boost/exception/error_info.hpp 0 0 - <string>error_info</string> + <string>boost/exception/error_info.hpp</string> - + exception_error_info_value_hpp @@ -606,418 +613,6 @@ reno_context - - - - - - 1 - D0024B58523F5885E87F608259810B61D3BE489CEC885FFAE91118F1E43B10A4 - 399616739 - 6563 - 591 - - - - - - 0 - ../../example/example_io.cpp - 0 - 0 - - - - - <string>diagnostic_information example</string> - - - - - - - - - 0 - - - - - 0 - - 18 - - reno_context - - - - - - - 3 - 126BB1D8971585CBE7D78EF3C12259D72FD5E973A84626AA9FC3234220A11CAB - 3471702891 - 969 - 344 - A7FD310E1340E103081DA2A7899DA0E213C696C84D52C17ADA09F6942EE97D47 - 2978648279 - 530 - 433 - 38B566F2C6678B8724D18086A6F76E077DC2ADC1BB69A4B83BF0A2C3B7D31B50 - 2218658069 - 31 - 143 - - - - - - 0 - ../../../../boost/exception/detail/error_info_impl.hpp - 0 - 0 - - - - - <string>error_info::value_type</string> - - - - - - - - - 1 - 2 - (:include include:) (:auto also:) - - - - - 0 - - 19 - - 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 - - 20 - - 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 - - 21 - - reno_context - - - - - - - 0 - - - - - - 1 - - - - - <string>Index</string> - - - name_idx - - - - - - 1 - 2 - (:auto !:) (:pagelist fmt="index" except_tags="index,noindex" mod="w":) - - - - - 0 - - 22 - - 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 - - 23 - - reno_context - - - - - - - 2 - 55F1164770FD778354E151EF65A3E830DA20F325F7ED20A95130A4B83FC801BF - 1282550303 - 9192 - 323 - 17E691632123EB67BA67D590B49EB8094F462F5A10A66A1C5438E1867EF1478E - 765399792 - 77 - 5917 - - - - - - 0 - ../../../../boost/exception/exception.hpp - 0 - 0 - - - - - <string>exception::~exception</string> - - - exception_destructor - - - - - - 1 - 2 - (:include include:) (:auto also:) - - - - - 0 - - 24 - - 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 - - 25 - - reno_context - - - - - - - 1 - E444EE9697EEADFDE0767E1D0242FC0E70D98E61FB1F0FFA099648DE509B82F3 - 94503238 - 773 - 374 - - - - - - 0 - ../../example/info_tuple.cpp - 0 - 0 - - - - - <string>adding grouped data to exceptions</string> - - - grouping_data - - - - - - 0 - - - - - 0 - - 26 - - reno_context - @@ -1067,7 +662,88 @@ 0 - 27 + 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 @@ -1077,14 +753,63 @@ 2 - 439278045C9E304238B86C5BD4DA9CA64630D4CC73D442089068A186A28CA55A - 3686240039 - 1522 - 433 + 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 - 493 + 567 @@ -1116,7 +841,95 @@ 0 - 28 + 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 + + + + + + + 1 + D0024B58523F5885E87F608259810B61D3BE489CEC885FFAE91118F1E43B10A4 + 399616739 + 6563 + 591 + + + + + + 0 + ../../example/example_io.cpp + 0 + 0 + + + + + <string>diagnostic_information example</string> + + + + + + + + + 0 + + + + + 0 + + 24 reno_context @@ -1157,6 +970,188 @@ (:include include:) (:auto also:) + + + 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 + + reno_context + + + + + + + 2 + 55F1164770FD778354E151EF65A3E830DA20F325F7ED20A95130A4B83FC801BF + 1282550303 + 9192 + 323 + DF9EA87B0140AACF4422F1B76F6A6A409C15F32858BBBA85A35981A824C56BA9 + 1137981799 + 192 + 8994 + + + + + + 0 + ../../../../boost/exception/exception.hpp + 0 + 0 + + + + + <string>enable_current_exception</string> + + + + + + + + + 1 + 2 + (:include include:) (:auto also:) + + + + + 0 + + 28 + + reno_context + + + + + + + 1 + D9B8E6AA12A4F33953B1A961FA590C5A3840234B6531CA8C04AC985AD5800835 + 2432554768 + 702 + 408 + + + + + + 0 + ../../example/enable_error_info.cpp + 0 + 0 + + + + + <string>integrating boost exception in existing exception class hierarchies</string> + + + tutorial_enable_error_info + + + + + + 1 + 2 + (:include include:) (:auto also:) + + 0 @@ -1165,6 +1160,509 @@ reno_context + + + + + + 3 + 126BB1D8971585CBE7D78EF3C12259D72FD5E973A84626AA9FC3234220A11CAB + 3471702891 + 969 + 344 + A7FD310E1340E103081DA2A7899DA0E213C696C84D52C17ADA09F6942EE97D47 + 2978648279 + 530 + 433 + 38B566F2C6678B8724D18086A6F76E077DC2ADC1BB69A4B83BF0A2C3B7D31B50 + 2218658069 + 31 + 143 + + + + + + 0 + ../../../../boost/exception/detail/error_info_impl.hpp + 0 + 0 + + + + + <string>error_info::value_type</string> + + + + + + + + + 1 + 2 + (:include include:) (:auto also:) + + + + + 0 + + 30 + + reno_context + + + + + + + 0 + + + + + + 1 + + + + + <string>Index</string> + + + name_idx + + + + + + 1 + 2 + (:auto !:) (:pagelist fmt="index" except_tags="index,noindex" mod="w":) + + + + + 0 + + 31 + + reno_context + + + + + + + 2 + 612485E090D76B2CC43C1A296F813075BA165C2496082E78E939F10B3DA8E09A + 1770110914 + 587 + 1497 + 60F3F48B87487FA6E0D2CCC0750AF435CC92CEC80BBBF609AC71295031AADD0D + 3929437933 + 361 + 213 + + + + + + 0 + ../../../../boost/throw_exception.hpp + 0 + 0 + + + + + <string>throw_exception</string> + + + + + + + + + 1 + 2 + (:include include:) (:auto also:) + + + + + 0 + + 32 + + reno_context + + + + + + + 2 + F7633FDCF6615C0199645701EE6E7ACE5CBCD7A7CF6838573791E91ABB3C09F2 + 1668435395 + 1332 + 396 + A1F443AF571973A12005D2F7D4AE09A32AAF686FEEAE272EC21512A65EB943E8 + 3879093659 + 1300 + 26 + + + + + + 0 + ../../../../boost/exception/info_tuple.hpp + 0 + 0 + + + + + <string>tuple/operator<<</string> + + + + + + + + + 1 + 2 + (:include include:) (:auto also:) + + + + + 0 + + 33 + + reno_context + + + + + + + 2 + 808CABE6CCA47C52CC9DD21911BF0B42284A5DD55AC3E665B29ED2B5F16AF7DA + 3660693492 + 8718 + 615 + DA033132CFA8F85C147C01F51FF7CF7399CF7D32D412F730EA3219CDAC608C72 + 3830952485 + 712 + 1496 + + + + + + 0 + ../../../../boost/exception_ptr.hpp + 0 + 0 + + + + + <string>unknown_exception</string> + + + + + + + + + 1 + 2 + (:include include:) (:auto also:) + + + + + 0 + + 34 + + 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 + + + + + + 1 + 2 + (:include include:) (:auto also:) + + + + + 0 + + 35 + + reno_context + + + + + + + 1 + E444EE9697EEADFDE0767E1D0242FC0E70D98E61FB1F0FFA099648DE509B82F3 + 94503238 + 773 + 374 + + + + + + 0 + ../../example/info_tuple.cpp + 0 + 0 + + + + + <string>adding grouped data to exceptions</string> + + + grouping_data + + + + + + 0 + + + + + 0 + + 36 + + reno_context + + + + + + + 0 + + + + + + 1 + + + + + <string>boost/exception/enable_error_info.hpp</string> + + + exception_enable_error_info_hpp + + + + + + 1 + 2 + (:include include:) (:auto also:) + + + + + 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 + @@ -1214,7 +1712,7 @@ 0 - 30 + 41 reno_context @@ -1223,47 +1721,664 @@ - 2 - 808CABE6CCA47C52CC9DD21911BF0B42284A5DD55AC3E665B29ED2B5F16AF7DA - 3660693492 - 8718 - 487 - F86EB07D04CD0D0645080D1121DA899746D0C45137E17E1D9BE605E75396F047 - 1983537541 - 1346 - 148 + 0 - 0 - ../../../../boost/exception_ptr.hpp - 0 - 0 + 1 - <string>exception_ptr</string> + <string>boost exception</string> - + boost-exception - 1 + 119 2 - (:include include:) (:auto also:) + !!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 - 31 + 45 reno_context @@ -1273,27 +2388,100 @@ 1 - FBC69CDA5E19FA40270F3855A8B99B2F77572439353F9DC5D15386F3520BC616 - 1405483403 - 8882 - 323 + FC684D0DD5A9732B4130F2AB3DB6E0491D0F523E14B7FB738B2019EA2C7F8717 + 2229778754 + 631 + 319 0 - ../../../../boost/exception_ptr.hpp + ../../example/cloning_2.cpp 0 0 - <string>boost/exception_ptr.hpp</string> + <string>cloning and re-throwing an exception</string> - exception_cloning_hpp + cloning_and_rethrowing + + + + + + 0 + + + + + 0 + + -43 + + + + 1 + 2 + (:include include:) ---- !!!See Also: (:pagelist link="backlink" except_tags="exception,member" mod="w":) + + + + + 0 + + -44 + + + + 1 + 2 + (:include include:) (:auto also:) + + + + + 0 + + 46 + + reno_context + + + + + + + 2 + 55F1164770FD778354E151EF65A3E830DA20F325F7ED20A95130A4B83FC801BF + 1282550303 + 9192 + 323 + 17E691632123EB67BA67D590B49EB8094F462F5A10A66A1C5438E1867EF1478E + 765399792 + 77 + 5917 + + + + + + 0 + ../../../../boost/exception/exception.hpp + 0 + 0 + + + + + <string>exception::~exception</string> + + + exception_destructor @@ -1308,7 +2496,20 @@ 0 - 32 + -42 + + + + 1 + 2 + (:include include:) (:auto also:) + + + + + 0 + + 47 reno_context @@ -1347,1204 +2548,6 @@ 0 - - - 0 - - 33 - - 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 - - - - - - 1 - 2 - (:include include:) (:auto also:) - - - - - 0 - - 34 - - reno_context - - - - - - - 1 - 7116AEECEA666794E31DC99390ADEC1BA6AF74B2398067A0739767B4B76FA97A - 4128134227 - 307 - 302 - - - - - - 0 - ../../example/logging.cpp - 0 - 0 - - - - - <string>diagnostic information</string> - - - tutorial_diagnostic_information - - - - - - 1 - 2 - (:include include:) (:auto also:) - - - - - 0 - - 35 - - reno_context - - - - - - - 2 - 55F1164770FD778354E151EF65A3E830DA20F325F7ED20A95130A4B83FC801BF - 1282550303 - 9192 - 323 - F3FB15CD82336271C6E875BC620385322777D16F0B7C233300783CE35710CCBF - 3292878997 - 282 - 7305 - - - - - - 0 - ../../../../boost/exception/exception.hpp - 0 - 0 - - - - - <string>enable_error_info</string> - - - - - - - - - 1 - 2 - (:include include:) (:auto also:) - - - - - 0 - - 36 - - reno_context - - - - - - - 1 - 187BFD2B78A0DD006717B5B06FFD465E2468F521C32A86FB793F7A68AB5417F3 - 4276724153 - 574 - 382 - - - - - - 0 - ../../example/error_info_1.cpp - 0 - 0 - - - - - <string>adding of arbitrary data at the point of the throw</string> - - - adding_data_at_throw - - - - - - 0 - - - - - 0 - - 37 - - reno_context - - - - - - - 2 - F7633FDCF6615C0199645701EE6E7ACE5CBCD7A7CF6838573791E91ABB3C09F2 - 1668435395 - 1332 - 396 - A1F443AF571973A12005D2F7D4AE09A32AAF686FEEAE272EC21512A65EB943E8 - 3879093659 - 1300 - 26 - - - - - - 0 - ../../../../boost/exception/info_tuple.hpp - 0 - 0 - - - - - <string>tuple/operator<<</string> - - - - - - - - - 1 - 2 - (:include include:) (:auto also:) - - - - - 0 - - 38 - - reno_context - - - - - - - 1 - D9B8E6AA12A4F33953B1A961FA590C5A3840234B6531CA8C04AC985AD5800835 - 2432554768 - 702 - 408 - - - - - - 0 - ../../example/enable_error_info.cpp - 0 - 0 - - - - - <string>integrating boost exception in existing exception class hierarchies</string> - - - tutorial_enable_error_info - - - - - - 1 - 2 - (:include include:) (:auto also:) - - - - - 0 - - 39 - - reno_context - - - - - - - 2 - 55F1164770FD778354E151EF65A3E830DA20F325F7ED20A95130A4B83FC801BF - 1282550303 - 9192 - 323 - 65D35B8A2063883A53E9D0DCC3FF8E5CA3573A58451A653CDE3003FFBEC576D3 - 1693870740 - 2195 - 3720 - - - - - - 0 - ../../../../boost/exception/exception.hpp - 0 - 0 - - - - - <string>exception</string> - - - - - - - - - 1 - 2 - (:include include:) ---- !!!See Also: (:pagelist link="backlink" except_tags="exception,member" mod="w":) - - - - - 0 - - 40 - - reno_context - - - - - - - 0 - - - - - - 1 - - - - - <string>boost exception</string> - - - boost-exception - - - - - - 117 - 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 - - 41 - - 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 - - -11 - - - 2 - :) function. !!Contents #Tutorial ##(:link - 1 - - 0 - - 42 - - reno_context - - - - - - - 0 - - - - - - 1 - - - - - <string>transporting of arbitrary data to the catch site</string> - - - tutorial_transporting_data - - - - - 2 - mod="w":) ##(:link - 1 - - 0 - - -34 - - - 2 - mod="w":) ##(:link - 1 - - 0 - - -38 - - - 2 - mod="w":) ##(:link - 1 - - 0 - - -41 - - - 2 - mod="w":) #Documentation ##Class (:link - 1 - - 0 - - -39 - - - 2 - :) ##Transporting of Arbitrary Data to the Catch Site ###(:link - 1 - - 0 - - -16 - - - 2 - :) ###(:link - 1 - - 0 - - -20 - - - 2 - :) ###(:link - 1 - - 0 - - -37 - - - 2 - :) ###(:link - 1 - - 0 - - 43 - - 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> - - - - - - - - 2 - :) ###(:link - 1 - - 0 - - -35 - - - 2 - :) ##(:link http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2179.html|N2179:) Transporting of Exceptions between Threads ###(:link - 1 - - 0 - - -30 - - - 2 - :) ###(:link - 1 - - 0 - - -14 - - - 2 - :) ###(:link - 1 - - 0 - - -9 - - - 2 - :) ###(:link - 1 - - 0 - - -12 - - - 2 - :) ###(:link - 1 - - 0 - - -13 - - - 2 - :) ###(:link - 1 - - 0 - - -10 - - - 2 - :) ##(:link - 1 - - 0 - - -27 - - - 2 - :) ##(:link - 1 - - 0 - - -11 - - - 2 - :), (:link - 1 - - 0 - - 44 - - reno_context - - - - - - - 1 - 17FF6C63843EE64ED66CB038DD95B4C4D6BA1B0FD36B27BEFD84A909161D2853 - 1237535165 - 231 - 1186 - - - - - - 0 - ../../../../boost/throw_exception.hpp - 0 - 0 - - - - - <string>BOOST_THROW_EXCEPTION</string> - - - - - - - - 2 - :) ##(:link - 1 - - 0 - - -26 - - - 2 - mod="w":) ##Headers ###(:link - 1 - - 0 - - -8 - - - 2 - :) ###(:link - 1 - - 0 - - -15 - - - 2 - :) ###(:link - 1 - - 0 - - -6 - - - 2 - :) ###(:link - 1 - - 0 - - -7 - - - 2 - :) ###(:link - 1 - - 0 - - -5 - - - 2 - :) ###(:link - 1 - - 0 - - -22 - - - 2 - :) ###(:link - 1 - - 0 - - -33 - - - 2 - :) ###(:link - 1 - - 0 - - 45 - - 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 - - 46 - - 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 - - - - - 2 - :) ###(:link - 1 - - 0 - - -31 - - - 2 - :) ###(:link - 1 - - 0 - - -28 - - - 2 - :) #(:link - 1 - - 0 - - -21 - - - 2 - :) !!Synopsis `#include <(:link - 1 - - 0 - - -8 - - - 2 - :)> [@namespace boost { (:include - 1 - - 0 - - -22 - - - 2 - api pre_indent="4":) (:include - 1 - - 0 - - -45 - - - 2 - api pre_indent="4":) (:include - 1 - - 0 - - -46 - - - 2 - api pre_indent="4":) (:include - 1 - - 0 - - -7 - - - 2 - api pre_indent="4":) (:include - 1 - - 0 - - -15 - - - 2 - api pre_indent="4":) (:include - 1 - - 0 - - -31 - - - 2 - api pre_indent="4":) (:include - 1 - - 0 - - -6 - - - 2 - api pre_indent="4":) }@] `#include <(:link - 1 - - 0 - - -28 - - - 2 - :)> [@(:include - 1 - - 0 - - -28 - - - 2 - api:)@] !!Class exception (:include - 1 - - 0 - - -39 - - - 2 - :) !!Transporting of Arbitrary Data to the Catch Site (:include - 1 - - 0 - - -16 - - - 2 - :) (:include - 1 - - 0 - - -20 - - - 2 - :) (:include - 1 - - 0 - - -37 - - - 2 - :) (:include - 1 - - 0 - - -43 - - - 2 - :) (:include - 1 - - 0 - - -35 - - - 2 - :) !!Transporting of Exceptions between Threads (:include - 1 - - 0 - - -30 - - - 2 - :) (:include - 1 - - 0 - - -14 - - - 2 - :) (:include - 1 - - 0 - - -9 - - - 2 - :) (:include - 1 - - 0 - - -12 - - - 2 - :) (:include - 1 - - 0 - - -13 - - - 2 - :) (:include - 1 - - 0 - - -10 - - - 2 - :) !!Printing Diagnostic Information (:include - 1 - - 0 - - -27 - - - 2 - :) !!Throwing Exceptions (:include - 1 - - 0 - - -11 - - - 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 - - -41 - - - - 1 - 2 - (:include include:) (:auto also:) - - - - - 0 - - -42 - - - - 1 - 2 - (:include include:) (:auto also:) - - - - - 0 - - -43 - - - - 1 - 2 - (:include include:) (:auto also:) - - - - - 0 - - -44 - - - - 1 - 2 - (:include include:) (:pagelist link="backlink":) - - - - - 0 - - -45 - - - - 1 - 2 - (:include include:) (:auto also:) - - - - - 0 - - -46 - - - - 1 - 2 - (:include include:) (:auto also:) - - - - - 0 - - 47 - - reno_context - - - - - - - 3 - 55F1164770FD778354E151EF65A3E830DA20F325F7ED20A95130A4B83FC801BF - 1282550303 - 9192 - 323 - 65D35B8A2063883A53E9D0DCC3FF8E5CA3573A58451A653CDE3003FFBEC576D3 - 1693870740 - 2195 - 3720 - DA154372D8C23BD9EDC30005CA7959CE686D198891097A837D006B5222F04DE9 - 2768248809 - 143 - 60 - - - - - - 0 - ../../../../boost/exception/exception.hpp - 0 - 0 - - - - - <string>exception::exception</string> - - - exception_constructors - - - - - - 1 - 2 - (:include include:) (:auto also:) - - 0 @@ -2558,34 +2561,40 @@ - 1 - FC684D0DD5A9732B4130F2AB3DB6E0491D0F523E14B7FB738B2019EA2C7F8717 - 2229778754 - 631 - 319 + 2 + 00067869F918D0E8905D8A464C17FA9DAD9F497B3A172EB360239EEB5778A206 + 3465219615 + 4025 + 518 + 6E325144EF4F41FA3A225EB30729101382C4E99B3D6160E307311E4B4E641010 + 1097215175 + 161 + 240 0 - ../../example/cloning_2.cpp + ../../../../boost/exception/info.hpp 0 0 - <string>cloning and re-throwing an exception</string> + <string>error_info::error_info</string> - cloning_and_rethrowing + - 0 + 1 + 2 + (:include include:) (:auto also:) @@ -2731,45 +2740,7 @@ - 9 - 2 - [@template <class Tag,class T> class (:link - 1 - - 0 - - -16 - - - 2 - :) { public: (:include - 1 - - 0 - - -18 - - - 2 - decl pre_indent="4":) (:include - 1 - - 0 - - -19 - - - 2 - decl pre_indent="4":) (:include - 1 - - 0 - - -29 - - - 2 - decl pre_indent="4":) };@] + 0 @@ -3022,36 +2993,7 @@ - 7 - 2 - [@class (:link - 1 - - 0 - - -39 - - - 2 - :) { protected: (:include - 1 - - 0 - - -47 - - - 2 - decl pre_indent="4":) (:include - 1 - - 0 - - -23 - - - 2 - decl pre_indent="4":) };@] + 0 @@ -3080,7 +3022,7 @@ 0 - -42 + -45 @@ -3095,7 +3037,36 @@ - 0 + 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":) };@] @@ -3106,14 +3077,52 @@ - 0 + 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 - -45 + -46 @@ -3124,7 +3133,7 @@ 0 - -46 + -42 @@ -3175,18 +3184,7 @@ - 3 - 2 - [@(:include - 1 - - 0 - - -16 - - - 2 - decl:)@] + 0 @@ -3197,18 +3195,7 @@ - 3 - 2 - [@(:include - 1 - - 0 - - -14 - - - 2 - decl:)@] + 0 @@ -3219,18 +3206,7 @@ - 3 - 2 - [@(:include - 1 - - 0 - - -35 - - - 2 - decl:)@] + 0 @@ -3248,7 +3224,7 @@ 0 - -15 + -26 2 @@ -3257,7 +3233,34 @@ 0 - -5 + -16 + + + 2 + :)> #include <(:link + 1 + + 0 + + -38 + + + 2 + :)> #include <(:link + 1 + + 0 + + -34 + + + 2 + :)> #include <(:link + 1 + + 0 + + -11 2 @@ -3275,34 +3278,7 @@ 0 - -33 - - - 2 - :)> #include <(:link - 1 - - 0 - - -45 - - - 2 - :)> #include <(:link - 1 - - 0 - - -46 - - - 2 - :)> #include <(:link - 1 - - 0 - - -31 + -39 2 @@ -3339,7 +3315,27 @@ - 0 + 5 + 2 + [@(:include + 1 + + 0 + + -44 + + + 2 + def:) (:include + 1 + + 0 + + -37 + + + 2 + decl:)@] @@ -3383,18 +3379,7 @@ - 3 - 2 - [@(:include - 1 - - 0 - - -27 - - - 2 - decl:)@] + 0 @@ -3405,7 +3390,18 @@ - 0 + 3 + 2 + [@(:include + 1 + + 0 + + -44 + + + 2 + decl:)@] @@ -3427,7 +3423,18 @@ - 0 + 3 + 2 + [@(:include + 1 + + 0 + + -27 + + + 2 + decl:)@] @@ -3471,54 +3478,18 @@ - 11 + 3 2 [@(:include 1 0 - -39 + -32 2 - def:) (:include - 1 - - 0 - - -16 - - - 2 - decl:) typedef (:link - 1 - - 0 - - -16 - - - 2 - :)<struct tag_throw_function,char const *> throw_function; typedef (:link - 1 - - 0 - - -16 - - - 2 - :)<struct tag_throw_file,char const *> throw_file; typedef (:link - 1 - - 0 - - -16 - - - 2 - :)<struct tag_throw_line,int> throw_line;@] + decl:)@] @@ -3540,7 +3511,27 @@ - 0 + 5 + 2 + [@(:include + 1 + + 0 + + -15 + + + 2 + decl:) namespace boost { (:include + 1 + + 0 + + -31 + + + 2 + decl:) }@] @@ -3562,7 +3553,18 @@ - 0 + 3 + 2 + [@(:include + 1 + + 0 + + -21 + + + 2 + decl:)@] @@ -3584,27 +3586,7 @@ - 5 - 2 - [@(:include - 1 - - 0 - - -44 - - - 2 - decl:) namespace boost { (:include - 1 - - 0 - - -11 - - - 2 - decl:) }@] + 0 @@ -3637,54 +3619,7 @@ - 11 - 2 - [@(:include - 1 - - 0 - - -10 - - - 2 - decl:) (:include - 1 - - 0 - - -30 - - - 2 - decl:) (:include - 1 - - 0 - - -12 - - - 2 - decl:) (:include - 1 - - 0 - - -9 - - - 2 - decl:) (:include - 1 - - 0 - - -13 - - - 2 - decl:)@] + 0 @@ -3706,18 +3641,7 @@ - 3 - 2 - [@(:include - 1 - - 0 - - -43 - - - 2 - decl:)@] + 0 @@ -3728,7 +3652,18 @@ - 0 + 3 + 2 + [@(:include + 1 + + 0 + + -14 + + + 2 + decl:)@] @@ -3750,7 +3685,18 @@ - 0 + 3 + 2 + [@(:include + 1 + + 0 + + -9 + + + 2 + decl:)@] @@ -3772,7 +3718,54 @@ - 0 + 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;@] @@ -3783,7 +3776,54 @@ - 0 + 11 + 2 + [@(:include + 1 + + 0 + + -33 + + + 2 + decl:) (:include + 1 + + 0 + + -20 + + + 2 + decl:) (:include + 1 + + 0 + + -10 + + + 2 + decl:) (:include + 1 + + 0 + + -12 + + + 2 + decl:) (:include + 1 + + 0 + + -6 + + + 2 + decl:)@] @@ -3812,7 +3852,7 @@ 0 - -42 + -45 @@ -3845,53 +3885,22 @@ 0 - -45 + -46 - 5 - 2 - [@(:include - 1 - - 0 - - -16 - - - 2 - def:) (:include - 1 - - 0 - - -20 - - - 2 - decl:)@] + 0 0 - -46 + -42 - 3 - 2 - [@(:include - 1 - - 0 - - -37 - - - 2 - decl:)@] + 0 @@ -3938,7 +3947,36 @@ - 0 + 7 + 2 + [@(:link + 1 + + 0 + + -5 + + + 2 + mod="m":)(); (:link + 1 + + 0 + + -5 + + + 2 + mod="m":)( (:link + 1 + + 0 + + -43 + + + 2 + :) const & x );@] @@ -3949,7 +3987,27 @@ - 0 + 5 + 2 + [@void (:link + 1 + + 0 + + -6 + + + 2 + :)( (:link + 1 + + 0 + + -20 + + + 2 + :) const & ep ); @@ -3982,18 +4040,9 @@ - 5 + 3 2 - [@(:link - 1 - - 0 - - -30 - - - 2 - :) (:link + [@template <class T> ---unspecified--- (:link 1 0 @@ -4002,7 +4051,7 @@ 2 - :)();@] + :)( T const & x );@] @@ -4015,7 +4064,16 @@ 5 2 - [@class (:link + [@template <class T> (:link + 1 + + 0 + + -20 + + + 2 + :) (:link 1 0 @@ -4024,16 +4082,7 @@ 2 - :): public std::exception public boost:: - 1 - - 0 - - -39 - - - 2 - { ---unspecified--- };@] + :)( T const & e );@] @@ -4044,27 +4093,7 @@ - 5 - 2 - [@#ifdef BOOST_NO_EXCEPTIONS void (:link - 1 - - 0 - - -11 - - - 2 - :)( std::exception const & e ); // user defined #else template <class E> void (:link - 1 - - 0 - - -11 - - - 2 - :)( E const & e ); #endif@] + 0 @@ -4077,12 +4106,12 @@ 5 2 - [@template <class T> (:link + [@(:link 1 0 - -30 + -20 2 @@ -4095,7 +4124,7 @@ 2 - :)( T const & e );@] + :)();@] @@ -4106,27 +4135,7 @@ - 5 - 2 - [@void (:link - 1 - - 0 - - -13 - - - 2 - :)( (:link - 1 - - 0 - - -30 - - - 2 - :) const & ep ); + 0 @@ -4139,7 +4148,7 @@ 3 2 - [@template <class T> ---unspecified--- (:link + [@template <class ErrorInfo,class E> (:link http://www.boost.org/libs/smart_ptr/shared_ptr.htm|shared_ptr:)<typename ErrorInfo::value_type const> (:link 1 0 @@ -4148,7 +4157,7 @@ 2 - :)( T const & e );@] + :)( E const & x );@] @@ -4159,7 +4168,90 @@ - 0 + 19 + 2 + [@#if !defined( BOOST_NO_EXCEPTIONS ) && !defined( BOOST_EXCEPTION_DISABLE ) #include < + 1 + + 0 + + -38 + + + 2 + > #include <boost/current_function.hpp> #define + 1 + + 0 + + -15 + + + 2 + (x)\ ::boost:: + 1 + + 0 + + -31 + + + 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@] @@ -4170,18 +4262,7 @@ - 3 - 2 - [@template <class Tag,class T> class (:link - 1 - - 0 - - -16 - - - 2 - :);@] + 0 @@ -4203,18 +4284,7 @@ - 3 - 2 - [@typedef T (:link - 1 - - 0 - - -18 - - - 2 - mod="m":);@] + 0 @@ -4225,27 +4295,7 @@ - 5 - 2 - [@(:link - 1 - - 0 - - -19 - - - 2 - mod="m":)( (:link - 1 - - 0 - - -18 - - - 2 - mod="m":) const & v );@] + 0 @@ -4256,9 +4306,9 @@ - 5 + 3 2 - [@template <class E, class Tag, class T> E const & (:link + [@typedef ---unspecified--- (:link 1 0 @@ -4267,16 +4317,7 @@ 2 - mod="/":)( E const & x, (:link - 1 - - 0 - - -16 - - - 2 - :)<Tag,T> const & v );@] + :);@] @@ -4287,7 +4328,27 @@ - 0 + 5 + 2 + [@std::string (:link + 1 + + 0 + + -21 + + + 2 + :)( boost::(:link + 1 + + 0 + + -43 + + + 2 + :) const & );@] @@ -4309,18 +4370,7 @@ - 3 - 2 - [@(:link - 1 - - 0 - - -23 - - - 2 - mod="m":)();@] + 0 @@ -4364,9 +4414,9 @@ - 5 + 3 2 - [@std::string (:link + [@template <class T> ---unspecified--- (:link 1 0 @@ -4375,16 +4425,7 @@ 2 - :)( boost::(:link - 1 - - 0 - - -39 - - - 2 - :) const & );@] + :)( T const & e );@] @@ -4406,18 +4447,9 @@ - 5 + 3 2 - [@(:link - 1 - - 0 - - -18 - - - 2 - mod="m":) const & (:link + [@typedef T (:link 1 0 @@ -4426,7 +4458,7 @@ 2 - mod="m":)() const;@] + mod="m":);@] @@ -4437,18 +4469,7 @@ - 3 - 2 - [@typedef ---unspecified--- (:link - 1 - - 0 - - -30 - - - 2 - :);@] + 0 @@ -4459,7 +4480,27 @@ - 0 + 5 + 2 + [@#ifdef BOOST_NO_EXCEPTIONS void (:link + 1 + + 0 + + -31 + + + 2 + :)( std::exception const & e ); // user defined #else template <class E> void (:link + 1 + + 0 + + -31 + + + 2 + :)( E const & e ); #endif@] @@ -4470,7 +4511,36 @@ - 0 + 7 + 2 + [@template <class E, class Tag1, class T1, ..., class TagN, class TN> E const & (:link + 1 + + 0 + + -32 + + + 2 + mod="/":)( E const & x, (:link http://www.boost.org/libs/tuple/doc/tuple_users_guide.html|tuple:)< (:link + 1 + + 0 + + -44 + + + 2 + :)<Tag1,T1>, ..., (:link + 1 + + 0 + + -44 + + + 2 + :)<TagN,TN> > const & v );@] @@ -4481,7 +4551,27 @@ - 0 + 5 + 2 + [@class (:link + 1 + + 0 + + -33 + + + 2 + :): public std::exception public boost:: + 1 + + 0 + + -43 + + + 2 + { ---unspecified--- };@] @@ -4503,18 +4593,7 @@ - 3 - 2 - [@template <class T> ---unspecified--- (:link - 1 - - 0 - - -35 - - - 2 - :)( T const & x );@] + 0 @@ -4536,9 +4615,9 @@ - 7 + 5 2 - [@template <class E, class Tag1, class T1, ..., class TagN, class TN> E const & (:link + [@template <class E, class Tag, class T> E const & (:link 1 0 @@ -4547,25 +4626,16 @@ 2 - mod="/":)( E const & x, (:link http://www.boost.org/libs/tuple/doc/tuple_users_guide.html|tuple:)< (:link + mod="/":)( E const & x, (:link 1 0 - -16 + -44 2 - :)<Tag1,T1>, ..., (:link - 1 - - 0 - - -16 - - - 2 - :)<TagN,TN> > const & v );@] + :)<Tag,T> const & v );@] @@ -4587,18 +4657,7 @@ - 3 - 2 - [@class (:link - 1 - - 0 - - -39 - - - 2 - :);@] + 0 @@ -4609,7 +4668,27 @@ - 0 + 5 + 2 + [@(:link + 1 + + 0 + + -29 + + + 2 + mod="m":) const & (:link + 1 + + 0 + + -40 + + + 2 + mod="m":)() const;@] @@ -4627,7 +4706,7 @@ 0 - -42 + -45 @@ -4644,7 +4723,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 + [@class (:link 1 0 @@ -4653,7 +4732,7 @@ 2 - :)( E const & x );@] + :);@] @@ -4664,18 +4743,9 @@ - 19 + 3 2 - [@#if !defined( BOOST_NO_EXCEPTIONS ) && !defined( BOOST_EXCEPTION_DISABLE ) #include < - 1 - - 0 - - -22 - - - 2 - > #include <boost/current_function.hpp> #define + [@template <class Tag,class T> class (:link 1 0 @@ -4684,81 +4754,7 @@ 2 - (x)\ ::boost:: - 1 - - 0 - - -11 - - - 2 - ( ::boost:: - 1 - - 0 - - -35 - - - 2 - (x) <<\ ::boost::(:link - 1 - - 0 - - -22 - - - 2 - |throw_function:)(BOOST_CURRENT_FUNCTION) <<\ ::boost::(:link - 1 - - 0 - - -22 - - - 2 - |throw_file:)(__FILE__) <<\ ::boost::(:link - 1 - - 0 - - -22 - - - 2 - |throw_line:)((int)__LINE__) ) #else #define - 1 - - 0 - - -44 - - - 2 - (x) ::boost:: - 1 - - 0 - - -11 - - - 2 - (x) #endif@] - - - - - 0 - - -45 - - - - 0 + :);@] @@ -4768,6 +4764,28 @@ -46 + + 3 + 2 + [@(:link + 1 + + 0 + + -46 + + + 2 + mod="m":)();@] + + + + + 0 + + -42 + + 0 @@ -4780,36 +4798,7 @@ - 7 - 2 - [@(:link - 1 - - 0 - - -47 - - - 2 - mod="m":)(); (:link - 1 - - 0 - - -47 - - - 2 - mod="m":)( (:link - 1 - - 0 - - -39 - - - 2 - :) const & x );@] + 0 @@ -4820,7 +4809,27 @@ - 0 + 5 + 2 + [@(:link + 1 + + 0 + + -48 + + + 2 + mod="m":)( (:link + 1 + + 0 + + -29 + + + 2 + mod="m":) const & v );@] @@ -4845,9 +4854,36 @@ - 1 + 7 2 - (:auto !!:) !!!Synopsis (:include synopsis:) + (: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. @@ -4860,7 +4896,7 @@ 1 2 - (:auto !!!:) !!!Synopsis (:include synopsis:) + (:auto !!!:) (:include synopsis:) !!!!Precondition: ep shall not be null. !!!!Throws: The exception to which ep refers. @@ -4871,9 +4907,54 @@ - 1 + 11 2 - (:auto !!!:) !!!Synopsis (:include synopsis:) + (:auto !!:) All exception types that derive from boost::(:link + 1 + + 0 + + -43 + + + 2 + :) can be used as type-safe containers of arbitrary data objects, while complying with the no-throw requirements (15.5.1) of the ANSI C++ standard for exception types. Data can be added to a boost::(:link + 1 + + 0 + + -43 + + + 2 + :) at the time of the throw, or at a later time. (:include + 1 + + 0 + + -19 + + + 2 + :) (:include + 1 + + 0 + + -47 + + + 2 + :) (:include + 1 + + 0 + + -35 + + + 2 + :) @@ -4897,135 +4978,27 @@ - 29 + 5 2 - (:auto !!!:) (:include synopsis:) !!!!Requirements: The (:link + (: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 - -9 + -43 2 - :) function must not be called outside of a catch block. !!!!Returns: * An (:link + :), 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 - -30 + -43 2 - :) that refers to the currently handled exception or a copy of the currently handled exception. * If the function needs to allocate memory and the attempt fails, it returns an (:link - 1 - - 0 - - -30 - - - 2 - :) that refers to an instance of std::bad_alloc. !!!!Throws: Nothing. !!!!Notes: * It is unspecified whether the return values of two successive calls to (:link - 1 - - 0 - - -9 - - - 2 - :) refer to the same exception object. * Correct implementation of (:link - 1 - - 0 - - -9 - - - 2 - :) may require compiler support, unless (:link - 1 - - 0 - - -14 - - - 2 - :) was used at the time the currently handled exception object was passed to throw. If (:link - 1 - - 0 - - -14 - - - 2 - :) was not used, and if the compiler does not provide the necessary support, then (:link - 1 - - 0 - - -9 - - - 2 - :) may return an (:link - 1 - - 0 - - -30 - - - 2 - :) that refers to an instance of (:link - 1 - - 0 - - -10 - - - 2 - :). In this case, if the original exception object derives from boost::(:link - 1 - - 0 - - -39 - - - 2 - :), then the boost::(:link - 1 - - 0 - - -39 - - - 2 - :) sub-object of the (:link - 1 - - 0 - - -10 - - - 2 - :) object is initialized by the boost::(:link - 1 - - 0 - - -39 - - - 2 - :) copy constructor. + :). The T sub-object is initialized from x by the T copy constructor. !!!!Throws: Nothing. @@ -5035,104 +5008,6 @@ -10 - - 5 - 2 - (:auto !!!:) (:include synopsis:) This type is used by the (:link - 1 - - 0 - - -30 - - - 2 - :) support in Boost Exception. Please see (:link - 1 - - 0 - - -9 - - - 2 - :). - - - - - 0 - - -11 - - - - 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 - - -11 - - - 2 - :)(e) is equivalent to throw boost::(:link - 1 - - 0 - - -14 - - - 2 - :)(boost::(:link - 1 - - 0 - - -35 - - - 2 - :)(e)), unless BOOST_EXCEPTION_DISABLE is defined, in which case boost::(:link - 1 - - 0 - - -11 - - - 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 - - -11 - - - 2 - :) are allowed to assume that the function never returns; therefore, if the user-defined (:link - 1 - - 0 - - -11 - - - 2 - :) returns, the behavior is undefined. - - - - - 0 - - -12 - - 5 2 @@ -5141,7 +5016,7 @@ 0 - -14 + -27 2 @@ -5150,7 +5025,7 @@ 0 - -9 + -12 2 @@ -5161,123 +5036,7 @@ 0 - -13 - - - - 1 - 2 - (:auto !!!:) (:include synopsis:) !!!!Precondition: ep shall not be null. !!!!Throws: The exception to which ep refers. - - - - - 0 - - -14 - - - - 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 - - -30 - - - 2 - :) support in Boost Exception. For example: [@class my_exception: public std::exception { }; .... throw boost::(:link - 1 - - 0 - - -14 - - - 2 - :)(my_exception());@] Unless (:link - 1 - - 0 - - -14 - - - 2 - :) is called at the time an exception object is used in a throw-expression, an attempt to copy it using (:link - 1 - - 0 - - -9 - - - 2 - :) may return an (:link - 1 - - 0 - - -30 - - - 2 - :) which refers to an instance of (:link - 1 - - 0 - - -10 - - - 2 - :). See (:link - 1 - - 0 - - -9 - - - 2 - :) for details. !!!!Note: Instead of using the throw keyword directly, it is preferable to call boost::(:link - 1 - - 0 - - -11 - - - 2 - :). This is guaranteed to throw an exception that derives from boost::(:link - 1 - - 0 - - -39 - - - 2 - :) and supports the (:link - 1 - - 0 - - -30 - - - 2 - :) functionality. - - - - - 0 - - -15 + -11 @@ -5290,22 +5049,22 @@ 0 - -16 + -12 - 25 + 29 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 + (:auto !!!:) (:include synopsis:) !!!!Requirements: The (:link 1 0 - -16 + -12 2 - :)<Tag,T> can be passed to (:link + :) function must not be called outside of a catch block. !!!!Returns: * An (:link 1 0 @@ -5314,70 +5073,7 @@ 2 - mod="/":) to be stored in objects of type boost::(:link - 1 - - 0 - - -39 - - - 2 - :). !!!!Note: The header <(:link - 1 - - 0 - - -5 - - - 2 - :)> provides a declaration of the (:link - 1 - - 0 - - -16 - - - 2 - :) template, which is sufficient for the purpose of typedefing an instance for specific Tag and T, like this: [@#include <(:link - 1 - - 0 - - -5 - - - 2 - :)> typedef boost::(:link - 1 - - 0 - - -16 - - - 2 - :)<struct tag_errno,int> errno_info;@] Of course, to actually add an (:link - 1 - - 0 - - -16 - - - 2 - :) object to (:link - 1 - - 0 - - -39 - - - 2 - mod="p":) using (:link + :) that refers to the currently handled exception or a copy of the currently handled exception. * If the function needs to allocate memory and the attempt fails, it returns an (:link 1 0 @@ -5386,7 +5082,70 @@ 2 - mod="/":), or to retrieve it using (:link + :) that refers to an instance of std::bad_alloc. !!!!Throws: Nothing. !!!!Notes: * It is unspecified whether the return values of two successive calls to (:link + 1 + + 0 + + -12 + + + 2 + :) refer to the same exception object. * Correct implementation of (:link + 1 + + 0 + + -12 + + + 2 + :) may require compiler support, unless (:link + 1 + + 0 + + -27 + + + 2 + :) was used at the time the currently handled exception object was passed to throw. If (:link + 1 + + 0 + + -27 + + + 2 + :) was not used, and if the compiler does not provide the necessary support, then (:link + 1 + + 0 + + -12 + + + 2 + :) may return an (:link + 1 + + 0 + + -20 + + + 2 + :) that refers to an instance of (:link + 1 + + 0 + + -33 + + + 2 + :). In this case, if the original exception object derives from boost::(:link 1 0 @@ -5395,16 +5154,248 @@ 2 - :), you must first #include <(:link + :), then the boost::(:link 1 0 - -45 + -43 2 - :)>. + :) sub-object of the (:link + 1 + + 0 + + -33 + + + 2 + :) object is initialized by the boost::(:link + 1 + + 0 + + -43 + + + 2 + :) copy constructor. + + + + + 0 + + -13 + + + + 19 + 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 + :) + + + + + 0 + + -14 + + + + 13 + 2 + (:auto !!!:) (:include synopsis:) !!!!Requirements: * ErrorInfo must be an instance of the (:link + 1 + + 0 + + -44 + + + 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 + :). + + + + + 0 + + -15 + + + + 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 + + -31 + + + 2 + . To recover this information at the catch site, use + 1 + + 0 + + -14 + + + 2 + ; the information is also included in the message returned by + 1 + + 0 + + -21 + + + 2 + . + + + + + 0 + + -16 + + + + 1 + 2 + (:auto !!:) !!!Synopsis (:include synopsis:) @@ -5415,9 +5406,36 @@ - 3 + 15 2 - !!!!Example: this is a possible output from the (:link + (: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 + + -14 + + + 2 + :) function template can be called with any exception type. If BOOST_NO_RTTI is defined, (:link + 1 + + 0 + + -14 + + + 2 + :) can be used only with objects of type boost::(:link + 1 + + 0 + + -43 + + + 2 + :). '''BOOST_EXCEPTION_DISABLE''' By default, (:link 1 0 @@ -5426,7 +5444,34 @@ 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@] + :) 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 + :). @@ -5437,27 +5482,9 @@ - 5 + 1 2 - (:auto !!!:) (:include synopsis:) !!!!Definition: The expression - 1 - - 0 - - -16 - - - 2 - <Tag,T>::(:link - 1 - - 0 - - -18 - - - 2 - mod="m":) evaluates to T. + (:auto !!!:) !!!Synopsis (:include synopsis:) @@ -5468,18 +5495,81 @@ - 3 + 17 2 - (:auto !!!:) (:include synopsis:) !!!!Effects: Stores a copy of v in the + (:auto !!!:) The following example demonstrates how errno can be stored in exception objects using Boost Exception: [@#include <(:link 1 0 - -16 + -8 2 - object. (:include throws:) + :)> #include <errno.h> #include <iostream> typedef boost::(:link + 1 + + 0 + + -44 + + + 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. @@ -5490,36 +5580,81 @@ - 7 + 17 2 - (:auto !!!:) (:include synopsis:) !!!!Requirements: E must be boost::(:link + (:auto !!!:) (:include synopsis:) The (:link 1 0 - -39 + -20 2 - :), or a type that derives (indirectly) from boost::(:link + :) type can be used to refer to a copy of an exception object. It is Default Constructible, Copy Constructible, Assignable and Equality Comparable; (:link 1 0 - -39 + -20 2 - :). !!!!Effects: Stores a copy of v into x. If x already contains data of type (:link + :)'s operations do not throw. Two instances of (:link 1 0 - -16 + -20 2 - :)<Tag,T>, that data is overwritten. !!!!Returns: x. (:include throws:) + :) are equivalent and compare equal if and only if they refer to the same exception. The default constructor of (:link + 1 + + 0 + + -20 + + + 2 + :) produces the null value of the type. The null value is equivalent only to itself. !!!!Thread safety * It is legal for multiple threads to hold (:link + 1 + + 0 + + -20 + + + 2 + :) references to the same exception object. * It is illegal for multiple threads to modify the same (:link + 1 + + 0 + + -20 + + + 2 + :) object concurrently. * While calling (:link + 1 + + 0 + + -12 + + + 2 + :) makes a copy of the current exception object, it is still possible for the two copies to share internal state. Therefore, in general it is not safe to call (:link + 1 + + 0 + + -6 + + + 2 + :) concurrently to throw the same exception object into multiple threads. @@ -5530,7 +5665,108 @@ - 0 + 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 + :) @@ -5556,16 +5792,16 @@ 3 2 - (:auto !!!:) (:include decl:) !!!!Effects: Frees all resources associated with a boost::(:link + !!!!Example: this is a possible output from the (:link 1 0 - -39 + -21 2 - :) object. !!!!Throws: Nothing. + :) 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@] @@ -5576,54 +5812,9 @@ - 11 + 1 2 - (:auto !!!:) Here is how cloning can be enabled in a throw-expression (15.1): [@#include <(:link - 1 - - 0 - - -45 - - - 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 - - -39 - - - 2 - :) { }; void file_read( FILE * f, void * buffer, size_t size ) { if( size!=fread(buffer,1,size,f) ) throw boost::(:link - 1 - - 0 - - -14 - - - 2 - :)(file_read_error()) << errno_info(errno); }@] Of course, (:link - 1 - - 0 - - -14 - - - 2 - :) may be used with any exception type; there is no requirement that it should derive from boost::(:link - 1 - - 0 - - -39 - - - 2 - :). + (:auto !!:) !!!Synopsis (:include synopsis:) @@ -5634,54 +5825,45 @@ - 13 + 11 2 - (:auto !!!:) The code snippet below demonstrates how boost::(:link http://www.boost.org/libs/tuple/doc/tuple_users_guide.html|tuple:) can be used to bundle the name of the function that failed, together with the reported errno so that they can be added to exception objects more conveniently together: [@#include <(:link + (:auto !!!:) Here is how cloning can be enabled in a throw-expression (15.1): [@#include <(:link 1 0 - -46 + -11 2 - :)> #include <boost/shared_ptr.hpp> #include <stdio.h> #include <string> #include <errno.h> typedef boost::(:link + :)> #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 - -16 + -43 2 - :)<struct tag_file_name,std::string> file_name_info; typedef boost::(:link + :) { }; void file_read( FILE * f, void * buffer, size_t size ) { if( size!=fread(buffer,1,size,f) ) throw boost::(:link 1 0 - -16 + -27 2 - :)<struct tag_function,char const *> function_info; typedef boost::(:link + :)(file_read_error()) << errno_info(errno); }@] Of course, (:link 1 0 - -16 + -27 2 - :)<struct tag_errno,int> errno_info; typedef boost::tuple<function_info,errno_info> clib_failure; class file_open_error: public boost::(:link - 1 - - 0 - - -39 - - - 2 - :) { }; boost::shared_ptr<FILE> file_open( char const * name, char const * mode ) { if( FILE * f=fopen(name,mode) ) return boost::shared_ptr<FILE>(f,fclose); else throw file_open_error() << file_name_info(name) << clib_failure("fopen",errno); }@] Note that the members of a boost::(:link http://www.boost.org/libs/tuple/doc/tuple_users_guide.html|tuple:) are stored separately in exception objects; they can only be retrieved individually, using (:link + :) may be used with any exception type; there is no requirement that it should derive from boost::(:link 1 0 @@ -5701,72 +5883,9 @@ - 15 + 1 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 - - -43 - - - 2 - :) function template can be called with any exception type. If BOOST_NO_RTTI is defined, (:link - 1 - - 0 - - -43 - - - 2 - :) can be used only with objects of type boost::(:link - 1 - - 0 - - -39 - - - 2 - :). '''BOOST_EXCEPTION_DISABLE''' By default, (:link - 1 - - 0 - - -14 - - - 2 - :) and (:link - 1 - - 0 - - -35 - - - 2 - :) are integrated directly in the (:link - 1 - - 0 - - -11 - - - 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 - - -28 - - - 2 - :). + (:auto !!:) !!!Synopsis (:include synopsis:) @@ -5777,27 +5896,9 @@ - 23 + 21 2 - (:auto !!!:) (:include synopsis:) !!!!Returns: This function returns a string value that is automatically composed from the string representations of all (:link - 1 - - 0 - - -16 - - - 2 - :) objects stored in a boost::(:link - 1 - - 0 - - -39 - - - 2 - :) through (:link + (:auto !!!:) (:include synopsis:) !!!!Requirements: T must be a class with an accessible no-throw copy constructor. !!!!Returns: An object of ''unspecified'' type which derives publicly from T. That is, the returned object can be intercepted by a catch(T &). !!!!Description: This function is designed to be used directly in a throw-expression to enable the (:link 1 0 @@ -5806,52 +5907,7 @@ 2 - mod="/":), along with other diagnostic information relevant to the exception. The string representation of each (:link - 1 - - 0 - - -16 - - - 2 - :) object is deduced by a function call that is bound at the time the (:link - 1 - - 0 - - -16 - - - 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 - - -16 - - - 2 - :)<Tag,T> (the return value is expected to be of type std::string.) #Unqualified call to to_string(x.(:link - 1 - - 0 - - -29 - - - 2 - mod="m":)()) (the return value is expected to be of type std::string.) #Unqualified call to s << x.(:link - 1 - - 0 - - -29 - - - 2 - mod="m":)(), where s is a std::ostringstream. The first successfully bound function is used at the time (:link + :) support in Boost Exception. For example: [@class my_exception: public std::exception { }; .... throw boost::(:link 1 0 @@ -5860,25 +5916,79 @@ 2 - :) is called; if all 3 overload resolutions are unsuccessful, the system is unable to convert the (:link + :)(my_exception());@] Unless (:link 1 0 - -16 + -27 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 + :) is called at the time an exception object is used in a throw-expression, an attempt to copy it using (:link 1 0 - -17 + -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. @@ -5888,496 +5998,6 @@ -28 - - 1 - 2 - (:auto !!:) !!!Synopsis (:include synopsis:) - - - - - 0 - - -29 - - - - 5 - 2 - (:auto !!!:) (:include synopsis:) !!!!Description: Returns a const reference to the copy of the value passed to (:link - 1 - - 0 - - -16 - - - 2 - :)'s constructor stored in the (:link - 1 - - 0 - - -16 - - - 2 - :) object. !!!!Throws: Nothing. - - - - - 0 - - -30 - - - - 17 - 2 - (:auto !!!:) (:include synopsis:) The (:link - 1 - - 0 - - -30 - - - 2 - :) type can be used to refer to a copy of an exception object. It is Default Constructible, Copy Constructible, Assignable and Equality Comparable; (:link - 1 - - 0 - - -30 - - - 2 - :)'s operations do not throw. Two instances of (:link - 1 - - 0 - - -30 - - - 2 - :) are equivalent and compare equal if and only if they refer to the same exception. The default constructor of (:link - 1 - - 0 - - -30 - - - 2 - :) produces the null value of the type. The null value is equivalent only to itself. !!!!Thread safety * It is legal for multiple threads to hold (:link - 1 - - 0 - - -30 - - - 2 - :) references to the same exception object. * It is illegal for multiple threads to modify the same (:link - 1 - - 0 - - -30 - - - 2 - :) object concurrently. * While calling (:link - 1 - - 0 - - -9 - - - 2 - :) makes a copy of the current exception object, it is still possible for the two copies to share internal state. Therefore, in general it is not safe to call (:link - 1 - - 0 - - -13 - - - 2 - :) concurrently to throw the same exception object into multiple threads. - - - - - 0 - - -31 - - - - 1 - 2 - (:auto !!:) !!!Synopsis (:include synopsis:) - - - - - 0 - - -32 - - - - 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 - - -39 - - - 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 - - -16 - - - 2 - :)<struct tag_errno,int> errno_info; class file_read_error: public boost::(:link - 1 - - 0 - - -39 - - - 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 - - -16 - - - 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 - - -39 - - - 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 - - -39 - - - 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 - - -39 - - - 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 - - -33 - - - - 1 - 2 - (:auto !!:) !!!Synopsis (:include synopsis:) - - - - - 0 - - -34 - - - - 19 - 2 - (:auto !!:) Boost Exception provides a namespace-scope function (:link - 1 - - 0 - - -27 - - - 2 - :) which takes a boost::(:link - 1 - - 0 - - -39 - - - 2 - :). The returned string contains: *the string representation of all data objects added to the boost::(:link - 1 - - 0 - - -39 - - - 2 - :) through (:link - 1 - - 0 - - -20 - - - 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 - - -39 - - - 2 - :). void g() { try { f(); } catch( boost::(:link - 1 - - 0 - - -39 - - - 2 - :) & e ) { std::cerr << (:link - 1 - - 0 - - -27 - - - 2 - :)(e); } }@] (:include - 1 - - 0 - - -17 - - - 2 - :) - - - - - 0 - - -35 - - - - 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 - - -39 - - - 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 - - -39 - - - 2 - :). The T sub-object is initialized from x by the T copy constructor. !!!!Throws: Nothing. - - - - - 0 - - -36 - - - - 17 - 2 - (:auto !!!:) The following example demonstrates how errno can be stored in exception objects using Boost Exception: [@#include <(:link - 1 - - 0 - - -8 - - - 2 - :)> #include <errno.h> #include <iostream> typedef boost::(:link - 1 - - 0 - - -16 - - - 2 - :)<struct tag_errno,int> errno_info; //(1) class my_error: public boost::(:link - 1 - - 0 - - -39 - - - 2 - :), public std::exception { }; //(2) void f() { throw my_error() << errno_info(errno); //(3) } @] First, we instantiate the (:link - 1 - - 0 - - -16 - - - 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 - - -39 - - - 2 - :). Finally, (3) illustrates how the typedef from (1) can be used with (:link - 1 - - 0 - - -20 - - - 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 - - -43 - - - 2 - :)<errno_info>(x) ) std::cerr << "Error code: " << *err; } }@] The (:link - 1 - - 0 - - -43 - - - 2 - :) function template is instantiated with the typedef from (1), and is passed an exception object of a polymorphic type. If the exception object contains the requested value, the returned (:link http://www.boost.org/libs/smart_ptr/shared_ptr.htm|shared_ptr:) will point to it; otherwise an empty (:link http://www.boost.org/libs/smart_ptr/shared_ptr.htm|shared_ptr:) is returned. - - - - - 0 - - -37 - - - - 5 - 2 - (:auto !!!:) (:include synopsis:) !!!!Requirements: E must be boost::(:link - 1 - - 0 - - -39 - - - 2 - :), or a type that derives (indirectly) from boost::(:link - 1 - - 0 - - -39 - - - 2 - :). !!!!Effects: Equivalent to x << v.(:link http://www.boost.org/libs/tuple/doc/tuple_users_guide.html#accessing_elements|get:)<0>() << ... << v.(:link http://www.boost.org/libs/tuple/doc/tuple_users_guide.html#accessing_elements|get:)<N>(). !!!!Returns: x. (:include throws:) - - - - - 0 - - -38 - - 27 2 @@ -6386,7 +6006,7 @@ 0 - -39 + -43 2 @@ -6395,7 +6015,7 @@ 0 - -35 + -9 2 @@ -6404,7 +6024,7 @@ 0 - -39 + -43 2 @@ -6422,7 +6042,7 @@ 0 - -16 + -44 2 @@ -6431,7 +6051,7 @@ 0 - -16 + -44 2 @@ -6440,7 +6060,7 @@ 0 - -16 + -44 2 @@ -6449,7 +6069,7 @@ 0 - -35 + -9 2 @@ -6458,7 +6078,7 @@ 0 - -35 + -9 2 @@ -6467,7 +6087,7 @@ 0 - -39 + -43 2 @@ -6476,7 +6096,7 @@ 0 - -20 + -37 2 @@ -6485,7 +6105,7 @@ 0 - -39 + -43 2 @@ -6494,7 +6114,7 @@ 0 - -42 + -7 2 @@ -6505,74 +6125,38 @@ 0 - -39 + -29 - 13 + 5 2 - (:auto !!!:) (:include synopsis:) Class boost::(:link + (:auto !!!:) (:include synopsis:) !!!!Definition: The expression 1 0 - -39 + -44 2 - :) is designed to be used as a universal base for user-defined exception types. An object of any type deriving from boost::(:link + <Tag,T>::(:link 1 0 - -39 + -29 2 - :) can store data of arbitrary types, using the (:link - 1 - - 0 - - -16 - - - 2 - :) wrapper and (:link - 1 - - 0 - - -20 - - - 2 - mod="/":). To retrieve data from a boost::(:link - 1 - - 0 - - -39 - - - 2 - :) object, use the (:link - 1 - - 0 - - -43 - - - 2 - :) function template. + mod="m":) evaluates to T. 0 - -40 + -30 @@ -6583,13 +6167,200 @@ 0 - -41 + -31 - 11 + 13 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 !!!:) (:include synopsis:) !!!!Requirements: E must derive publicly from std::exception. !!!!Effects: * If BOOST_NO_EXCEPTIONS is not defined, boost::(:link + 1 + + 0 + + -31 + + + 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. + + + + + 0 + + -32 + + + + 5 + 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: Equivalent to x << v.(:link http://www.boost.org/libs/tuple/doc/tuple_users_guide.html#accessing_elements|get:)<0>() << ... << v.(:link http://www.boost.org/libs/tuple/doc/tuple_users_guide.html#accessing_elements|get:)<N>(). !!!!Returns: x. (:include throws:) + + + + + 0 + + -33 + + + + 5 + 2 + (:auto !!!:) (:include synopsis:) This type is used by the (:link + 1 + + 0 + + -20 + + + 2 + :) support in Boost Exception. Please see (:link + 1 + + 0 + + -12 + + + 2 + :). + + + + + 0 + + -34 + + + + 1 + 2 + (:auto !!:) !!!Synopsis (:include synopsis:) + + + + + 0 + + -35 + + + + 13 + 2 + (:auto !!!:) The code snippet below demonstrates how boost::(:link http://www.boost.org/libs/tuple/doc/tuple_users_guide.html|tuple:) can be used to bundle the name of the function that failed, together with the reported errno so that they can be added to exception objects more conveniently together: [@#include <(:link + 1 + + 0 + + -22 + + + 2 + :)> #include <boost/shared_ptr.hpp> #include <stdio.h> #include <string> #include <errno.h> typedef boost::(:link + 1 + + 0 + + -44 + + + 2 + :)<struct tag_file_name,std::string> file_name_info; typedef boost::(:link + 1 + + 0 + + -44 + + + 2 + :)<struct tag_function,char const *> function_info; typedef boost::(:link + 1 + + 0 + + -44 + + + 2 + :)<struct tag_errno,int> errno_info; typedef boost::tuple<function_info,errno_info> clib_failure; class file_open_error: public boost::(:link + 1 + + 0 + + -43 + + + 2 + :) { }; boost::shared_ptr<FILE> file_open( char const * name, char const * mode ) { if( FILE * f=fopen(name,mode) ) return boost::shared_ptr<FILE>(f,fclose); else throw file_open_error() << file_name_info(name) << clib_failure("fopen",errno); }@] Note that the members of a boost::(:link http://www.boost.org/libs/tuple/doc/tuple_users_guide.html|tuple:) are stored separately in exception objects; they can only be retrieved individually, using (:link 1 0 @@ -6598,56 +6369,159 @@ 2 - :) at the time of the throw is required in order to use cloning. !!!!Note: All exceptions emitted by the familiar function boost::(:link - 1 - - 0 - - -11 - - - 2 - :) are guaranteed to derive from boost::(:link - 1 - - 0 - - -39 - - - 2 - :) and to support cloning. (:include - 1 - - 0 - - -24 - - - 2 - :) (:include - 1 - - 0 - - -48 - - - 2 - :) + :). 0 - -42 + -36 - 11 + 1 2 - (:auto !!:) All exception types that derive from boost::(:link + (: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 + + + + 1 + 2 + (:auto !!:) !!!Synopsis (:include synopsis:) + + + + + 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 + + + + 37 + 2 + (:auto !!!:) When you catch an exception, you can call (:link + 1 + + 0 + + -12 + + + 2 + :) to get an (:link + 1 + + 0 + + -20 + + + 2 + :) object: [@#include <(:link 1 0 @@ -6656,43 +6530,142 @@ 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 + :)> #include <boost/thread.hpp> #include <boost/bind.hpp> void do_work(); //throws cloning-enabled boost::(:link 1 0 - -39 + -43 2 - :) at the time of the throw, or at a later time. (:include + :)s void worker_thread( boost::(:link 1 0 - -36 + -20 2 - :) (:include + :) & error ) { try { do_work(); error = boost::(:link 1 0 - -32 + -20 2 - :) (:include + :)(); } catch( ... ) { error = boost::(:link 1 0 - -25 + -12 2 - :) + :)(); } }@] In the above example, note that (:link + 1 + + 0 + + -12 + + + 2 + :) captures the original type of the exception object. The exception can be thrown again using the (:link + 1 + + 0 + + -6 + + + 2 + :) function: [@// ...continued void work() { boost::(:link + 1 + + 0 + + -20 + + + 2 + :) error; boost::(:link http://www.boost.org/doc/html/boost/thread.html|thread:) t( boost::(:link http://www.boost.org/libs/bind/bind.html|bind:)(worker_thread,boost::(:link http://www.boost.org/doc/html/ref.html|ref:)(error)) ); t.(:link http://www.boost.org/doc/html/boost/thread.html|join:)(); if( error ) boost::(:link + 1 + + 0 + + -6 + + + 2 + :)(error); }@] Note that (:link + 1 + + 0 + + -12 + + + 2 + :) could fail to copy the original exception object in the following cases: * if there is not enough memory, in which case the returned (:link + 1 + + 0 + + -20 + + + 2 + :) points to an instance of std::bad_alloc, or * if (:link + 1 + + 0 + + -27 + + + 2 + :) was not used in the throw-expression passed to the original throw statement and the current implementation does not have the necessary compiler-specific support to copy the exception automatically, in which case the returned (:link + 1 + + 0 + + -20 + + + 2 + :) points to an instance of (:link + 1 + + 0 + + -33 + + + 2 + :). Regardless, the use of (:link + 1 + + 0 + + -12 + + + 2 + :) and (:link + 1 + + 0 + + -6 + + + 2 + :) in the above examples is well-formed. @@ -6705,16 +6678,7 @@ 13 2 - (:auto !!!:) (:include synopsis:) !!!!Requirements: * ErrorInfo must be an instance of the (:link - 1 - - 0 - - -16 - - - 2 - :) template. * E must be polymorphic. * The (:link + (:auto !!!:) (:include synopsis:) Class boost::(:link 1 0 @@ -6723,25 +6687,7 @@ 2 - :) function must not be called outside of a catch block. !!!!Returns: * If dynamic_cast<boost::(:link - 1 - - 0 - - -39 - - - 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 - - -20 - - - 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 + :) 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 @@ -6750,16 +6696,43 @@ 2 - :) may be affected by the build (:link + :) can store data of arbitrary types, using the (:link 1 0 - -26 + -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. @@ -6770,18 +6743,27 @@ - 7 + 25 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: 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 - -11 + -44 2 - . To recover this information at the catch site, use + :)<Tag,T> can be passed to (:link + 1 + + 0 + + -37 + + + 2 + mod="/":) to be stored in objects of type boost::(:link 1 0 @@ -6790,29 +6772,88 @@ 2 - ; the information is also included in the message returned by + :). !!!!Note: The header <(:link 1 0 - -27 + -16 2 - . - - - - - 0 - - -45 - - - - 1 + :)> provides a declaration of the (:link + 1 + + 0 + + -44 + + 2 - (:auto !!:) !!!Synopsis (:include synopsis:) + :) 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 + :)>. @@ -6823,9 +6864,76 @@ - 1 + 3 2 - (:auto !!:) !!!Synopsis (:include synopsis:) + (:auto !!!:) (:include decl:) !!!!Effects: Frees all resources associated with a boost::(:link + 1 + + 0 + + -43 + + + 2 + :) object. !!!!Throws: Nothing. + + + + + 0 + + -42 + + + + 11 + 2 + (:auto !!:) Boost Exception supports transporting of exception objects between threads through cloning. This system is similar to (:link http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2179.html|N2179:), but because Boost Exception can not rely on language support, the use of (:link + 1 + + 0 + + -27 + + + 2 + :) at the time of the throw is required in order to use cloning. !!!!Note: All exceptions emitted by the familiar function boost::(:link + 1 + + 0 + + -31 + + + 2 + :) are guaranteed to derive from boost::(:link + 1 + + 0 + + -43 + + + 2 + :) and to support cloning. (:include + 1 + + 0 + + -25 + + + 2 + :) (:include + 1 + + 0 + + -45 + + + 2 + :) @@ -6836,36 +6944,90 @@ - 7 + 19 2 - (:auto !!!:) (:include decl:) !!!!Effects: * Default constructor: initializes an empty boost::(:link + (: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 - -39 + -43 2 - :) object. * Copy constructor: initializes a boost::(:link + 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 + -8 2 - :) object which shares ownership with x of all data added through (:link + :)> #include <stdio.h> #include <errno.h> typedef boost::(:link 1 0 - -20 + -44 2 - mod="/":), including data that is added at a future time. !!!!Throws: Nothing. + :)<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''. @@ -6876,171 +7038,18 @@ - 37 + 3 2 - (:auto !!!:) When you catch an exception, you can call (:link + (:auto !!!:) (:include synopsis:) !!!!Effects: Stores a copy of v in the 1 0 - -9 + -44 2 - :) to get an (:link - 1 - - 0 - - -30 - - - 2 - :) object: [@#include <(:link - 1 - - 0 - - -31 - - - 2 - :)> #include <boost/thread.hpp> #include <boost/bind.hpp> void do_work(); //throws cloning-enabled boost::(:link - 1 - - 0 - - -39 - - - 2 - :)s void worker_thread( boost::(:link - 1 - - 0 - - -30 - - - 2 - :) & error ) { try { do_work(); error = boost::(:link - 1 - - 0 - - -30 - - - 2 - :)(); } catch( ... ) { error = boost::(:link - 1 - - 0 - - -9 - - - 2 - :)(); } }@] In the above example, note that (:link - 1 - - 0 - - -9 - - - 2 - :) captures the original type of the exception object. The exception can be thrown again using the (:link - 1 - - 0 - - -13 - - - 2 - :) function: [@// ...continued void work() { boost::(:link - 1 - - 0 - - -30 - - - 2 - :) error; boost::(:link http://www.boost.org/doc/html/boost/thread.html|thread:) t( boost::(:link http://www.boost.org/libs/bind/bind.html|bind:)(worker_thread,boost::(:link http://www.boost.org/doc/html/ref.html|ref:)(error)) ); t.(:link http://www.boost.org/doc/html/boost/thread.html|join:)(); if( error ) boost::(:link - 1 - - 0 - - -13 - - - 2 - :)(error); }@] Note that (:link - 1 - - 0 - - -9 - - - 2 - :) could fail to copy the original exception object in the following cases: * if there is not enough memory, in which case the returned (:link - 1 - - 0 - - -30 - - - 2 - :) points to an instance of std::bad_alloc, or * if (:link - 1 - - 0 - - -14 - - - 2 - :) was not used in the throw-expression passed to the original throw statement and the current implementation does not have the necessary compiler-specific support to copy the exception automatically, in which case the returned (:link - 1 - - 0 - - -30 - - - 2 - :) points to an instance of (:link - 1 - - 0 - - -10 - - - 2 - :). Regardless, the use of (:link - 1 - - 0 - - -9 - - - 2 - :) and (:link - 1 - - 0 - - -13 - - - 2 - :) in the above examples is well-formed. + object. (:include throws:) @@ -7219,9 +7228,7 @@ - 1 - 2 - !!!!Throws: Any exception emitted by v's copy constructor. + 0 @@ -7232,9 +7239,7 @@ - 1 - 2 - !!!!Throws: std::bad_alloc, or any exception emitted by the T copy constructor. + 0 @@ -7366,7 +7371,9 @@ - 0 + 1 + 2 + !!!!Throws: std::bad_alloc, or any exception emitted by T1..TN copy constructor. @@ -7423,7 +7430,7 @@ 1 2 - !!!!Throws: std::bad_alloc, or any exception emitted by T1..TN copy constructor. + !!!!Throws: std::bad_alloc, or any exception emitted by the T copy constructor. @@ -7474,7 +7481,7 @@ 0 - -42 + -45 @@ -7507,7 +7514,7 @@ 0 - -45 + -46 @@ -7518,7 +7525,7 @@ 0 - -46 + -42 @@ -7544,7 +7551,9 @@ - 0 + 1 + 2 + !!!!Throws: Any exception emitted by v's copy constructor. @@ -7569,9 +7578,7 @@ - 1 - 2 - [@namespace boost { (:include api pre_indent="4":) }@] + 0 @@ -7584,16 +7591,16 @@ 3 2 - [@#include < + `#include <(:link 1 0 - -22 + -39 2 - > namespace boost { (:include api pre_indent="4":) }@] + :)> [@namespace boost { (:include decl pre_indent="4":) }@] @@ -7604,18 +7611,7 @@ - 3 - 2 - [@#include < - 1 - - 0 - - -22 - - - 2 - > namespace boost { (:include api pre_indent="4":) }@] + 0 @@ -7641,16 +7637,16 @@ 3 2 - `#include <(:link + `#include < 1 0 - -31 + -36 2 - :)> [@namespace boost { (:include decl pre_indent="4":) }@] + > [@namespace boost { (:include decl pre_indent="4":) }@] @@ -7668,7 +7664,7 @@ 0 - -31 + -39 2 @@ -7685,16 +7681,16 @@ 3 2 - `#include <(:link + [@#include <(:link 1 0 - -28 + -38 2 - :)> [@namespace boost { (:include decl:) }@] + :)> #include <boost/current_function.hpp> #include <boost/shared_ptr.hpp> namespace boost { (:include api pre_indent="4":) }@] @@ -7712,7 +7708,7 @@ 0 - -31 + -39 2 @@ -7727,18 +7723,7 @@ - 3 - 2 - `#include <(:link - 1 - - 0 - - -31 - - - 2 - :)> [@namespace boost { (:include decl pre_indent="4":) }@] + 0 @@ -7756,7 +7741,7 @@ 0 - -6 + -34 2 @@ -7773,16 +7758,16 @@ 3 2 - [@#include <string> namespace boost { (:include + `#include < 1 0 - -39 + -24 2 - decl pre_indent="4":) (:include api pre_indent="4":) }@] + > (:include decl:) @@ -7793,18 +7778,9 @@ - 3 + 1 2 - `#include <(:link - 1 - - 0 - - -45 - - - 2 - :)> [@namespace boost { (:include def pre_indent="4":) }@] + [@namespace boost { (:include api pre_indent="4":) }@] @@ -7828,16 +7804,16 @@ 3 2 - `#include <(:link + [@#include < 1 0 - -45 + -38 2 - :)> [@(:include decl:)@] + > namespace boost { (:include api pre_indent="4":) }@] @@ -7848,18 +7824,7 @@ - 3 - 2 - `#include <(:link - 1 - - 0 - - -45 - - - 2 - :)> [@(:include decl:)@] + 0 @@ -7877,11 +7842,11 @@ 0 - -45 + -39 2 - :)>\\ [@namespace boost { (:include decl pre_indent="4":) }@] + :)> [@namespace boost { (:include decl pre_indent="4":) }@] @@ -7892,7 +7857,18 @@ - 0 + 3 + 2 + `#include <(:link + 1 + + 0 + + -26 + + + 2 + :)>\\ [@namespace boost { (:include decl pre_indent="4":) }@] @@ -7905,7 +7881,7 @@ 1 2 - [@namespace boost { (:include api pre_indent="4":) }@] + [@#include <boost/tuple/tuple.hpp> namespace boost { (:include api pre_indent="4":) }@] @@ -7927,7 +7903,9 @@ - 0 + 1 + 2 + (:include api:) @@ -7949,7 +7927,18 @@ - 0 + 3 + 2 + [@#include <string> namespace boost { (:include + 1 + + 0 + + -43 + + + 2 + decl pre_indent="4":) (:include api pre_indent="4":) }@] @@ -7962,16 +7951,16 @@ 3 2 - `#include <(:link + `#include < 1 0 - -15 + -18 2 - :)>\\ [@namespace boost { (:include decl pre_indent="4":) }@] + > [@namespace boost { (:include decl pre_indent="4":) }@] @@ -7982,9 +7971,7 @@ - 1 - 2 - (:include api:) + 0 @@ -8002,7 +7989,7 @@ 0 - -45 + -11 2 @@ -8017,18 +8004,7 @@ - 3 - 2 - `#include <(:link - 1 - - 0 - - -31 - - - 2 - :)> [@namespace boost { (:include decl pre_indent="4":) }@] + 0 @@ -8041,16 +8017,16 @@ 3 2 - [@#include <(:link + `#include <(:link 1 0 - -22 + -24 2 - :)> namespace boost { (:include api pre_indent="4":) }@] + :)> [@namespace boost { (:include decl:) }@] @@ -8061,7 +8037,27 @@ - 0 + 5 + 2 + `#include <(:link + 1 + + 0 + + -22 + + + 2 + :)> [@namespace boost { (:include + 1 + + 0 + + -32 + + + 2 + decl pre_indent="4":) }@] @@ -8071,23 +8067,34 @@ -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 - - -34 - - - - 0 - - 0 @@ -8096,18 +8103,7 @@ - 3 - 2 - `#include < - 1 - - 0 - - -7 - - - 2 - > [@namespace boost { (:include decl pre_indent="4":) }@] + 0 @@ -8118,7 +8114,18 @@ - 0 + 3 + 2 + [@#include < + 1 + + 0 + + -38 + + + 2 + > namespace boost { (:include api pre_indent="4":) }@] @@ -8129,27 +8136,18 @@ - 5 + 3 2 `#include <(:link 1 0 - -46 + -11 2 - :)> [@namespace boost { (:include - 1 - - 0 - - -37 - - - 2 - decl pre_indent="4":) }@] + :)>\\ [@namespace boost { (:include decl pre_indent="4":) }@] @@ -8160,7 +8158,9 @@ - 0 + 1 + 2 + [@namespace boost { (:include api pre_indent="4":) }@] @@ -8173,16 +8173,16 @@ 3 2 - `#include <(:link + [@#include <(:link 1 0 - -22 + -38 2 - :)> [@namespace boost { (:include def pre_indent="4":) }@] + :)> namespace boost { (:include api pre_indent="4":) }@] @@ -8193,7 +8193,18 @@ - 0 + 3 + 2 + `#include <(:link + 1 + + 0 + + -11 + + + 2 + :)> [@(:include decl:)@] @@ -8207,6 +8218,72 @@ 0 + + + 0 + + -45 + + + + 0 + + + + + 0 + + -43 + + + + 3 + 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 @@ -8218,85 +8295,6 @@ 0 - - - 0 - - -43 - - - - 3 - 2 - `#include < - 1 - - 0 - - -33 - - - 2 - > [@namespace boost { (:include decl pre_indent="4":) }@] - - - - - 0 - - -44 - - - - 3 - 2 - `#include < - 1 - - 0 - - -28 - - - 2 - > (:include decl:) - - - - - 0 - - -45 - - - - 3 - 2 - [@#include <(:link - 1 - - 0 - - -22 - - - 2 - :)> #include <boost/current_function.hpp> #include <boost/shared_ptr.hpp> namespace boost { (:include api pre_indent="4":) }@] - - - - - 0 - - -46 - - - - 1 - 2 - [@#include <boost/tuple/tuple.hpp> namespace boost { (:include api pre_indent="4":) }@] - - 0 @@ -8316,7 +8314,18 @@ - 0 + 3 + 2 + `#include <(:link + 1 + + 0 + + -11 + + + 2 + :)> [@(:include decl:)@] @@ -8449,7 +8458,7 @@ -41 - -42 + -45 -43 @@ -8458,10 +8467,10 @@ -44 - -45 + -46 - -46 + -42 -47 @@ -8474,23 +8483,6 @@ 44 - - - - - 0 - - - - - - 1 - - - - -40 - - @@ -8525,23 +8517,6 @@ -42 - - - - - 0 - - - - - - 1 - - - - -21 - - @@ -8573,7 +8548,41 @@ - -6 + -30 + + + + + + + 0 + + + + + + 1 + + + + -36 + + + + + + + 0 + + + + + + 1 + + + + -18 @@ -8601,7 +8610,7 @@ - -19 + -48 @@ -8629,7 +8638,7 @@ - -20 + -37 @@ -8640,7 +8649,7 @@ FBC69CDA5E19FA40270F3855A8B99B2F77572439353F9DC5D15386F3520BC616 1405483403 8882 - 323 + 451 @@ -8653,7 +8662,7 @@ - -31 + -39 @@ -8677,7 +8686,7 @@ - -48 + -45 @@ -8701,7 +8710,7 @@ - -33 + -34 @@ -8725,7 +8734,7 @@ - -38 + -28 @@ -8753,7 +8762,7 @@ - -43 + -14 @@ -8777,35 +8786,7 @@ - -44 - - - - - - - 2 - 439278045C9E304238B86C5BD4DA9CA64630D4CC73D442089068A186A28CA55A - 3686240039 - 1522 - 433 - 6FE1F0AF570A010E8FDA1647DE61E0CC3AA979C8A8638722DAACDF8FBC4790D2 - 1246830037 - 1023 - 493 - - - - - - 0 - ../../../../boost/exception/diagnostic_information.hpp - 0 - 0 - - - - -27 + -15 @@ -8829,7 +8810,7 @@ - -34 + -13 @@ -8837,10 +8818,10 @@ 1 - 67D64FAD0AB7CA6B2173A14F363D19B27F59EEBDB5C1076F8BCCA1B54D4CCD7D - 2241687287 - 303 - 323 + F647827E95C64B626A8E3751AD4E4D21237DD17482EEA6DB93A16A2C6AC79E87 + 527078204 + 446 + 227 @@ -8856,30 +8837,6 @@ -8 - - - - - 1 - 265AFB67CCEF87EC9B58DB910ED23C0B1A5546C44767E2FFD6829ABADAF4828B - 1235989793 - 1632 - 323 - - - - - - 0 - ../../../../boost/exception/diagnostic_information.hpp - 0 - 0 - - - - -15 - - @@ -8905,7 +8862,7 @@ - -11 + -31 @@ -8937,7 +8894,7 @@ - -26 + -17 @@ -8961,7 +8918,7 @@ - -17 + -23 @@ -8989,7 +8946,7 @@ - -16 + -44 @@ -9021,7 +8978,7 @@ - -18 + -29 @@ -9053,7 +9010,7 @@ - -29 + -40 @@ -9077,7 +9034,7 @@ - -22 + -38 @@ -9105,7 +9062,7 @@ - -23 + -46 @@ -9133,7 +9090,7 @@ - -14 + -27 @@ -9161,7 +9118,7 @@ - -35 + -9 @@ -9189,7 +9146,7 @@ - -39 + -43 @@ -9221,7 +9178,7 @@ - -47 + -5 @@ -9245,7 +9202,35 @@ - -46 + -22 + + + + + + + 2 + 3D64A3F5639045A59A0CD362AD4C531ECC763B7C523E284DCBFBACAAF5F681C3 + 4142572795 + 1596 + 462 + 6FE1F0AF570A010E8FDA1647DE61E0CC3AA979C8A8638722DAACDF8FBC4790D2 + 1246830037 + 1023 + 567 + + + + + + 0 + ../../../../boost/exception/diagnostic_information.hpp + 0 + 0 + + + + -21 @@ -9269,7 +9254,7 @@ - -28 + -24 @@ -9293,7 +9278,31 @@ - -24 + -25 + + + + + + + 1 + 77680088697752BD6CCF429C0B264C866F5BF1D911D3BF3F1F18B06490D9F0CB + 2016079400 + 1841 + 227 + + + + + + 0 + ../../../../boost/exception/diagnostic_information.hpp + 0 + 0 + + + + -26 @@ -9317,7 +9326,7 @@ - -32 + -47 @@ -9328,7 +9337,7 @@ 808CABE6CCA47C52CC9DD21911BF0B42284A5DD55AC3E665B29ED2B5F16AF7DA 3660693492 8718 - 487 + 615 E23085202D084CBB50F289988A6A592F06D923B77D0AB25D7A98A7188DF5BE3B 1414247481 766 @@ -9345,7 +9354,7 @@ - -9 + -12 @@ -9356,7 +9365,7 @@ 808CABE6CCA47C52CC9DD21911BF0B42284A5DD55AC3E665B29ED2B5F16AF7DA 3660693492 8718 - 487 + 615 F86EB07D04CD0D0645080D1121DA899746D0C45137E17E1D9BE605E75396F047 1983537541 1346 @@ -9373,7 +9382,7 @@ - -30 + -20 @@ -9384,7 +9393,7 @@ 808CABE6CCA47C52CC9DD21911BF0B42284A5DD55AC3E665B29ED2B5F16AF7DA 3660693492 8718 - 487 + 615 DA033132CFA8F85C147C01F51FF7CF7399CF7D32D412F730EA3219CDAC608C72 3830952485 712 @@ -9401,7 +9410,7 @@ - -10 + -33 @@ -9412,7 +9421,7 @@ 808CABE6CCA47C52CC9DD21911BF0B42284A5DD55AC3E665B29ED2B5F16AF7DA 3660693492 8718 - 487 + 615 0E9DF8366080712A816BE91ABCEF1E2044145B63D75B0B995B537900F378189E 1069696031 255 @@ -9429,7 +9438,7 @@ - -13 + -6 @@ -9440,7 +9449,7 @@ 808CABE6CCA47C52CC9DD21911BF0B42284A5DD55AC3E665B29ED2B5F16AF7DA 3660693492 8718 - 487 + 615 0066D4E6E6B189906E6DE04F08509F3737511701A1B1355B37511EC18E8371F4 2078296250 305 @@ -9457,7 +9466,7 @@ - -12 + -10 @@ -9485,7 +9494,7 @@ - -5 + -16 @@ -9513,7 +9522,7 @@ - -37 + -32 @@ -9537,7 +9546,7 @@ - -36 + -19 @@ -9561,7 +9570,7 @@ - -25 + -35 @@ -9585,7 +9594,7 @@ - -45 + -11 @@ -9616,7 +9625,7 @@ -5 - + function @@ -9625,7 +9634,7 @@ -6 - exception_ptr + exception_ptr free function @@ -9634,7 +9643,7 @@ -7 - error_info + tutorial @@ -9652,7 +9661,7 @@ -9 - exception_ptr free function + error_info free function @@ -9661,7 +9670,7 @@ -10 - exception_ptr type + exception_ptr free function @@ -9670,7 +9679,7 @@ -11 - free function + @@ -9688,7 +9697,7 @@ -13 - exception_ptr free function + diagnostic_information tutorial @@ -9697,7 +9706,7 @@ -14 - exception_ptr free function + error_info free function @@ -9715,7 +9724,7 @@ -16 - type + @@ -9724,7 +9733,7 @@ -18 - type + exception_ptr @@ -9733,7 +9742,7 @@ -19 - function member + noalso noindex tutorial @@ -9742,7 +9751,7 @@ -20 - error_info free function + type @@ -9751,7 +9760,7 @@ -21 - index noindex + diagnostic_information free function @@ -9762,15 +9771,6 @@ - - - 0 - - -23 - - - function - 0 @@ -9778,7 +9778,7 @@ -24 - noalso noindex tutorial + @@ -9789,6 +9789,15 @@ noalso noindex tutorial + + + 0 + + -26 + + + + 0 @@ -9796,7 +9805,7 @@ -27 - diagnostic_information free function + exception_ptr free function @@ -9805,7 +9814,7 @@ -28 - + tutorial @@ -9814,7 +9823,7 @@ -29 - function member + type @@ -9823,7 +9832,7 @@ -30 - type + index noindex @@ -9832,7 +9841,7 @@ -31 - + free function @@ -9841,7 +9850,7 @@ -32 - noalso noindex tutorial + error_info free function @@ -9850,7 +9859,7 @@ -33 - error_info + exception_ptr type @@ -9859,7 +9868,7 @@ -34 - diagnostic_information tutorial + error_info @@ -9868,7 +9877,7 @@ -35 - error_info free function + noalso noindex tutorial @@ -9877,7 +9886,7 @@ -36 - noalso noindex tutorial + error_info @@ -9895,7 +9904,7 @@ -38 - tutorial + @@ -9904,7 +9913,7 @@ -39 - type + @@ -9913,7 +9922,7 @@ -40 - noindex + function member @@ -9922,7 +9931,43 @@ -41 - tutorial + noindex + + + + 0 + + -45 + + + noalso noindex tutorial + + + + 0 + + -43 + + + type + + + + 0 + + -44 + + + type + + + + 0 + + -46 + + + function @@ -9933,42 +9978,6 @@ tutorial - - - 0 - - -43 - - - error_info free function - - - - 0 - - -44 - - - - - - - 0 - - -45 - - - - - - - 0 - - -46 - - - - 0 @@ -9976,7 +9985,7 @@ -47 - function + noalso noindex tutorial @@ -9985,7 +9994,7 @@ -48 - noalso noindex tutorial + function member