From aef7275c0f74490c69e3733958c6dd503ee1bd46 Mon Sep 17 00:00:00 2001 From: Emil Dotchevski Date: Sat, 10 Jan 2009 21:40:22 +0000 Subject: [PATCH] documentation update [SVN r50539] --- doc/boost-exception.html | 11 +- doc/diagnostic_information.html | 11 +- doc/source/boost-exception.reno | 6945 +++++++++++----------- doc/tutorial_diagnostic_information.html | 11 +- 4 files changed, 3585 insertions(+), 3393 deletions(-) diff --git a/doc/boost-exception.html b/doc/boost-exception.html index 69051e4..2d90b9e 100644 --- a/doc/boost-exception.html +++ b/doc/boost-exception.html @@ -417,7 +417,16 @@ boost
  • 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.
  • -

    Throwing Exceptions

    +

    Example:

    +

    this is a possible output from the diagnostic_information 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
    +

    Throwing Exceptions

    throw_exception

    #include <boost/throw_exception.hpp>

    diff --git a/doc/diagnostic_information.html b/doc/diagnostic_information.html index beec476..cc9334d 100644 --- a/doc/diagnostic_information.html +++ b/doc/diagnostic_information.html @@ -41,7 +41,16 @@ boost
  • 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.
  • -

    +

    Example:

    +

    this is a possible output from the diagnostic_information 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
    +

    See Also:

    BOOST_THROW_EXCEPTION
    Boost Exception
    diff --git a/doc/source/boost-exception.reno b/doc/source/boost-exception.reno index f995d43..aa1e5cc 100644 --- a/doc/source/boost-exception.reno +++ b/doc/source/boost-exception.reno @@ -39,7 +39,7 @@ - 43 + 44 0 @@ -54,31 +54,31 @@ 2 - 612485E090D76B2CC43C1A296F813075BA165C2496082E78E939F10B3DA8E09A - 1770110914 - 587 - 1497 - 60F3F48B87487FA6E0D2CCC0750AF435CC92CEC80BBBF609AC71295031AADD0D - 3929437933 - 361 - 213 + 9A4ECF9A49A73AED83C1565CB8C67AE1519E8AFE6818F968B4C4733CB9E86CEF + 1615599655 + 68 + 227 + 34F0583BC8DE767CE2D79721E1F956895E43E5397473B1050F59BE7E26C773DB + 805836816 + 66 + 1 0 - ../../../../boost/throw_exception.hpp + ../../../../boost/exception/error_info.hpp 0 0 - <string>throw_exception</string> + <string>boost/exception/error_info.hpp</string> - + exception_error_info_value_hpp @@ -97,6 +97,127 @@ reno_context + + + + + + 0 + + + + + + 1 + + + + + <string>boost/exception/enable_current_exception.hpp</string> + + + exception_enable_current_exception_hpp + + + + + + 1 + 2 + (:include include:) (:auto also:) + + + + + 0 + + 7 + + reno_context + + + + + + + 0 + + + + + + 1 + + + + + <string>boost/exception/enable_error_info.hpp</string> + + + exception_enable_error_info_hpp + + + + + + 1 + 2 + (:include include:) (:auto also:) + + + + + 0 + + 8 + + reno_context + + + + + + + 1 + 67D64FAD0AB7CA6B2173A14F363D19B27F59EEBDB5C1076F8BCCA1B54D4CCD7D + 2241687287 + 303 + 323 + + + + + + 0 + ../../../../boost/exception.hpp + 0 + 0 + + + + + <string>boost/exception.hpp</string> + + + exception_hpp + + + + + + 1 + 2 + (:include include:) (:auto also:) + + + + + 0 + + 9 + + reno_context + @@ -142,7 +263,105 @@ 0 - 7 + 10 + + reno_context + + + + + + + 2 + 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 @@ -191,7 +410,7 @@ 0 - 8 + 13 reno_context @@ -240,7 +459,7 @@ 0 - 9 + 14 reno_context @@ -289,7 +508,7 @@ 0 - 10 + 15 reno_context @@ -334,7 +553,7 @@ 0 - 11 + 16 reno_context @@ -343,21 +562,32 @@ - 0 + 2 + 126BB1D8971585CBE7D78EF3C12259D72FD5E973A84626AA9FC3234220A11CAB + 3471702891 + 969 + 344 + A7FD310E1340E103081DA2A7899DA0E213C696C84D52C17ADA09F6942EE97D47 + 2978648279 + 530 + 433 - 1 + 0 + ../../../../boost/exception/detail/error_info_impl.hpp + 0 + 0 - <string>boost/exception/enable_error_info.hpp</string> + <string>error_info</string> - exception_enable_error_info_hpp + @@ -372,7 +602,7 @@ 0 - 12 + 17 reno_context @@ -381,36 +611,41 @@ - 0 + 1 + D0024B58523F5885E87F608259810B61D3BE489CEC885FFAE91118F1E43B10A4 + 399616739 + 6563 + 591 - 1 + 0 + ../../example/example_io.cpp + 0 + 0 - <string>boost/exception/enable_current_exception.hpp</string> + <string>diagnostic_information example</string> - exception_enable_current_exception_hpp + - 1 - 2 - (:include include:) (:auto also:) + 0 0 - 13 + 18 reno_context @@ -463,101 +698,7 @@ 0 - 14 - - reno_context - - - - - - - 1 - 67D64FAD0AB7CA6B2173A14F363D19B27F59EEBDB5C1076F8BCCA1B54D4CCD7D - 2241687287 - 303 - 323 - - - - - - 0 - ../../../../boost/exception.hpp - 0 - 0 - - - - - <string>boost/exception.hpp</string> - - - exception_hpp - - - - - - 1 - 2 - (:include include:) (:auto also:) - - - - - 0 - - 15 - - reno_context - - - - - - - 2 - 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 - - 16 + 19 reno_context @@ -606,7 +747,56 @@ 0 - 17 + 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 @@ -644,7 +834,7 @@ 0 - 18 + 22 reno_context @@ -689,7 +879,7 @@ 0 - 19 + 23 reno_context @@ -738,7 +928,7 @@ 0 - 20 + 24 reno_context @@ -781,56 +971,7 @@ 0 - 21 - - reno_context - - - - - - - 2 - 9A4ECF9A49A73AED83C1565CB8C67AE1519E8AFE6818F968B4C4733CB9E86CEF - 1615599655 - 68 - 227 - 34F0583BC8DE767CE2D79721E1F956895E43E5397473B1050F59BE7E26C773DB - 805836816 - 66 - 1 - - - - - - 0 - ../../../../boost/exception/error_info.hpp - 0 - 0 - - - - - <string>boost/exception/error_info.hpp</string> - - - exception_error_info_value_hpp - - - - - - 1 - 2 - (:include include:) (:auto also:) - - - - - 0 - - 22 + 25 reno_context @@ -873,56 +1014,7 @@ 0 - 23 - - reno_context - - - - - - - 2 - 126BB1D8971585CBE7D78EF3C12259D72FD5E973A84626AA9FC3234220A11CAB - 3471702891 - 969 - 344 - A7FD310E1340E103081DA2A7899DA0E213C696C84D52C17ADA09F6942EE97D47 - 2978648279 - 530 - 433 - - - - - - 0 - ../../../../boost/exception/detail/error_info_impl.hpp - 0 - 0 - - - - - <string>error_info</string> - - - - - - - - - 1 - 2 - (:include include:) (:auto also:) - - - - - 0 - - 24 + 26 reno_context @@ -975,7 +1067,7 @@ 0 - 25 + 27 reno_context @@ -1024,7 +1116,7 @@ 0 - 26 + 28 reno_context @@ -1065,104 +1157,6 @@ (:include include:) (:auto also:) - - - 0 - - 27 - - 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 - - 28 - - reno_context - - - - - - - 2 - 808CABE6CCA47C52CC9DD21911BF0B42284A5DD55AC3E665B29ED2B5F16AF7DA - 3660693492 - 8718 - 487 - F86EB07D04CD0D0645080D1121DA899746D0C45137E17E1D9BE605E75396F047 - 1983537541 - 1346 - 148 - - - - - - 0 - ../../../../boost/exception_ptr.hpp - 0 - 0 - - - - - <string>exception_ptr</string> - - - - - - - - - 1 - 2 - (:include include:) (:auto also:) - - 0 @@ -1171,51 +1165,6 @@ reno_context - - - - - - 1 - FBC69CDA5E19FA40270F3855A8B99B2F77572439353F9DC5D15386F3520BC616 - 1405483403 - 8882 - 323 - - - - - - 0 - ../../../../boost/exception_ptr.hpp - 0 - 0 - - - - - <string>boost/exception_ptr.hpp</string> - - - exception_cloning_hpp - - - - - - 1 - 2 - (:include include:) (:auto also:) - - - - - 0 - - 30 - - reno_context - @@ -1261,6 +1210,55 @@ (:include include:) (:auto also:) + + + 0 + + 30 + + reno_context + + + + + + + 2 + 808CABE6CCA47C52CC9DD21911BF0B42284A5DD55AC3E665B29ED2B5F16AF7DA + 3660693492 + 8718 + 487 + F86EB07D04CD0D0645080D1121DA899746D0C45137E17E1D9BE605E75396F047 + 1983537541 + 1346 + 148 + + + + + + 0 + ../../../../boost/exception_ptr.hpp + 0 + 0 + + + + + <string>exception_ptr</string> + + + + + + + + + 1 + 2 + (:include include:) (:auto also:) + + 0 @@ -1269,6 +1267,94 @@ reno_context + + + + + + 1 + FBC69CDA5E19FA40270F3855A8B99B2F77572439353F9DC5D15386F3520BC616 + 1405483403 + 8882 + 323 + + + + + + 0 + ../../../../boost/exception_ptr.hpp + 0 + 0 + + + + + <string>boost/exception_ptr.hpp</string> + + + exception_cloning_hpp + + + + + + 1 + 2 + (:include include:) (:auto also:) + + + + + 0 + + 32 + + reno_context + + + + + + + 1 + F4C951B28F7DE500973AA3DFAA99F2BADA6EDAFA2B406C30BEF3B7FBE6FD57D7 + 2263754923 + 982 + 306 + + + + + + 0 + ../../example/error_info_2.cpp + 0 + 0 + + + + + <string>adding of arbitrary data to active exception objects</string> + + + adding_data_later + + + + + + 0 + + + + + 0 + + 33 + + reno_context + @@ -1310,7 +1396,7 @@ 0 - 32 + 34 reno_context @@ -1355,7 +1441,7 @@ 0 - 33 + 35 reno_context @@ -1404,7 +1490,7 @@ 0 - 34 + 36 reno_context @@ -1447,7 +1533,7 @@ 0 - 35 + 37 reno_context @@ -1496,7 +1582,7 @@ 0 - 36 + 38 reno_context @@ -1541,7 +1627,7 @@ 0 - 37 + 39 reno_context @@ -1590,7 +1676,7 @@ 0 - 38 + 40 reno_context @@ -1626,7 +1712,7 @@ 0 - 39 + 41 reno_context @@ -1660,7 +1746,7 @@ 0 - -5 + -11 2 @@ -1669,7 +1755,7 @@ 0 - 40 + 42 reno_context @@ -1703,7 +1789,7 @@ 0 - -32 + -34 2 @@ -1712,7 +1798,7 @@ 0 - -36 + -38 2 @@ -1721,7 +1807,7 @@ 0 - -39 + -41 2 @@ -1730,7 +1816,7 @@ 0 - -37 + -39 2 @@ -1739,7 +1825,7 @@ 0 - -23 + -16 2 @@ -1748,7 +1834,7 @@ 0 - -27 + -20 2 @@ -1757,7 +1843,7 @@ 0 - -35 + -37 2 @@ -1766,7 +1852,7 @@ 0 - 41 + 43 reno_context @@ -1811,7 +1897,7 @@ 0 - -33 + -35 2 @@ -1820,7 +1906,16 @@ 0 - -28 + -30 + + + 2 + :) ###(:link + 1 + + 0 + + -14 2 @@ -1838,7 +1933,7 @@ 0 - -6 + -12 2 @@ -1847,7 +1942,7 @@ 0 - -7 + -13 2 @@ -1856,16 +1951,7 @@ 0 - -8 - - - 2 - :) ###(:link - 1 - - 0 - - -15 + -10 2 @@ -1874,7 +1960,7 @@ 0 - -25 + -27 2 @@ -1883,7 +1969,7 @@ 0 - -5 + -11 2 @@ -1892,7 +1978,7 @@ 0 - 42 + 44 reno_context @@ -1933,7 +2019,7 @@ 0 - -24 + -26 2 @@ -1942,7 +2028,7 @@ 0 - -14 + -8 2 @@ -1951,7 +2037,7 @@ 0 - -10 + -15 2 @@ -1960,7 +2046,7 @@ 0 - -12 + -6 2 @@ -1969,7 +2055,7 @@ 0 - -11 + -7 2 @@ -1978,7 +2064,7 @@ 0 - -21 + -5 2 @@ -1987,7 +2073,7 @@ 0 - -18 + -22 2 @@ -1996,7 +2082,7 @@ 0 - -31 + -33 2 @@ -2005,7 +2091,7 @@ 0 - 43 + 45 reno_context @@ -2046,7 +2132,7 @@ 0 - 44 + 46 reno_context @@ -2087,7 +2173,7 @@ 0 - -29 + -31 2 @@ -2096,7 +2182,7 @@ 0 - -26 + -28 2 @@ -2105,7 +2191,7 @@ 0 - -17 + -21 2 @@ -2114,7 +2200,7 @@ 0 - -14 + -8 2 @@ -2123,7 +2209,7 @@ 0 - -18 + -22 2 @@ -2132,7 +2218,7 @@ 0 - -43 + -45 2 @@ -2141,7 +2227,7 @@ 0 - -44 + -46 2 @@ -2150,7 +2236,7 @@ 0 - -11 + -7 2 @@ -2159,7 +2245,7 @@ 0 - -10 + -15 2 @@ -2168,7 +2254,7 @@ 0 - -29 + -31 2 @@ -2177,7 +2263,7 @@ 0 - -12 + -6 2 @@ -2186,7 +2272,7 @@ 0 - -26 + -28 2 @@ -2195,7 +2281,7 @@ 0 - -26 + -28 2 @@ -2204,7 +2290,7 @@ 0 - -37 + -39 2 @@ -2213,7 +2299,7 @@ 0 - -23 + -16 2 @@ -2222,7 +2308,25 @@ 0 - -27 + -20 + + + 2 + :) (:include + 1 + + 0 + + -37 + + + 2 + :) (:include + 1 + + 0 + + -43 2 @@ -2235,30 +2339,21 @@ 2 - :) (:include - 1 - - 0 - - -41 - - - 2 - :) (:include - 1 - - 0 - - -33 - - - 2 :) !!Transporting of Exceptions between Threads (:include 1 0 - -28 + -30 + + + 2 + :) (:include + 1 + + 0 + + -14 2 @@ -2276,7 +2371,7 @@ 0 - -6 + -12 2 @@ -2285,7 +2380,7 @@ 0 - -7 + -13 2 @@ -2294,16 +2389,7 @@ 0 - -8 - - - 2 - :) (:include - 1 - - 0 - - -15 + -10 2 @@ -2312,7 +2398,7 @@ 0 - -25 + -27 2 @@ -2321,7 +2407,7 @@ 0 - -5 + -11 2 @@ -2332,7 +2418,7 @@ 0 - -40 + -41 @@ -2345,7 +2431,72 @@ 0 - 45 + -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 @@ -2398,46 +2549,7 @@ 0 - -41 - - - - 1 - 2 - (:include include:) (:auto also:) - - - - - 0 - - -42 - - - - 1 - 2 - (:include include:) (:pagelist link="backlink":) - - - - - 0 - - -39 - - - - 1 - 2 - (:include include:) (:auto also:) - - - - - 0 - - 46 + 48 reno_context @@ -2476,75 +2588,6 @@ 0 - - - 0 - - -44 - - - - 1 - 2 - (:include include:) (:auto also:) - - - - - 0 - - -43 - - - - 1 - 2 - (:include include:) (:auto also:) - - - - - 0 - - 47 - - reno_context - - - - - - - 1 - F4C951B28F7DE500973AA3DFAA99F2BADA6EDAFA2B406C30BEF3B7FBE6FD57D7 - 2263754923 - 982 - 306 - - - - - - 0 - ../../example/error_info_2.cpp - 0 - 0 - - - - - <string>adding of arbitrary data to active exception objects</string> - - - adding_data_later - - - - - - 0 - - @@ -2552,13 +2595,13 @@ def - 48 + 49 reno_layer - 43 + 44 0 @@ -2688,7 +2731,45 @@ - 0 + 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":) };@] @@ -2765,45 +2846,7 @@ - 9 - 2 - [@template <class Tag,class T> class (:link - 1 - - 0 - - -23 - - - 2 - :) { public: (:include - 1 - - 0 - - -13 - - - 2 - decl pre_indent="4":) (:include - 1 - - 0 - - -16 - - - 2 - decl pre_indent="4":) (:include - 1 - - 0 - - -30 - - - 2 - decl pre_indent="4":) };@] + 0 @@ -2957,36 +3000,7 @@ - 7 - 2 - [@class (:link - 1 - - 0 - - -37 - - - 2 - :) { protected: (:include - 1 - - 0 - - -45 - - - 2 - decl pre_indent="4":) (:include - 1 - - 0 - - -19 - - - 2 - decl pre_indent="4":) };@] + 0 @@ -3004,18 +3018,47 @@ 0 - -40 + -39 - 0 + 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 - -45 + -40 @@ -3048,18 +3091,7 @@ 0 - -39 - - - - 0 - - - - - 0 - - -46 + -43 @@ -3081,7 +3113,18 @@ 0 - -43 + -45 + + + + 0 + + + + + 0 + + -46 @@ -3099,6 +3142,17 @@ 0 + + + 0 + + -48 + + + + 0 + + @@ -3106,13 +3160,13 @@ api - 49 + 50 reno_layer - 43 + 44 0 @@ -3121,7 +3175,18 @@ - 0 + 3 + 2 + [@(:include + 1 + + 0 + + -16 + + + 2 + decl:)@] @@ -3132,7 +3197,18 @@ - 0 + 3 + 2 + [@(:include + 1 + + 0 + + -14 + + + 2 + decl:)@] @@ -3143,7 +3219,18 @@ - 0 + 3 + 2 + [@(:include + 1 + + 0 + + -35 + + + 2 + decl:)@] @@ -3154,7 +3241,72 @@ - 0 + 15 + 2 + [@#include <(:link + 1 + + 0 + + -15 + + + 2 + :)> #include <(:link + 1 + + 0 + + -5 + + + 2 + :)> #include <(:link + 1 + + 0 + + -22 + + + 2 + :)> #include <(:link + 1 + + 0 + + -33 + + + 2 + :)> #include <(:link + 1 + + 0 + + -45 + + + 2 + :)> #include <(:link + 1 + + 0 + + -46 + + + 2 + :)> #include <(:link + 1 + + 0 + + -31 + + + 2 + :)>@] @@ -3176,18 +3328,7 @@ - 3 - 2 - [@(:include - 1 - - 0 - - -25 - - - 2 - decl:)@] + 0 @@ -3198,18 +3339,7 @@ - 3 - 2 - [@(:include - 1 - - 0 - - -33 - - - 2 - decl:)@] + 0 @@ -3220,18 +3350,7 @@ - 3 - 2 - [@(:include - 1 - - 0 - - -9 - - - 2 - decl:)@] + 0 @@ -3253,72 +3372,7 @@ - 15 - 2 - [@#include <(:link - 1 - - 0 - - -10 - - - 2 - :)> #include <(:link - 1 - - 0 - - -21 - - - 2 - :)> #include <(:link - 1 - - 0 - - -18 - - - 2 - :)> #include <(:link - 1 - - 0 - - -31 - - - 2 - :)> #include <(:link - 1 - - 0 - - -43 - - - 2 - :)> #include <(:link - 1 - - 0 - - -44 - - - 2 - :)> #include <(:link - 1 - - 0 - - -29 - - - 2 - :)>@] + 0 @@ -3329,7 +3383,18 @@ - 0 + 3 + 2 + [@(:include + 1 + + 0 + + -27 + + + 2 + decl:)@] @@ -3362,54 +3427,7 @@ - 11 - 2 - [@(:include - 1 - - 0 - - -37 - - - 2 - def:) (:include - 1 - - 0 - - -23 - - - 2 - decl:) typedef (:link - 1 - - 0 - - -23 - - - 2 - :)<struct tag_throw_function,char const *> throw_function; typedef (:link - 1 - - 0 - - -23 - - - 2 - :)<struct tag_throw_file,char const *> throw_file; typedef (:link - 1 - - 0 - - -23 - - - 2 - :)<struct tag_throw_line,int> throw_line;@] + 0 @@ -3442,18 +3460,7 @@ - 3 - 2 - [@(:include - 1 - - 0 - - -23 - - - 2 - decl:)@] + 0 @@ -3464,7 +3471,54 @@ - 0 + 11 + 2 + [@(:include + 1 + + 0 + + -39 + + + 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;@] @@ -3508,27 +3562,7 @@ - 5 - 2 - [@(:include - 1 - - 0 - - -42 - - - 2 - decl:) namespace boost { (:include - 1 - - 0 - - -5 - - - 2 - decl:) }@] + 0 @@ -3550,7 +3584,27 @@ - 0 + 5 + 2 + [@(:include + 1 + + 0 + + -44 + + + 2 + decl:) namespace boost { (:include + 1 + + 0 + + -11 + + + 2 + decl:) }@] @@ -3561,54 +3615,7 @@ - 11 - 2 - [@(:include - 1 - - 0 - - -15 - - - 2 - decl:) (:include - 1 - - 0 - - -28 - - - 2 - decl:) (:include - 1 - - 0 - - -7 - - - 2 - decl:) (:include - 1 - - 0 - - -6 - - - 2 - decl:) (:include - 1 - - 0 - - -8 - - - 2 - decl:)@] + 0 @@ -3630,14 +3637,50 @@ - 3 + 11 2 [@(:include 1 0 - -41 + -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 @@ -3663,7 +3706,18 @@ - 0 + 3 + 2 + [@(:include + 1 + + 0 + + -43 + + + 2 + decl:)@] @@ -3725,7 +3779,7 @@ 0 - -40 + -39 @@ -3736,7 +3790,7 @@ 0 - -45 + -40 @@ -3769,18 +3823,7 @@ 0 - -39 - - - - 0 - - - - - 0 - - -46 + -43 @@ -3795,25 +3838,14 @@ - 3 - 2 - [@(:include - 1 - - 0 - - -35 - - - 2 - decl:)@] + 0 0 - -43 + -45 @@ -3824,7 +3856,7 @@ 0 - -23 + -16 2 @@ -3833,7 +3865,29 @@ 0 - -27 + -20 + + + 2 + decl:)@] + + + + + 0 + + -46 + + + + 3 + 2 + [@(:include + 1 + + 0 + + -37 2 @@ -3851,6 +3905,17 @@ 0 + + + 0 + + -48 + + + + 0 + + @@ -3858,13 +3923,13 @@ decl - 50 + 51 reno_layer - 43 + 44 0 @@ -3873,27 +3938,7 @@ - 5 - 2 - [@#ifdef BOOST_NO_EXCEPTIONS void (:link - 1 - - 0 - - -5 - - - 2 - :)( std::exception const & e ); // user defined #else template <class E> void (:link - 1 - - 0 - - -5 - - - 2 - :)( E const & e ); #endif@] + 0 @@ -3904,27 +3949,7 @@ - 5 - 2 - [@(:link - 1 - - 0 - - -28 - - - 2 - :) (:link - 1 - - 0 - - -6 - - - 2 - :)();@] + 0 @@ -3935,27 +3960,7 @@ - 5 - 2 - [@template <class T> (:link - 1 - - 0 - - -28 - - - 2 - :) (:link - 1 - - 0 - - -7 - - - 2 - :)( T const & e );@] + 0 @@ -3966,27 +3971,7 @@ - 5 - 2 - [@void (:link - 1 - - 0 - - -8 - - - 2 - :)( (:link - 1 - - 0 - - -28 - - - 2 - :) const & ep ); + 0 @@ -3997,9 +3982,18 @@ - 3 + 5 2 - [@template <class T> ---unspecified--- (:link + [@(:link + 1 + + 0 + + -30 + + + 2 + :) (:link 1 0 @@ -4008,7 +4002,7 @@ 2 - :)( T const & e );@] + :)();@] @@ -4018,72 +4012,6 @@ -10 - - 0 - - - - - 0 - - -11 - - - - 0 - - - - - 0 - - -12 - - - - 0 - - - - - 0 - - -13 - - - - 3 - 2 - [@typedef T (:link - 1 - - 0 - - -13 - - - 2 - mod="m":);@] - - - - - 0 - - -14 - - - - 0 - - - - - 0 - - -15 - - 5 2 @@ -4092,7 +4020,7 @@ 0 - -15 + -10 2 @@ -4101,7 +4029,7 @@ 0 - -37 + -39 2 @@ -4112,22 +4040,75 @@ 0 - -16 + -11 5 2 - [@(:link + [@#ifdef BOOST_NO_EXCEPTIONS void (:link 1 0 - -16 + -11 2 - mod="m":)( (:link + :)( std::exception const & e ); // user defined #else template <class E> void (:link + 1 + + 0 + + -11 + + + 2 + :)( E const & e ); #endif@] + + + + + 0 + + -12 + + + + 5 + 2 + [@template <class T> (:link + 1 + + 0 + + -30 + + + 2 + :) (:link + 1 + + 0 + + -12 + + + 2 + :)( T const & e );@] + + + + + 0 + + -13 + + + + 5 + 2 + [@void (:link 1 0 @@ -4136,7 +4117,71 @@ 2 - mod="m":) const & v );@] + :)( (:link + 1 + + 0 + + -30 + + + 2 + :) const & ep ); + + + + + 0 + + -14 + + + + 3 + 2 + [@template <class T> ---unspecified--- (:link + 1 + + 0 + + -14 + + + 2 + :)( T const & e );@] + + + + + 0 + + -15 + + + + 0 + + + + + 0 + + -16 + + + + 3 + 2 + [@template <class Tag,class T> class (:link + 1 + + 0 + + -16 + + + 2 + :);@] @@ -4158,7 +4203,18 @@ - 0 + 3 + 2 + [@typedef T (:link + 1 + + 0 + + -18 + + + 2 + mod="m":);@] @@ -4169,7 +4225,7 @@ - 3 + 5 2 [@(:link 1 @@ -4180,7 +4236,16 @@ 2 - mod="m":)();@] + mod="m":)( (:link + 1 + + 0 + + -18 + + + 2 + mod="m":) const & v );@] @@ -4191,7 +4256,27 @@ - 0 + 5 + 2 + [@template <class E, class Tag, class T> E const & (:link + 1 + + 0 + + -20 + + + 2 + mod="/":)( E const & x, (:link + 1 + + 0 + + -16 + + + 2 + :)<Tag,T> const & v );@] @@ -4226,7 +4311,7 @@ 3 2 - [@template <class Tag,class T> class (:link + [@(:link 1 0 @@ -4235,7 +4320,7 @@ 2 - :);@] + mod="m":)();@] @@ -4257,27 +4342,7 @@ - 5 - 2 - [@std::string (:link - 1 - - 0 - - -25 - - - 2 - :)( boost::(:link - 1 - - 0 - - -37 - - - 2 - :) const & );@] + 0 @@ -4301,7 +4366,7 @@ 5 2 - [@template <class E, class Tag, class T> E const & (:link + [@std::string (:link 1 0 @@ -4310,16 +4375,16 @@ 2 - mod="/":)( E const & x, (:link + :)( boost::(:link 1 0 - -23 + -39 2 - :)<Tag,T> const & v );@] + :) const & );@] @@ -4330,18 +4395,7 @@ - 3 - 2 - [@typedef ---unspecified--- (:link - 1 - - 0 - - -28 - - - 2 - :);@] + 0 @@ -4352,7 +4406,27 @@ - 0 + 5 + 2 + [@(:link + 1 + + 0 + + -18 + + + 2 + mod="m":) const & (:link + 1 + + 0 + + -29 + + + 2 + mod="m":)() const;@] @@ -4363,18 +4437,9 @@ - 5 + 3 2 - [@(:link - 1 - - 0 - - -13 - - - 2 - mod="m":) const & (:link + [@typedef ---unspecified--- (:link 1 0 @@ -4383,7 +4448,7 @@ 2 - mod="m":)() const;@] + :);@] @@ -4416,18 +4481,7 @@ - 3 - 2 - [@template <class T> ---unspecified--- (:link - 1 - - 0 - - -33 - - - 2 - :)( T const & x );@] + 0 @@ -4449,9 +4503,9 @@ - 7 + 3 2 - [@template <class E, class Tag1, class T1, ..., class TagN, class TN> E const & (:link + [@template <class T> ---unspecified--- (:link 1 0 @@ -4460,25 +4514,7 @@ 2 - mod="/":)( E const & x, (:link http://www.boost.org/libs/tuple/doc/tuple_users_guide.html|tuple:)< (:link - 1 - - 0 - - -23 - - - 2 - :)<Tag1,T1>, ..., (:link - 1 - - 0 - - -23 - - - 2 - :)<TagN,TN> > const & v );@] + :)( T const & x );@] @@ -4500,9 +4536,9 @@ - 3 + 7 2 - [@class (:link + [@template <class E, class Tag1, class T1, ..., class TagN, class TN> E const & (:link 1 0 @@ -4511,7 +4547,25 @@ 2 - :);@] + mod="/":)( E const & x, (:link http://www.boost.org/libs/tuple/doc/tuple_users_guide.html|tuple:)< (:link + 1 + + 0 + + -16 + + + 2 + :)<Tag1,T1>, ..., (:link + 1 + + 0 + + -16 + + + 2 + :)<TagN,TN> > const & v );@] @@ -4525,6 +4579,28 @@ 0 + + + 0 + + -39 + + + + 3 + 2 + [@class (:link + 1 + + 0 + + -39 + + + 2 + :);@] + + 0 @@ -4536,46 +4612,6 @@ 0 - - - 0 - - -45 - - - - 7 - 2 - [@(:link - 1 - - 0 - - -45 - - - 2 - mod="m":)(); (:link - 1 - - 0 - - -45 - - - 2 - mod="m":)( (:link - 1 - - 0 - - -37 - - - 2 - :) const & x );@] - - 0 @@ -4584,18 +4620,7 @@ - 3 - 2 - [@template <class ErrorInfo,class E> (:link http://www.boost.org/libs/smart_ptr/shared_ptr.htm|shared_ptr:)<typename ErrorInfo::value_type const> (:link - 1 - - 0 - - -41 - - - 2 - :)( E const & x );@] + 0 @@ -4605,6 +4630,39 @@ -42 + + 0 + + + + + 0 + + -43 + + + + 3 + 2 + [@template <class ErrorInfo,class E> (:link http://www.boost.org/libs/smart_ptr/shared_ptr.htm|shared_ptr:)<typename ErrorInfo::value_type const> (:link + 1 + + 0 + + -43 + + + 2 + :)( E const & x );@] + + + + + 0 + + -44 + + 19 2 @@ -4613,7 +4671,7 @@ 0 - -18 + -22 2 @@ -4622,7 +4680,7 @@ 0 - -42 + -44 2 @@ -4631,7 +4689,7 @@ 0 - -5 + -11 2 @@ -4640,7 +4698,7 @@ 0 - -33 + -35 2 @@ -4649,7 +4707,7 @@ 0 - -18 + -22 2 @@ -4658,7 +4716,7 @@ 0 - -18 + -22 2 @@ -4667,7 +4725,7 @@ 0 - -18 + -22 2 @@ -4676,7 +4734,7 @@ 0 - -42 + -44 2 @@ -4685,7 +4743,7 @@ 0 - -5 + -11 2 @@ -4696,7 +4754,7 @@ 0 - -39 + -45 @@ -4714,28 +4772,6 @@ 0 - - - 0 - - -44 - - - - 0 - - - - - 0 - - -43 - - - - 0 - - 0 @@ -4743,6 +4779,46 @@ -47 + + 7 + 2 + [@(:link + 1 + + 0 + + -47 + + + 2 + mod="m":)(); (:link + 1 + + 0 + + -47 + + + 2 + mod="m":)( (:link + 1 + + 0 + + -39 + + + 2 + :) const & x );@] + + + + + 0 + + -48 + + 0 @@ -4754,13 +4830,13 @@ include - 51 + 52 reno_layer - 43 + 44 0 @@ -4769,63 +4845,9 @@ - 13 + 1 2 - (:auto !!!:) (:include synopsis:) !!!!Requirements: E must derive publicly from std::exception. !!!!Effects: * If BOOST_NO_EXCEPTIONS is not defined, boost::(:link - 1 - - 0 - - -5 - - - 2 - :)(e) is equivalent to throw boost::(:link - 1 - - 0 - - -9 - - - 2 - :)(boost::(:link - 1 - - 0 - - -33 - - - 2 - :)(e)), unless BOOST_EXCEPTION_DISABLE is defined, in which case boost::(:link - 1 - - 0 - - -5 - - - 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 - - -5 - - - 2 - :) are allowed to assume that the function never returns; therefore, if the user-defined (:link - 1 - - 0 - - -5 - - - 2 - :) returns, the behavior is undefined. + (:auto !!:) !!!Synopsis (:include synopsis:) @@ -4836,135 +4858,9 @@ - 29 + 1 2 - (:auto !!!:) (:include synopsis:) !!!!Requirements: The (:link - 1 - - 0 - - -6 - - - 2 - :) function must not be called outside of a catch block. !!!!Returns: * An (:link - 1 - - 0 - - -28 - - - 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 - - -28 - - - 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 - - -6 - - - 2 - :) refer to the same exception object. * Correct implementation of (:link - 1 - - 0 - - -6 - - - 2 - :) may require compiler support, unless (:link - 1 - - 0 - - -9 - - - 2 - :) was used at the time the currently handled exception object was passed to throw. If (:link - 1 - - 0 - - -9 - - - 2 - :) was not used, and if the compiler does not provide the necessary support, then (:link - 1 - - 0 - - -6 - - - 2 - :) may return an (:link - 1 - - 0 - - -28 - - - 2 - :) that refers to an instance of (:link - 1 - - 0 - - -15 - - - 2 - :). In this case, if the original exception object derives from boost::(:link - 1 - - 0 - - -37 - - - 2 - :), then the boost::(:link - 1 - - 0 - - -37 - - - 2 - :) sub-object of the (:link - 1 - - 0 - - -15 - - - 2 - :) object is initialized by the boost::(:link - 1 - - 0 - - -37 - - - 2 - :) copy constructor. + (:auto !!!:) !!!Synopsis (:include synopsis:) @@ -4975,27 +4871,9 @@ - 5 + 1 2 - (:auto !!!:) (:include synopsis:) !!!!Effects: As if [@try { throw - 1 - - 0 - - -9 - - - 2 - (e); } catch(...) { return (:link - 1 - - 0 - - -6 - - - 2 - :)(); }@] + (:auto !!!:) !!!Synopsis (:include synopsis:) @@ -5008,7 +4886,7 @@ 1 2 - (:auto !!!:) (:include synopsis:) !!!!Precondition: ep shall not be null. !!!!Throws: The exception to which ep refers. + (:auto !!:) !!!Synopsis (:include synopsis:) @@ -5019,18 +4897,9 @@ - 21 + 29 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 - - -28 - - - 2 - :) support in Boost Exception. For example: [@class my_exception: public std::exception { }; .... throw boost::(:link + (:auto !!!:) (:include synopsis:) !!!!Requirements: The (:link 1 0 @@ -5039,7 +4908,25 @@ 2 - :)(my_exception());@] Unless (:link + :) function must not be called outside of a catch block. !!!!Returns: * An (:link + 1 + + 0 + + -30 + + + 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 @@ -5048,12 +4935,39 @@ 2 - :) is called at the time an exception object is used in a throw-expression, an attempt to copy it using (:link + :) refer to the same exception object. * Correct implementation of (:link 1 0 - -6 + -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 @@ -5062,56 +4976,56 @@ 0 - -28 + -30 2 - :) which refers to an instance of (:link + :) that refers to an instance of (:link 1 0 - -15 + -10 2 - :). See (:link + :). In this case, if the original exception object derives from boost::(:link 1 0 - -6 + -39 2 - :) for details. !!!!Note: Instead of using the throw keyword directly, it is preferable to call boost::(:link + :), then the boost::(:link 1 0 - -5 + -39 2 - :). This is guaranteed to throw an exception that derives from boost::(:link + :) sub-object of the (:link 1 0 - -37 + -10 2 - :) and supports the (:link + :) object is initialized by the boost::(:link 1 0 - -28 + -39 2 - :) functionality. + :) copy constructor. @@ -5121,89 +5035,6 @@ -10 - - 1 - 2 - (:auto !!:) !!!Synopsis (:include synopsis:) - - - - - 0 - - -11 - - - - 1 - 2 - (:auto !!!:) !!!Synopsis (:include synopsis:) - - - - - 0 - - -12 - - - - 1 - 2 - (:auto !!!:) !!!Synopsis (:include synopsis:) - - - - - 0 - - -13 - - - - 5 - 2 - (:auto !!!:) (:include synopsis:) !!!!Definition: The expression - 1 - - 0 - - -23 - - - 2 - <Tag,T>::(:link - 1 - - 0 - - -13 - - - 2 - mod="m":) evaluates to T. - - - - - 0 - - -14 - - - - 1 - 2 - (:auto !!:) !!!Synopsis (:include synopsis:) - - - - - 0 - - -15 - - 5 2 @@ -5212,7 +5043,7 @@ 0 - -28 + -30 2 @@ -5221,7 +5052,7 @@ 0 - -6 + -9 2 @@ -5232,22 +5063,348 @@ 0 - -16 + -11 - 3 + 13 2 - (:auto !!!:) (:include synopsis:) !!!!Effects: Stores a copy of v in the + (:auto !!!:) (:include synopsis:) !!!!Requirements: E must derive publicly from std::exception. !!!!Effects: * If BOOST_NO_EXCEPTIONS is not defined, boost::(:link 1 0 - -23 + -11 2 - object. (:include throws:) + :)(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 + (:auto !!!:) (:include synopsis:) !!!!Effects: As if [@try { throw + 1 + + 0 + + -14 + + + 2 + (e); } catch(...) { return (:link + 1 + + 0 + + -9 + + + 2 + :)(); }@] + + + + + 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 + + + + 1 + 2 + (:auto !!:) !!!Synopsis (:include synopsis:) + + + + + 0 + + -16 + + + + 25 + 2 + (:auto !!!:) (:include synopsis:) !!!!Requirements: T must have accessible copy constructor and must not be a reference (there is no requirement that T's copy constructor does not throw.) !!!!Description: This class template is used to associate a Tag type with a value type T. Objects of type (:link + 1 + + 0 + + -16 + + + 2 + :)<Tag,T> can be passed to (:link + 1 + + 0 + + -20 + + + 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 + 1 + + 0 + + -20 + + + 2 + mod="/":), or to retrieve it using (:link + 1 + + 0 + + -43 + + + 2 + :), you must first #include <(:link + 1 + + 0 + + -45 + + + 2 + :)>. @@ -5258,7 +5415,18 @@ - 0 + 3 + 2 + !!!!Example: this is a possible output from the (:link + 1 + + 0 + + -27 + + + 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@] @@ -5269,9 +5437,27 @@ - 1 + 5 2 - (:auto !!:) !!!Synopsis (:include synopsis:) + (:auto !!!:) (:include synopsis:) !!!!Definition: The expression + 1 + + 0 + + -16 + + + 2 + <Tag,T>::(:link + 1 + + 0 + + -18 + + + 2 + mod="m":) evaluates to T. @@ -5284,16 +5470,16 @@ 3 2 - (:auto !!!:) (:include decl:) !!!!Effects: Frees all resources associated with a boost::(:link + (:auto !!!:) (:include synopsis:) !!!!Effects: Stores a copy of v in the 1 0 - -37 + -16 2 - :) object. !!!!Throws: Nothing. + object. (:include throws:) @@ -5304,54 +5490,36 @@ - 11 + 7 2 - (:auto !!!:) Here is how cloning can be enabled in a throw-expression (15.1): [@#include <(:link + (:auto !!!:) (:include synopsis:) !!!!Requirements: E must be boost::(:link 1 0 - -43 + -39 2 - :)> #include <stdio.h> #include <errno.h> typedef boost::error_info<struct tag_errno,int> errno_info; class file_read_error: public boost::(:link + :), or a type that derives (indirectly) from boost::(:link 1 0 - -37 + -39 2 - :) { }; void file_read( FILE * f, void * buffer, size_t size ) { if( size!=fread(buffer,1,size,f) ) throw boost::(:link + :). !!!!Effects: Stores a copy of v into x. If x already contains data of type (:link 1 0 - -9 + -16 2 - :)(file_read_error()) << errno_info(errno); }@] Of course, (:link - 1 - - 0 - - -9 - - - 2 - :) may be used with any exception type; there is no requirement that it should derive from boost::(:link - 1 - - 0 - - -37 - - - 2 - :). + :)<Tag,T>, that data is overwritten. !!!!Returns: x. (:include throws:) @@ -5361,79 +5529,23 @@ -21 + + 0 + + + + + 0 + + -22 + + 1 2 (:auto !!:) !!!Synopsis (:include synopsis:) - - - 0 - - -22 - - - - 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 - - -44 - - - 2 - :)> #include <boost/shared_ptr.hpp> #include <stdio.h> #include <string> #include <errno.h> typedef boost::(:link - 1 - - 0 - - -23 - - - 2 - :)<struct tag_file_name,std::string> file_name_info; typedef boost::(:link - 1 - - 0 - - -23 - - - 2 - :)<struct tag_function,char const *> function_info; typedef boost::(:link - 1 - - 0 - - -23 - - - 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 - - -37 - - - 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 - - -41 - - - 2 - :). - - 0 @@ -5442,117 +5554,18 @@ - 25 + 3 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 decl:) !!!!Effects: Frees all resources associated with a boost::(:link 1 0 - -23 + -39 2 - :)<Tag,T> can be passed to (:link - 1 - - 0 - - -27 - - - 2 - mod="/":) to be stored in objects of type boost::(:link - 1 - - 0 - - -37 - - - 2 - :). !!!!Note: The header <(:link - 1 - - 0 - - -21 - - - 2 - :)> provides a declaration of the (:link - 1 - - 0 - - -23 - - - 2 - :) template, which is sufficient for the purpose of typedefing an instance for specific Tag and T, like this: [@#include <(:link - 1 - - 0 - - -21 - - - 2 - :)> typedef boost::(:link - 1 - - 0 - - -23 - - - 2 - :)<struct tag_errno,int> errno_info;@] Of course, to actually add an (:link - 1 - - 0 - - -23 - - - 2 - :) object to (:link - 1 - - 0 - - -37 - - - 2 - mod="p":) using (:link - 1 - - 0 - - -27 - - - 2 - mod="/":), or to retrieve it using (:link - 1 - - 0 - - -41 - - - 2 - :), you must first #include <(:link - 1 - - 0 - - -43 - - - 2 - :)>. + :) object. !!!!Throws: Nothing. @@ -5562,6 +5575,131 @@ -24 + + 11 + 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 + :). + + + + + 0 + + -25 + + + + 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 + + -46 + + + 2 + :)> #include <boost/shared_ptr.hpp> #include <stdio.h> #include <string> #include <errno.h> typedef boost::(:link + 1 + + 0 + + -16 + + + 2 + :)<struct tag_file_name,std::string> file_name_info; typedef boost::(:link + 1 + + 0 + + -16 + + + 2 + :)<struct tag_function,char const *> function_info; typedef boost::(:link + 1 + + 0 + + -16 + + + 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 + 1 + + 0 + + -43 + + + 2 + :). + + + + + 0 + + -26 + + 15 2 @@ -5570,7 +5708,7 @@ 0 - -41 + -43 2 @@ -5579,7 +5717,7 @@ 0 - -41 + -43 2 @@ -5588,7 +5726,7 @@ 0 - -37 + -39 2 @@ -5597,7 +5735,7 @@ 0 - -9 + -14 2 @@ -5606,7 +5744,7 @@ 0 - -33 + -35 2 @@ -5615,12 +5753,1005 @@ 0 - -5 + -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 + :). + + + + + 0 + + -27 + + + + 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 + + -16 + + + 2 + :) objects stored in a boost::(:link + 1 + + 0 + + -39 + + + 2 + :) through (:link + 1 + + 0 + + -20 + + + 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 + 1 + + 0 + + -27 + + + 2 + :) is called; if all 3 overload resolutions are unsuccessful, the system is unable to convert the (:link + 1 + + 0 + + -16 + + + 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 + + -17 + + + 2 + :) + + + + + 0 + + -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 + (:auto !!:) Some exception hierarchies can not be modified to make boost::(:link + 1 + + 0 + + -39 + + + 2 + :) a base type. In this case, the (:link + 1 + + 0 + + -35 + + + 2 + :) function template can be used to make exception objects derive from boost::(:link + 1 + + 0 + + -39 + + + 2 + :) anyway. Here is an example: [@#include <(:link + 1 + + 0 + + -8 + + + 2 + :)> #include <stdexcept> typedef boost::(:link + 1 + + 0 + + -16 + + + 2 + :)<struct tag_std_range_min,size_t> std_range_min; typedef boost::(:link + 1 + + 0 + + -16 + + + 2 + :)<struct tag_std_range_max,size_t> std_range_max; typedef boost::(:link + 1 + + 0 + + -16 + + + 2 + :)<struct tag_std_range_index,size_t> std_range_index; template <class T> class my_container { public: size_t size() const; T const & operator[]( size_t i ) const { if( i > size() ) throw boost::(:link + 1 + + 0 + + -35 + + + 2 + :)(std::range_error("Index out of range")) << std_range_min(0) << std_range_max(size()) << std_range_index(i); //.... } }; @] The call to (:link + 1 + + 0 + + -35 + + + 2 + :)<T> gets us an object of ''unspecified type'' which is guaranteed to derive from both boost::(:link + 1 + + 0 + + -39 + + + 2 + :) and T. This makes it possible to use (:link + 1 + + 0 + + -20 + + + 2 + mod="/":) to store additional information in the exception object. The exception can be intercepted as T &, so existing exception handling will not break. It can also be intercepted as boost::(:link + 1 + + 0 + + -39 + + + 2 + :) &, so that (:link + 1 + + 0 + + -42 + + + 2 + |more information can be added to the exception at a later time:). + + + + + 0 + + -39 + + + + 13 + 2 + (:auto !!!:) (:include synopsis:) Class boost::(:link + 1 + + 0 + + -39 + + + 2 + :) is designed to be used as a universal base for user-defined exception types. An object of any type deriving from boost::(:link + 1 + + 0 + + -39 + + + 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. + + + + + 0 + + -40 + + + + 0 + + + + + 0 + + -41 + + + + 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 + + -14 + + + 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 + + + + 11 + 2 + (:auto !!:) All exception types that derive from boost::(:link + 1 + + 0 + + -39 + + + 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 + + -39 + + + 2 + :) at the time of the throw, or at a later time. (:include + 1 + + 0 + + -36 + + + 2 + :) (:include + 1 + + 0 + + -32 + + + 2 + :) (:include + 1 + + 0 + + -25 + + + 2 + :) + + + + + 0 + + -43 + + + + 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 + 1 + + 0 + + -43 + + + 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 + 1 + + 0 + + -43 + + + 2 + :) may be affected by the build (:link + 1 0 @@ -5635,910 +6766,7 @@ 0 - -25 - - - - 21 - 2 - (:auto !!!:) (:include synopsis:) !!!!Returns: This function returns a string value that is automatically composed from the string representations of all - 1 - - 0 - - -23 - - - 2 - objects stored in a boost::(:link - 1 - - 0 - - -37 - - - 2 - :) through (:link - 1 - - 0 - - -27 - - - 2 - mod="/":), along with other diagnostic information relevant to the exception. The string representation of each - 1 - - 0 - - -23 - - - 2 - object is deduced by a function call that is bound at the time the (:link - 1 - - 0 - - -23 - - - 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 - - -23 - - - 2 - :)<Tag,T> (the return value is expected to be of type std::string.) #Unqualified call to to_string(x.(:link - 1 - - 0 - - -30 - - - 2 - mod="m":)()) (the return value is expected to be of type std::string.) #Unqualified call to s << x.(:link - 1 - - 0 - - -30 - - - 2 - mod="m":)(), where s is a std::ostringstream. The first successfully bound function is used at the time - 1 - - 0 - - -25 - - - 2 - is called; if all 3 overload resolutions are unsuccessful, the system is unable to convert the - 1 - - 0 - - -23 - - - 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. - - - - - 0 - - -26 - - - - 1 - 2 - (:auto !!:) !!!Synopsis (:include synopsis:) - - - - - 0 - - -27 - - - - 7 - 2 - (:auto !!!:) (:include synopsis:) !!!!Requirements: E must be boost::(:link - 1 - - 0 - - -37 - - - 2 - :), or a type that derives (indirectly) from boost::(:link - 1 - - 0 - - -37 - - - 2 - :). !!!!Effects: Stores a copy of v into x. If x already contains data of type (:link - 1 - - 0 - - -23 - - - 2 - :)<Tag,T>, that data is overwritten. !!!!Returns: x. (:include throws:) - - - - - 0 - - -28 - - - - 17 - 2 - (:auto !!!:) (:include synopsis:) The (:link - 1 - - 0 - - -28 - - - 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 - - -28 - - - 2 - :)'s operations do not throw. Two instances of (:link - 1 - - 0 - - -28 - - - 2 - :) are equivalent and compare equal if and only if they refer to the same exception. The default constructor of (:link - 1 - - 0 - - -28 - - - 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 - - -28 - - - 2 - :) references to the same exception object. * It is illegal for multiple threads to modify the same (:link - 1 - - 0 - - -28 - - - 2 - :) object concurrently. * While calling (:link - 1 - - 0 - - -6 - - - 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 - - -8 - - - 2 - :) concurrently to throw the same exception object into multiple threads. - - - - - 0 - - -29 - - - - 1 - 2 - (:auto !!:) !!!Synopsis (:include synopsis:) - - - - - 0 - - -30 - - - - 5 - 2 - (:auto !!!:) (:include synopsis:) !!!!Description: Returns a const reference to the copy of the value passed to (:link - 1 - - 0 - - -23 - - - 2 - :)'s constructor stored in the (:link - 1 - - 0 - - -23 - - - 2 - :) object. !!!!Throws: Nothing. - - - - - 0 - - -31 - - - - 1 - 2 - (:auto !!:) !!!Synopsis (:include synopsis:) - - - - - 0 - - -32 - - - - 17 - 2 - (:auto !!:) Boost Exception provides a namespace-scope function (:link - 1 - - 0 - - -25 - - - 2 - :) which takes a boost::(:link - 1 - - 0 - - -37 - - - 2 - :). The returned string contains: *the string representation of all data objects added to the boost::(:link - 1 - - 0 - - -37 - - - 2 - :) through (:link - 1 - - 0 - - -27 - - - 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 - - -14 - - - 2 - :)> #include <iostream> void f(); //throws unknown types that derive from boost::(:link - 1 - - 0 - - -37 - - - 2 - :). void g() { try { f(); } catch( boost::(:link - 1 - - 0 - - -37 - - - 2 - :) & e ) { std::cerr << (:link - 1 - - 0 - - -25 - - - 2 - :)(e); } }@] - - - - - 0 - - -33 - - - - 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 - - -37 - - - 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 - - -37 - - - 2 - :). The T sub-object is initialized from x by the T copy constructor. !!!!Throws: Nothing. - - - - - 0 - - -34 - - - - 17 - 2 - (:auto !!!:) The following example demonstrates how errno can be stored in exception objects using Boost Exception: [@#include <(:link - 1 - - 0 - - -14 - - - 2 - :)> #include <errno.h> #include <iostream> typedef boost::(:link - 1 - - 0 - - -23 - - - 2 - :)<struct tag_errno,int> errno_info; //(1) class my_error: public boost::(:link - 1 - - 0 - - -37 - - - 2 - :), public std::exception { }; //(2) void f() { throw my_error() << errno_info(errno); //(3) } @] First, we instantiate the (:link - 1 - - 0 - - -23 - - - 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 - - -37 - - - 2 - :). Finally, (3) illustrates how the typedef from (1) can be used with (:link - 1 - - 0 - - -27 - - - 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 - - -41 - - - 2 - :)<errno_info>(x) ) std::cerr << "Error code: " << *err; } }@] The (:link - 1 - - 0 - - -41 - - - 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 - - -35 - - - - 5 - 2 - (:auto !!!:) (:include synopsis:) !!!!Requirements: E must be boost::(:link - 1 - - 0 - - -37 - - - 2 - :), or a type that derives (indirectly) from boost::(:link - 1 - - 0 - - -37 - - - 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 - - -36 - - - - 27 - 2 - (:auto !!:) Some exception hierarchies can not be modified to make boost::(:link - 1 - - 0 - - -37 - - - 2 - :) a base type. In this case, the (:link - 1 - - 0 - - -33 - - - 2 - :) function template can be used to make exception objects derive from boost::(:link - 1 - - 0 - - -37 - - - 2 - :) anyway. Here is an example: [@#include <(:link - 1 - - 0 - - -14 - - - 2 - :)> #include <stdexcept> typedef boost::(:link - 1 - - 0 - - -23 - - - 2 - :)<struct tag_std_range_min,size_t> std_range_min; typedef boost::(:link - 1 - - 0 - - -23 - - - 2 - :)<struct tag_std_range_max,size_t> std_range_max; typedef boost::(:link - 1 - - 0 - - -23 - - - 2 - :)<struct tag_std_range_index,size_t> std_range_index; template <class T> class my_container { public: size_t size() const; T const & operator[]( size_t i ) const { if( i > size() ) throw boost::(:link - 1 - - 0 - - -33 - - - 2 - :)(std::range_error("Index out of range")) << std_range_min(0) << std_range_max(size()) << std_range_index(i); //.... } }; @] The call to (:link - 1 - - 0 - - -33 - - - 2 - :)<T> gets us an object of ''unspecified type'' which is guaranteed to derive from both boost::(:link - 1 - - 0 - - -37 - - - 2 - :) and T. This makes it possible to use (:link - 1 - - 0 - - -27 - - - 2 - mod="/":) to store additional information in the exception object. The exception can be intercepted as T &, so existing exception handling will not break. It can also be intercepted as boost::(:link - 1 - - 0 - - -37 - - - 2 - :) &, so that (:link - 1 - - 0 - - -40 - - - 2 - |more information can be added to the exception at a later time:). - - - - - 0 - - -37 - - - - 13 - 2 - (:auto !!!:) (:include synopsis:) Class boost::(:link - 1 - - 0 - - -37 - - - 2 - :) is designed to be used as a universal base for user-defined exception types. An object of any type deriving from boost::(:link - 1 - - 0 - - -37 - - - 2 - :) can store data of arbitrary types, using the (:link - 1 - - 0 - - -23 - - - 2 - :) wrapper and (:link - 1 - - 0 - - -27 - - - 2 - mod="/":). To retrieve data from a boost::(:link - 1 - - 0 - - -37 - - - 2 - :) object, use the (:link - 1 - - 0 - - -41 - - - 2 - :) function template. - - - - - 0 - - -38 - - - - 0 - - - - - 0 - - -40 - - - - 11 - 2 - (:auto !!:) All exception types that derive from boost::(:link - 1 - - 0 - - -37 - - - 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 - - -37 - - - 2 - :) at the time of the throw, or at a later time. (:include - 1 - - 0 - - -34 - - - 2 - :) (:include - 1 - - 0 - - -47 - - - 2 - :) (:include - 1 - - 0 - - -22 - - - 2 - :) - - - - - 0 - - -45 - - - - 7 - 2 - (:auto !!!:) (:include decl:) !!!!Effects: * Default constructor: initializes an empty boost::(:link - 1 - - 0 - - -37 - - - 2 - :) object. * Copy constructor: initializes a boost::(:link - 1 - - 0 - - -37 - - - 2 - :) object which shares ownership with x of all data added through (:link - 1 - - 0 - - -27 - - - 2 - mod="/":), including data that is added at a future time. !!!!Throws: Nothing. - - - - - 0 - - -41 - - - - 13 - 2 - (:auto !!!:) (:include synopsis:) !!!!Requirements: * ErrorInfo must be an instance of the (:link - 1 - - 0 - - -23 - - - 2 - :) template. * E must be polymorphic. * The (:link - 1 - - 0 - - -41 - - - 2 - :) function must not be called outside of a catch block. !!!!Returns: * If dynamic_cast<boost::(:link - 1 - - 0 - - -37 - - - 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 - - -27 - - - 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 - - -41 - - - 2 - :) may be affected by the build (:link - 1 - - 0 - - -24 - - - 2 - :). - - - - - 0 - - -42 + -44 @@ -6549,7 +6777,7 @@ 0 - -5 + -11 2 @@ -6558,7 +6786,7 @@ 0 - -41 + -43 2 @@ -6567,7 +6795,7 @@ 0 - -25 + -27 2 @@ -6578,240 +6806,7 @@ 0 - -39 - - - - 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 - - -9 - - - 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 - - -5 - - - 2 - :) are guaranteed to derive from boost::(:link - 1 - - 0 - - -37 - - - 2 - :) and to support cloning. (:include - 1 - - 0 - - -20 - - - 2 - :) (:include - 1 - - 0 - - -46 - - - 2 - :) - - - - - 0 - - -46 - - - - 37 - 2 - (:auto !!!:) When you catch an exception, you can call (:link - 1 - - 0 - - -6 - - - 2 - :) to get an (:link - 1 - - 0 - - -28 - - - 2 - :) object: [@#include <(:link - 1 - - 0 - - -29 - - - 2 - :)> #include <boost/thread.hpp> #include <boost/bind.hpp> void do_work(); //throws cloning-enabled boost::(:link - 1 - - 0 - - -37 - - - 2 - :)s void worker_thread( boost::(:link - 1 - - 0 - - -28 - - - 2 - :) & error ) { try { do_work(); error = boost::(:link - 1 - - 0 - - -28 - - - 2 - :)(); } catch( ... ) { error = boost::(:link - 1 - - 0 - - -6 - - - 2 - :)(); } }@] In the above example, note that (:link - 1 - - 0 - - -6 - - - 2 - :) captures the original type of the exception object. The exception can be thrown again using the (:link - 1 - - 0 - - -8 - - - 2 - :) function: [@// ...continued void work() { boost::(:link - 1 - - 0 - - -28 - - - 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 - - -8 - - - 2 - :)(error); }@] Note that (:link - 1 - - 0 - - -6 - - - 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 - - -28 - - - 2 - :) points to an instance of std::bad_alloc, or * if (:link - 1 - - 0 - - -9 - - - 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 - - -28 - - - 2 - :) points to an instance of (:link - 1 - - 0 - - -15 - - - 2 - :). Regardless, the use of (:link - 1 - - 0 - - -6 - - - 2 - :) and (:link - 1 - - 0 - - -8 - - - 2 - :) in the above examples is well-formed. - - - - - 0 - - -44 + -45 @@ -6824,7 +6819,7 @@ 0 - -43 + -46 @@ -6841,18 +6836,166 @@ - 19 + 7 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:: + (:auto !!!:) (:include decl:) !!!!Effects: * Default constructor: initializes an empty boost::(:link 1 0 - -37 + -39 2 - allows us to free the file_read function from the burden of storing the file name in exceptions it throws: [@#include <(:link + :) object. * Copy constructor: initializes a boost::(:link + 1 + + 0 + + -39 + + + 2 + :) object which shares ownership with x of all data added through (:link + 1 + + 0 + + -20 + + + 2 + mod="/":), including data that is added at a future time. !!!!Throws: Nothing. + + + + + 0 + + -48 + + + + 37 + 2 + (:auto !!!:) When you catch an exception, you can call (:link + 1 + + 0 + + -9 + + + 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 @@ -6861,70 +7004,43 @@ 2 - :)> #include <stdio.h> #include <errno.h> typedef boost::(:link + :) 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 - -23 + -30 2 - :)<struct tag_errno,int> errno_info; class file_read_error: public boost::(:link + :) points to an instance of (:link 1 0 - -37 + -10 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 + :). Regardless, the use of (:link 1 0 - -14 + -9 2 - :)> #include <boost/shared_ptr.hpp> #include <stdio.h> #include <string> typedef boost::(:link + :) and (:link 1 0 - -23 + -13 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 - - -37 - - - 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 - - -37 - - - 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 - - -37 - - - 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''. + :) in the above examples is well-formed. @@ -6934,13 +7050,13 @@ throws - 52 + 53 reno_layer - 43 + 44 0 @@ -7070,9 +7186,7 @@ - 1 - 2 - !!!!Throws: Any exception emitted by v's copy constructor. + 0 @@ -7105,7 +7219,9 @@ - 0 + 1 + 2 + !!!!Throws: Any exception emitted by v's copy constructor. @@ -7116,7 +7232,9 @@ - 0 + 1 + 2 + !!!!Throws: std::bad_alloc, or any exception emitted by the T copy constructor. @@ -7193,9 +7311,7 @@ - 1 - 2 - !!!!Throws: std::bad_alloc, or any exception emitted by the T copy constructor. + 0 @@ -7283,9 +7399,7 @@ - 1 - 2 - !!!!Throws: std::bad_alloc, or any exception emitted by T1..TN copy constructor. + 0 @@ -7307,7 +7421,9 @@ - 0 + 1 + 2 + !!!!Throws: std::bad_alloc, or any exception emitted by T1..TN copy constructor. @@ -7325,7 +7441,7 @@ 0 - -40 + -39 @@ -7336,7 +7452,7 @@ 0 - -45 + -40 @@ -7369,18 +7485,7 @@ 0 - -39 - - - - 0 - - - - - 0 - - -46 + -43 @@ -7402,7 +7507,18 @@ 0 - -43 + -45 + + + + 0 + + + + + 0 + + -46 @@ -7420,6 +7536,17 @@ 0 + + + 0 + + -48 + + + + 0 + + @@ -7427,13 +7554,13 @@ synopsis - 53 + 54 reno_layer - 43 + 44 0 @@ -7442,18 +7569,9 @@ - 3 + 1 2 - `#include <(:link - 1 - - 0 - - -26 - - - 2 - :)> [@namespace boost { (:include decl:) }@] + [@namespace boost { (:include api pre_indent="4":) }@] @@ -7466,16 +7584,16 @@ 3 2 - `#include <(:link + [@#include < 1 0 - -29 + -22 2 - :)> [@namespace boost { (:include decl pre_indent="4":) }@] + > namespace boost { (:include api pre_indent="4":) }@] @@ -7488,16 +7606,16 @@ 3 2 - `#include <(:link + [@#include < 1 0 - -29 + -22 2 - :)> [@namespace boost { (:include decl pre_indent="4":) }@] + > namespace boost { (:include api pre_indent="4":) }@] @@ -7508,18 +7626,9 @@ - 3 + 1 2 - `#include <(:link - 1 - - 0 - - -29 - - - 2 - :)> [@namespace boost { (:include decl pre_indent="4":) }@] + [@(:include api:)@] @@ -7532,16 +7641,16 @@ 3 2 - `#include < + `#include <(:link 1 0 - -12 + -31 2 - > [@namespace boost { (:include decl pre_indent="4":) }@] + :)> [@namespace boost { (:include decl pre_indent="4":) }@] @@ -7554,16 +7663,16 @@ 3 2 - [@#include <string> namespace boost { (:include + `#include <(:link 1 0 - -37 + -31 2 - decl pre_indent="4":) (:include api pre_indent="4":) }@] + :)> [@namespace boost { (:include decl pre_indent="4":) }@] @@ -7576,16 +7685,16 @@ 3 2 - [@#include < + `#include <(:link 1 0 - -18 + -28 2 - > namespace boost { (:include api pre_indent="4":) }@] + :)> [@namespace boost { (:include decl:) }@] @@ -7598,16 +7707,16 @@ 3 2 - [@#include < + `#include <(:link 1 0 - -18 + -31 2 - > namespace boost { (:include api pre_indent="4":) }@] + :)> [@namespace boost { (:include decl pre_indent="4":) }@] @@ -7625,11 +7734,11 @@ 0 - -43 + -31 2 - :)> [@(:include decl:)@] + :)> [@namespace boost { (:include decl pre_indent="4":) }@] @@ -7640,9 +7749,18 @@ - 1 + 3 2 - [@(:include api:)@] + `#include < + 1 + + 0 + + -6 + + + 2 + > [@namespace boost { (:include decl pre_indent="4":) }@] @@ -7655,16 +7773,16 @@ 3 2 - `#include <(:link + [@#include <string> namespace boost { (:include 1 0 - -29 + -39 2 - :)> [@namespace boost { (:include decl pre_indent="4":) }@] + decl pre_indent="4":) (:include api pre_indent="4":) }@] @@ -7682,11 +7800,11 @@ 0 - -43 + -45 2 - :)> [@(:include decl:)@] + :)> [@namespace boost { (:include def pre_indent="4":) }@] @@ -7708,9 +7826,18 @@ - 1 + 3 2 - [@namespace boost { (:include api pre_indent="4":) }@] + `#include <(:link + 1 + + 0 + + -45 + + + 2 + :)> [@(:include decl:)@] @@ -7721,7 +7848,18 @@ - 0 + 3 + 2 + `#include <(:link + 1 + + 0 + + -45 + + + 2 + :)> [@(:include decl:)@] @@ -7732,7 +7870,18 @@ - 0 + 3 + 2 + `#include <(:link + 1 + + 0 + + -45 + + + 2 + :)>\\ [@namespace boost { (:include decl pre_indent="4":) }@] @@ -7742,23 +7891,23 @@ -21 + + 0 + + + + + 0 + + -22 + + 1 2 [@namespace boost { (:include api pre_indent="4":) }@] - - - 0 - - -22 - - - - 0 - - 0 @@ -7767,18 +7916,7 @@ - 3 - 2 - `#include <(:link - 1 - - 0 - - -43 - - - 2 - :)> [@namespace boost { (:include def pre_indent="4":) }@] + 0 @@ -7800,18 +7938,7 @@ - 3 - 2 - `#include <(:link - 1 - - 0 - - -10 - - - 2 - :)>\\ [@namespace boost { (:include decl pre_indent="4":) }@] + 0 @@ -7822,9 +7949,7 @@ - 1 - 2 - (:include api:) + 0 @@ -7842,7 +7967,7 @@ 0 - -43 + -15 2 @@ -7857,18 +7982,9 @@ - 3 + 1 2 - `#include <(:link - 1 - - 0 - - -29 - - - 2 - :)> [@namespace boost { (:include decl pre_indent="4":) }@] + (:include api:) @@ -7881,16 +7997,16 @@ 3 2 - [@#include <(:link + `#include <(:link 1 0 - -18 + -45 2 - :)> namespace boost { (:include api pre_indent="4":) }@] + :)> [@(:include decl:)@] @@ -7908,11 +8024,11 @@ 0 - -43 + -31 2 - :)> [@(:include decl:)@] + :)> [@namespace boost { (:include decl pre_indent="4":) }@] @@ -7923,9 +8039,18 @@ - 1 + 3 2 - [@#include <boost/shared_ptr.hpp> namespace boost { (:include api pre_indent="4":) }@] + [@#include <(:link + 1 + + 0 + + -22 + + + 2 + :)> namespace boost { (:include api pre_indent="4":) }@] @@ -7947,18 +8072,9 @@ - 3 + 1 2 - `#include < - 1 - - 0 - - -11 - - - 2 - > [@namespace boost { (:include decl pre_indent="4":) }@] + [@#include <boost/shared_ptr.hpp> namespace boost { (:include api pre_indent="4":) }@] @@ -7980,27 +8096,18 @@ - 5 + 3 2 - `#include <(:link + `#include < 1 0 - -44 + -7 2 - :)> [@namespace boost { (:include - 1 - - 0 - - -35 - - - 2 - decl pre_indent="4":) }@] + > [@namespace boost { (:include decl pre_indent="4":) }@] @@ -8022,18 +8129,27 @@ - 3 + 5 2 `#include <(:link 1 0 - -18 + -46 2 - :)> [@namespace boost { (:include def pre_indent="4":) }@] + :)> [@namespace boost { (:include + 1 + + 0 + + -37 + + + 2 + decl pre_indent="4":) }@] @@ -8051,18 +8167,29 @@ 0 - -40 + -39 - 0 + 3 + 2 + `#include <(:link + 1 + + 0 + + -22 + + + 2 + :)> [@namespace boost { (:include def pre_indent="4":) }@] 0 - -45 + -40 @@ -8077,18 +8204,7 @@ - 3 - 2 - `#include < - 1 - - 0 - - -31 - - - 2 - > [@namespace boost { (:include decl pre_indent="4":) }@] + 0 @@ -8098,56 +8214,10 @@ -42 - - 3 - 2 - `#include < - 1 - - 0 - - -26 - - - 2 - > (:include decl:) - - - - - 0 - - -39 - - 0 - - - 0 - - -46 - - - - 0 - - - - - 0 - - -44 - - - - 1 - 2 - [@#include <boost/tuple/tuple.hpp> namespace boost { (:include api pre_indent="4":) }@] - - 0 @@ -8155,6 +8225,50 @@ -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 @@ -8163,13 +8277,26 @@ 0 - -18 + -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 @@ -8181,6 +8308,17 @@ 0 + + + 0 + + -48 + + + + 0 + + @@ -8191,14 +8329,14 @@ - 54 + 55 reno_context_map - 43 + 44 -5 @@ -8302,10 +8440,10 @@ -38 - -40 + -39 - -45 + -40 -41 @@ -8314,59 +8452,28 @@ -42 - -39 - - - -46 + -43 -44 - -43 + -45 + + + -46 -47 + + -48 + - 43 - - - - - 0 - - - - - - 1 - - - - -38 - - - - - - - 0 - - - - - - 1 - - - - -39 - - + 44 @@ -8398,7 +8505,7 @@ - -17 + -41 @@ -8415,7 +8522,7 @@ - -11 + -42 @@ -8432,7 +8539,41 @@ - -12 + -21 + + + + + + + 0 + + + + + + 1 + + + + -7 + + + + + + + 0 + + + + + + 1 + + + + -6 @@ -8460,7 +8601,7 @@ - -16 + -19 @@ -8488,7 +8629,7 @@ - -27 + -20 @@ -8512,7 +8653,7 @@ - -29 + -31 @@ -8536,7 +8677,7 @@ - -46 + -48 @@ -8560,7 +8701,7 @@ - -31 + -33 @@ -8584,7 +8725,7 @@ - -36 + -38 @@ -8612,7 +8753,7 @@ - -41 + -43 @@ -8636,7 +8777,7 @@ - -42 + -44 @@ -8664,7 +8805,7 @@ - -25 + -27 @@ -8688,7 +8829,7 @@ - -32 + -34 @@ -8712,7 +8853,7 @@ - -14 + -8 @@ -8736,7 +8877,7 @@ - -10 + -15 @@ -8764,7 +8905,7 @@ - -5 + -11 @@ -8796,7 +8937,31 @@ - -24 + -26 + + + + + + + 1 + D0024B58523F5885E87F608259810B61D3BE489CEC885FFAE91118F1E43B10A4 + 399616739 + 6563 + 591 + + + + + + 0 + ../../example/example_io.cpp + 0 + 0 + + + + -17 @@ -8824,7 +8989,7 @@ - -23 + -16 @@ -8856,7 +9021,7 @@ - -13 + -18 @@ -8888,7 +9053,7 @@ - -30 + -29 @@ -8912,7 +9077,7 @@ - -18 + -22 @@ -8940,7 +9105,7 @@ - -19 + -23 @@ -8968,7 +9133,7 @@ - -9 + -14 @@ -8996,7 +9161,7 @@ - -33 + -35 @@ -9024,7 +9189,7 @@ - -37 + -39 @@ -9056,7 +9221,7 @@ - -45 + -47 @@ -9080,7 +9245,7 @@ - -44 + -46 @@ -9104,7 +9269,7 @@ - -26 + -28 @@ -9128,7 +9293,7 @@ - -20 + -24 @@ -9152,7 +9317,7 @@ - -47 + -32 @@ -9180,7 +9345,7 @@ - -6 + -9 @@ -9208,7 +9373,7 @@ - -28 + -30 @@ -9236,7 +9401,7 @@ - -15 + -10 @@ -9264,7 +9429,7 @@ - -8 + -13 @@ -9292,7 +9457,7 @@ - -7 + -12 @@ -9320,7 +9485,7 @@ - -21 + -5 @@ -9348,7 +9513,7 @@ - -35 + -37 @@ -9372,7 +9537,7 @@ - -34 + -36 @@ -9396,7 +9561,7 @@ - -22 + -25 @@ -9420,7 +9585,7 @@ - -43 + -45 @@ -9430,7 +9595,7 @@ - 55 + 56 tag_index @@ -9451,7 +9616,7 @@ -5 - free function + @@ -9460,7 +9625,7 @@ -6 - exception_ptr free function + exception_ptr @@ -9469,7 +9634,7 @@ -7 - exception_ptr free function + error_info @@ -9478,7 +9643,7 @@ -8 - exception_ptr free function + @@ -9496,7 +9661,7 @@ -10 - + exception_ptr type @@ -9505,7 +9670,7 @@ -11 - error_info + free function @@ -9514,7 +9679,7 @@ -12 - exception_ptr + exception_ptr free function @@ -9523,7 +9688,7 @@ -13 - type + exception_ptr free function @@ -9532,7 +9697,7 @@ -14 - + exception_ptr free function @@ -9541,7 +9706,7 @@ -15 - exception_ptr type + @@ -9550,16 +9715,7 @@ -16 - function member - - - - 0 - - -17 - - - index noindex + type @@ -9568,7 +9724,7 @@ -18 - + type @@ -9577,7 +9733,7 @@ -19 - function + function member @@ -9586,7 +9742,7 @@ -20 - noalso noindex tutorial + error_info free function @@ -9595,7 +9751,7 @@ -21 - + index noindex @@ -9604,7 +9760,7 @@ -22 - noalso noindex tutorial + @@ -9613,7 +9769,16 @@ -23 - type + function + + + + 0 + + -24 + + + noalso noindex tutorial @@ -9622,16 +9787,7 @@ -25 - diagnostic_information free function - - - - 0 - - -26 - - - + noalso noindex tutorial @@ -9640,7 +9796,7 @@ -27 - error_info free function + diagnostic_information free function @@ -9649,7 +9805,7 @@ -28 - type + @@ -9658,7 +9814,7 @@ -29 - + function member @@ -9667,7 +9823,7 @@ -30 - function member + type @@ -9676,7 +9832,7 @@ -31 - error_info + @@ -9685,7 +9841,7 @@ -32 - diagnostic_information tutorial + noalso noindex tutorial @@ -9694,7 +9850,7 @@ -33 - error_info free function + error_info @@ -9703,7 +9859,7 @@ -34 - noalso noindex tutorial + diagnostic_information tutorial @@ -9721,7 +9877,7 @@ -36 - tutorial + noalso noindex tutorial @@ -9730,7 +9886,7 @@ -37 - type + error_info free function @@ -9739,44 +9895,8 @@ -38 - noindex - - - - 0 - - -40 - - tutorial - - - 0 - - -45 - - - function - - - - 0 - - -41 - - - error_info free function - - - - 0 - - -42 - - - - 0 @@ -9784,16 +9904,43 @@ -39 + type + + + + 0 + + -40 + + + noindex + + + + 0 + + -41 + + tutorial 0 - -46 + -42 - noalso noindex tutorial + tutorial + + + + 0 + + -43 + + + error_info free function @@ -9808,7 +9955,16 @@ 0 - -43 + -45 + + + + + + + 0 + + -46 @@ -9820,6 +9976,15 @@ -47 + function + + + + 0 + + -48 + + noalso noindex tutorial diff --git a/doc/tutorial_diagnostic_information.html b/doc/tutorial_diagnostic_information.html index 8a986eb..52acf36 100644 --- a/doc/tutorial_diagnostic_information.html +++ b/doc/tutorial_diagnostic_information.html @@ -45,7 +45,16 @@ g() std::cerr << diagnostic_information(e); } } -

    +

    Example:

    +

    this is a possible output from the diagnostic_information 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
    +

    See Also: