diff --git a/doc/boost-exception.html b/doc/boost-exception.html index d2734c3..42a6f37 100644 --- a/doc/boost-exception.html +++ b/doc/boost-exception.html @@ -73,7 +73,7 @@
  • Page Index
  • 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.

    +

    Thanks to Peter Dimov for his continuing help. 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 2b6c064..be8362b 100644 --- a/doc/source/boost-exception.reno +++ b/doc/source/boost-exception.reno @@ -54,28 +54,28 @@ 2 - 9748FFBBC9F02FEB97E0BA1E6280C51FFF5D7F217F0F12EE8ED29F6BE5CCCE44 - 2533933282 - 8724 - 615 - E23085202D084CBB50F289988A6A592F06D923B77D0AB25D7A98A7188DF5BE3B - 1414247481 - 766 - 7388 + 1D3204D3ADDAB7AA716BEA1489EA852A9D6B5C110243364F6931FEF1CC2E5F88 + 422052608 + 3923 + 518 + 6E325144EF4F41FA3A225EB30729101382C4E99B3D6160E307311E4B4E641010 + 1097215175 + 161 + 240 0 - ../../../../boost/exception_ptr.hpp + ../../../../boost/exception/info.hpp 0 0 - <string>current_exception</string> + <string>error_info::error_info</string> @@ -103,28 +103,28 @@ 2 - F7537DC10435D0F7CC368E0FC747B2B1169E1CE60FCBAE8AC86F2256667C95B2 - 3301865866 - 4151 - 557 - D747B0A0953B72747224DE7856DB793A4BFF7B73793873CF22810FCB304A7310 - 505472020 - 3665 - 26 + 1D3204D3ADDAB7AA716BEA1489EA852A9D6B5C110243364F6931FEF1CC2E5F88 + 422052608 + 3923 + 518 + D31BCE814DF5B8B718E7EB67A194AD08EF716A26D422E436596ABA1F145007D8 + 4055211476 + 525 + 3392 0 - ../../../../boost/exception/diagnostic_information.hpp + ../../../../boost/exception/info.hpp 0 0 - <string>diagnostic_information</string> + <string>exception/operator<<</string> @@ -146,324 +146,6 @@ reno_context - - - - - - 1 - 04DDC793002AFCF4F4166D250C67D09B6FE8B86224318ED7847AD6EC423B70CA - 922651615 - 433 - 1027 - - - - - - 0 - ../../../../boost/throw_exception.hpp - 0 - 0 - - - - - <string>BOOST_THROW_EXCEPTION</string> - - - - - - - - - 1 - 2 - (:include include:) (:auto also:) - - - - - 0 - - 8 - - reno_context - - - - - - - 0 - - - - - - 1 - - - - - <string>transporting of arbitrary data to the catch site</string> - - - tutorial_transporting_data - - - - - - 1 - 2 - (:include include:) (:auto also:) - - - - - 0 - - 9 - - reno_context - - - - - - - 0 - - - - - - 1 - - - - - <string>Motivation</string> - - - motivation - - - - - - 7 - 2 - (:include include:) (:auto also explicit=" - 1 - - 0 - - 10 - - reno_context - - - - - - - 0 - - - - - - 1 - - - - - <string>exception types as simple semantic tags</string> - - - - - - - - 2 - - 1 - - 0 - - 11 - - reno_context - - - - - - - 1 - D9B8E6AA12A4F33953B1A961FA590C5A3840234B6531CA8C04AC985AD5800835 - 2432554768 - 702 - 408 - - - - - - 0 - ../../example/enable_error_info.cpp - 0 - 0 - - - - - <string>integrating boost exception in existing exception class hierarchies</string> - - - tutorial_enable_error_info - - - - - 2 - - 1 - - 0 - - 12 - - reno_context - - - - - - - 0 - - - - - - 1 - - - - - <string>frequently asked questions</string> - - - - - - - - 2 - ":) - - - - - 0 - - -10 - - - - 1 - 2 - (:include include:) (:auto also:) - - - - - 0 - - -11 - - - - 1 - 2 - (:include include:) (:auto also:) - - - - - 0 - - -12 - - - - 1 - 2 - (:include include:) (:auto also:) - - - - - 0 - - 13 - - reno_context - - - - - - - 2 - 9748FFBBC9F02FEB97E0BA1E6280C51FFF5D7F217F0F12EE8ED29F6BE5CCCE44 - 2533933282 - 8724 - 615 - F86EB07D04CD0D0645080D1121DA899746D0C45137E17E1D9BE605E75396F047 - 1983537541 - 1346 - 148 - - - - - - 0 - ../../../../boost/exception_ptr.hpp - 0 - 0 - - - - - <string>exception_ptr</string> - - - - - - - - - 1 - 2 - (:include include:) (:auto also:) - - - - - 0 - - 14 - - reno_context - @@ -505,6 +187,306 @@ (:include include:) (:auto also:) + + + 0 + + 8 + + reno_context + + + + + + + 2 + 9748FFBBC9F02FEB97E0BA1E6280C51FFF5D7F217F0F12EE8ED29F6BE5CCCE44 + 2533933282 + 8724 + 615 + F86EB07D04CD0D0645080D1121DA899746D0C45137E17E1D9BE605E75396F047 + 1983537541 + 1346 + 148 + + + + + + 0 + ../../../../boost/exception_ptr.hpp + 0 + 0 + + + + + <string>exception_ptr</string> + + + + + + + + + 1 + 2 + (:include include:) (:auto also:) + + + + + 0 + + 9 + + reno_context + + + + + + + 0 + + + + + + 1 + + + + + <string>frequently asked questions</string> + + + + + + + + + 1 + 2 + (:include include:) (:auto also:) + + + + + 0 + + 10 + + reno_context + + + + + + + 0 + + + + + + 1 + + + + + <string>exception types as simple semantic tags</string> + + + + + + + + + 1 + 2 + (:include include:) (:auto also:) + + + + + 0 + + 11 + + 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 + + 12 + + reno_context + + + + + + + 1 + FC684D0DD5A9732B4130F2AB3DB6E0491D0F523E14B7FB738B2019EA2C7F8717 + 2229778754 + 631 + 319 + + + + + + 0 + ../../example/cloning_2.cpp + 0 + 0 + + + + + <string>cloning and re-throwing an exception</string> + + + cloning_and_rethrowing + + + + + + 0 + + + + + 0 + + 13 + + reno_context + + + + + + + 0 + + + + + + 1 + + + + + <string>transporting of arbitrary data to the catch site</string> + + + tutorial_transporting_data + + + + + + 1 + 2 + (:include include:) (:auto also:) + + + + + 0 + + 14 + + reno_context + + + + + + + 2 + 9748FFBBC9F02FEB97E0BA1E6280C51FFF5D7F217F0F12EE8ED29F6BE5CCCE44 + 2533933282 + 8724 + 615 + 0066D4E6E6B189906E6DE04F08509F3737511701A1B1355B37511EC18E8371F4 + 2078296250 + 305 + 8156 + + + + + + 0 + ../../../../boost/exception_ptr.hpp + 0 + 0 + + + + + <string>copy_exception</string> + + + + + + + + + 1 + 2 + (:include include:) (:auto also:) + + 0 @@ -519,28 +501,28 @@ 2 - 1D3204D3ADDAB7AA716BEA1489EA852A9D6B5C110243364F6931FEF1CC2E5F88 - 422052608 - 3923 - 518 - D31BCE814DF5B8B718E7EB67A194AD08EF716A26D422E436596ABA1F145007D8 - 4055211476 - 525 - 3392 + F7633FDCF6615C0199645701EE6E7ACE5CBCD7A7CF6838573791E91ABB3C09F2 + 1668435395 + 1332 + 396 + A1F443AF571973A12005D2F7D4AE09A32AAF686FEEAE272EC21512A65EB943E8 + 3879093659 + 1300 + 26 0 - ../../../../boost/exception/info.hpp + ../../../../boost/exception/info_tuple.hpp 0 0 - <string>exception/operator<<</string> + <string>tuple/operator<<</string> @@ -615,6 +597,165 @@ 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 + + 18 + + reno_context + + + + + + + 1 + 04DDC793002AFCF4F4166D250C67D09B6FE8B86224318ED7847AD6EC423B70CA + 922651615 + 433 + 1027 + + + + + + 0 + ../../../../boost/throw_exception.hpp + 0 + 0 + + + + + <string>BOOST_THROW_EXCEPTION</string> + + + + + + + + + 1 + 2 + (:include include:) (:auto also:) + + + + + 0 + + 19 + + reno_context + + + + + + + 0 + + + + + + 1 + + + + + <string>Motivation</string> + + + motivation + + + + + + 7 + 2 + (:include include:) (:auto also explicit=" + 1 + + 0 + + -10 + + + 2 + + 1 + + 0 + + -11 + + + 2 + + 1 + + 0 + + -9 + + + 2 + ":) + + + + + 0 + + 20 + + reno_context + @@ -656,7 +797,282 @@ 0 - 18 + 21 + + reno_context + + + + + + + 2 + F7537DC10435D0F7CC368E0FC747B2B1169E1CE60FCBAE8AC86F2256667C95B2 + 3301865866 + 4151 + 557 + D747B0A0953B72747224DE7856DB793A4BFF7B73793873CF22810FCB304A7310 + 505472020 + 3665 + 26 + + + + + + 0 + ../../../../boost/exception/diagnostic_information.hpp + 0 + 0 + + + + + <string>diagnostic_information</string> + + + + + + + + + 1 + 2 + (:include include:) (:auto also:) + + + + + 0 + + 22 + + reno_context + + + + + + + 2 + 9748FFBBC9F02FEB97E0BA1E6280C51FFF5D7F217F0F12EE8ED29F6BE5CCCE44 + 2533933282 + 8724 + 615 + E23085202D084CBB50F289988A6A592F06D923B77D0AB25D7A98A7188DF5BE3B + 1414247481 + 766 + 7388 + + + + + + 0 + ../../../../boost/exception_ptr.hpp + 0 + 0 + + + + + <string>current_exception</string> + + + + + + + + + 1 + 2 + (:include include:) (:auto also:) + + + + + 0 + + 23 + + 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 + + 24 + + reno_context + + + + + + + 1 + 2F432507CFD796BE673F33D9AC68C535F1ED1F4FCD3A8E3AEEC320D9795FB4AE + 2319362875 + 2574 + 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 + + 25 + + 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 + + 26 + + reno_context + + + + + + + 0 + + + + + + 1 + + + + + <string>boost/exception/enable_current_exception.hpp</string> + + + exception_enable_current_exception_hpp + + + + + + 1 + 2 + (:include include:) (:auto also:) + + + + + 0 + + 27 reno_context @@ -705,45 +1121,7 @@ 0 - 19 - - reno_context - - - - - - - 0 - - - - - - 1 - - - - - <string>boost/exception/enable_current_exception.hpp</string> - - - exception_enable_current_exception_hpp - - - - - - 1 - 2 - (:include include:) (:auto also:) - - - - - 0 - - 20 + 28 reno_context @@ -788,384 +1166,6 @@ (:include include:) (:auto also:) - - - 0 - - 21 - - reno_context - - - - - - - 2 - 1D3204D3ADDAB7AA716BEA1489EA852A9D6B5C110243364F6931FEF1CC2E5F88 - 422052608 - 3923 - 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 - - 22 - - 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 - - 23 - - reno_context - - - - - - - 1 - FC684D0DD5A9732B4130F2AB3DB6E0491D0F523E14B7FB738B2019EA2C7F8717 - 2229778754 - 631 - 319 - - - - - - 0 - ../../example/cloning_2.cpp - 0 - 0 - - - - - <string>cloning and re-throwing an exception</string> - - - cloning_and_rethrowing - - - - - - 0 - - - - - 0 - - 24 - - reno_context - - - - - - - 2 - 9748FFBBC9F02FEB97E0BA1E6280C51FFF5D7F217F0F12EE8ED29F6BE5CCCE44 - 2533933282 - 8724 - 615 - 0066D4E6E6B189906E6DE04F08509F3737511701A1B1355B37511EC18E8371F4 - 2078296250 - 305 - 8156 - - - - - - 0 - ../../../../boost/exception_ptr.hpp - 0 - 0 - - - - - <string>copy_exception</string> - - - - - - - - - 1 - 2 - (:include include:) (:auto also:) - - - - - 0 - - 25 - - 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 - - 26 - - reno_context - - - - - - - 1 - 55F1164770FD778354E151EF65A3E830DA20F325F7ED20A95130A4B83FC801BF - 1282550303 - 9192 - 323 - - - - - - 0 - ../../../../boost/exception/exception.hpp - 0 - 0 - - - - - <string>boost/exception/exception.hpp</string> - - - exception_exception_hpp - - - - - - 1 - 2 - (:include include:) (:auto also:) - - - - - 0 - - 27 - - reno_context - - - - - - - 1 - 2F432507CFD796BE673F33D9AC68C535F1ED1F4FCD3A8E3AEEC320D9795FB4AE - 2319362875 - 2574 - 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 - - 28 - - 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 @@ -2944,7 +2944,7 @@ 0 - -28 + -25 2 @@ -2984,7 +2984,7 @@ 0 - -21 + -5 2 @@ -3451,18 +3451,7 @@ - 3 - 2 - [@(:include - 1 - - 0 - - -22 - - - 2 - decl:)@] + 0 @@ -3505,39 +3494,6 @@ -23 - - 0 - - - - - 0 - - -24 - - - - 0 - - - - - 0 - - -25 - - - - 0 - - - - - 0 - - -26 - - 11 2 @@ -3593,7 +3549,7 @@ 0 - -27 + -24 @@ -3604,13 +3560,57 @@ 0 - -20 + -28 2 decl:)@] + + + 0 + + -25 + + + + 0 + + + + + 0 + + -26 + + + + 3 + 2 + [@(:include + 1 + + 0 + + -17 + + + 2 + decl:)@] + + + + + 0 + + -27 + + + + 0 + + 0 @@ -3769,7 +3769,7 @@ 0 - -6 + -21 2 @@ -3778,7 +3778,7 @@ 0 - -18 + -27 2 @@ -3833,7 +3833,7 @@ 0 - -25 + -15 2 @@ -3873,7 +3873,7 @@ 0 - -26 + -23 2 @@ -3882,7 +3882,7 @@ 0 - -27 + -24 2 @@ -3942,7 +3942,7 @@ 0 - -14 + -7 2 @@ -4017,7 +4017,7 @@ 0 - -15 + -6 2 @@ -4048,7 +4048,7 @@ 0 - -13 + -8 2 @@ -4057,7 +4057,7 @@ 0 - -24 + -14 2 @@ -4066,7 +4066,7 @@ 0 - -5 + -22 2 @@ -4097,7 +4097,7 @@ 0 - -7 + -18 2 @@ -4216,15 +4216,6 @@ 2 [@(:link 1 - - 0 - - -13 - - - 2 - :) (:link - 1 0 @@ -4232,7 +4223,16 @@ 2 - :)();@] + mod="m":)( (:link + 1 + + 0 + + -47 + + + 2 + mod="m":) const & v );@] @@ -4243,9 +4243,9 @@ - 3 + 5 2 - [@template <class E> std::string (:link + [@template <class E, class Tag, class T> E const & (:link 1 0 @@ -4254,7 +4254,16 @@ 2 - :)( E const & e );@] + mod="/":)( E const & x, (:link + 1 + + 0 + + -35 + + + 2 + :)<Tag,T> const & v );@] @@ -4265,18 +4274,9 @@ - 19 + 3 2 - [@#if !defined( BOOST_EXCEPTION_DISABLE ) #include <(:link - 1 - - 0 - - -26 - - - 2 - :)> #include <boost/current_function.hpp> #define (:link + [@template <class T> ---unspecified--- (:link 1 0 @@ -4285,70 +4285,7 @@ 2 - :)(x)\ ::boost::(:link - 1 - - 0 - - -31 - - - 2 - :)( ::boost::(:link - 1 - - 0 - - -14 - - - 2 - :)(x) <<\ ::boost::(:link - 1 - - 0 - - -26 - - - 2 - |throw_function:)(BOOST_CURRENT_FUNCTION) <<\ ::boost::(:link - 1 - - 0 - - -26 - - - 2 - |throw_file:)(__FILE__) <<\ ::boost::(:link - 1 - - 0 - - -26 - - - 2 - |throw_line:)((int)__LINE__) ) #else #define (:link - 1 - - 0 - - -7 - - - 2 - :)(x) ::boost::(:link - 1 - - 0 - - -31 - - - 2 - :)(x) #endif@] + :)( T const & x );@] @@ -4359,7 +4296,18 @@ - 0 + 3 + 2 + [@typedef ---unspecified--- (:link + 1 + + 0 + + -8 + + + 2 + :);@] @@ -4414,18 +4362,7 @@ - 3 - 2 - [@typedef ---unspecified--- (:link - 1 - - 0 - - -13 - - - 2 - :);@] + 0 @@ -4436,9 +4373,18 @@ - 3 + 5 2 - [@template <class T> ---unspecified--- (:link + [@template <class T> (:link + 1 + + 0 + + -8 + + + 2 + :) (:link 1 0 @@ -4447,7 +4393,7 @@ 2 - :)( T const & x );@] + :)( T const & e );@] @@ -4457,209 +4403,6 @@ -15 - - 5 - 2 - [@template <class E, class Tag, class T> E const & (:link - 1 - - 0 - - -15 - - - 2 - mod="/":)( E const & x, (:link - 1 - - 0 - - -35 - - - 2 - :)<Tag,T> const & v );@] - - - - - 0 - - -16 - - - - 0 - - - - - 0 - - -17 - - - - 0 - - - - - 0 - - -18 - - - - 3 - 2 - [@std::string (:link - 1 - - 0 - - -18 - - - 2 - :)();@] - - - - - 0 - - -19 - - - - 0 - - - - - 0 - - -20 - - - - 3 - 2 - [@template <class ErrorInfo,class E> typename ErrorInfo::value_type const * (:link - 1 - - 0 - - -20 - - - 2 - :)( E const & x );@] - - - - - 0 - - -21 - - - - 5 - 2 - [@(:link - 1 - - 0 - - -21 - - - 2 - mod="m":)( (:link - 1 - - 0 - - -47 - - - 2 - mod="m":) const & v );@] - - - - - 0 - - -22 - - - - 3 - 2 - [@template <class T> ---unspecified--- (:link - 1 - - 0 - - -22 - - - 2 - :)( T const & e );@] - - - - - 0 - - -23 - - - - 0 - - - - - 0 - - -24 - - - - 5 - 2 - [@template <class T> (:link - 1 - - 0 - - -13 - - - 2 - :) (:link - 1 - - 0 - - -24 - - - 2 - :)( T const & e );@] - - - - - 0 - - -25 - - 7 2 @@ -4668,7 +4411,7 @@ 0 - -25 + -15 2 @@ -4693,6 +4436,252 @@ :)<TagN,TN> > const & v );@] + + + 0 + + -16 + + + + 0 + + + + + 0 + + -17 + + + + 3 + 2 + [@template <class T> ---unspecified--- (:link + 1 + + 0 + + -17 + + + 2 + :)( T const & e );@] + + + + + 0 + + -18 + + + + 19 + 2 + [@#if !defined( BOOST_EXCEPTION_DISABLE ) #include <(:link + 1 + + 0 + + -23 + + + 2 + :)> #include <boost/current_function.hpp> #define (:link + 1 + + 0 + + -18 + + + 2 + :)(x)\ ::boost::(:link + 1 + + 0 + + -31 + + + 2 + :)( ::boost::(:link + 1 + + 0 + + -7 + + + 2 + :)(x) <<\ ::boost::(:link + 1 + + 0 + + -23 + + + 2 + |throw_function:)(BOOST_CURRENT_FUNCTION) <<\ ::boost::(:link + 1 + + 0 + + -23 + + + 2 + |throw_file:)(__FILE__) <<\ ::boost::(:link + 1 + + 0 + + -23 + + + 2 + |throw_line:)((int)__LINE__) ) #else #define (:link + 1 + + 0 + + -18 + + + 2 + :)(x) ::boost::(:link + 1 + + 0 + + -31 + + + 2 + :)(x) #endif@] + + + + + 0 + + -19 + + + + 0 + + + + + 0 + + -20 + + + + 0 + + + + + 0 + + -21 + + + + 3 + 2 + [@template <class E> std::string (:link + 1 + + 0 + + -21 + + + 2 + :)( E const & e );@] + + + + + 0 + + -22 + + + + 5 + 2 + [@(:link + 1 + + 0 + + -8 + + + 2 + :) (:link + 1 + + 0 + + -22 + + + 2 + :)();@] + + + + + 0 + + -23 + + + + 0 + + + + + 0 + + -24 + + + + 0 + + + + + 0 + + -25 + + + + 3 + 2 + [@(:link + 1 + + 0 + + -25 + + + 2 + mod="m":)();@] + + 0 @@ -4712,7 +4701,18 @@ - 0 + 3 + 2 + [@std::string (:link + 1 + + 0 + + -27 + + + 2 + :)();@] @@ -4725,7 +4725,7 @@ 3 2 - [@(:link + [@template <class ErrorInfo,class E> typename ErrorInfo::value_type const * (:link 1 0 @@ -4734,7 +4734,7 @@ 2 - mod="m":)();@] + :)( E const & x );@] @@ -4814,7 +4814,7 @@ 0 - -13 + -8 2 @@ -5264,135 +5264,18 @@ - 29 + 3 2 - (:auto !!!:) (:include synopsis:) !!!!Requirements: The (:link + (:auto !!!:) (:include synopsis:) !!!!Effects: Stores a copy of v in the 1 0 - -5 + -35 2 - :) function must not be called outside of a catch block. !!!!Returns: * An (:link - 1 - - 0 - - -13 - - - 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 - - -13 - - - 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 - - -5 - - - 2 - :) refer to the same exception object. * Correct implementation of (:link - 1 - - 0 - - -5 - - - 2 - :) may require compiler support, unless (:link - 1 - - 0 - - -22 - - - 2 - :) was used at the time the currently handled exception object was passed to throw. If (:link - 1 - - 0 - - -22 - - - 2 - :) was not used, and if the compiler does not provide the necessary support, then (:link - 1 - - 0 - - -5 - - - 2 - :) may return an (:link - 1 - - 0 - - -13 - - - 2 - :) that refers to an instance of (:link - 1 - - 0 - - -37 - - - 2 - :). In this case, if the original exception object derives from boost::(:link - 1 - - 0 - - -34 - - - 2 - :), then the boost::(:link - 1 - - 0 - - -34 - - - 2 - :) sub-object of the (:link - 1 - - 0 - - -37 - - - 2 - :) object is initialized by the boost::(:link - 1 - - 0 - - -34 - - - 2 - :) copy constructor. + object. (:include throws:) @@ -5403,9 +5286,9 @@ - 29 + 7 2 - (:auto !!!:) (:include synopsis:) !!!!Returns: A string value that contains varying amount of implementation-specific diagnostic information about the passed exception object: *If E can be statically converted to boost::(:link + (:auto !!!:) (:include synopsis:) !!!!Requirements: E must be boost::(:link 1 0 @@ -5414,16 +5297,7 @@ 2 - :), the returned value contains the string representations of all (:link - 1 - - 0 - - -35 - - - 2 - :) objects stored in the boost::(:link + :), or a type that derives (indirectly) from boost::(:link 1 0 @@ -5432,34 +5306,7 @@ 2 - :) through (:link - 1 - - 0 - - -15 - - - 2 - mod="/":), along with other diagnostic information relevant to the exception. If e can be dynamically converted to std::exception, the returned value also contains the what() string. *Otherwise, if E can be statically converted std::exception: **if e can be dynamically converted to boost::exception, the returned value is the same as if E could be statically converted to boost::(:link - 1 - - 0 - - -34 - - - 2 - :); **otherwise the returned value contains the what() string. *Otherwise, the boost:: - 1 - - 0 - - -6 - - - 2 - template is not available. The string representation of each (:link + :). !!!!Effects: Stores a copy of v into x. If x already contains data of type (:link 1 0 @@ -5468,70 +5315,7 @@ 2 - :) object is deduced by a function call that is bound at the time the (:link - 1 - - 0 - - -35 - - - 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 - - -35 - - - 2 - :)<Tag,T> (the return value is expected to be of type std::string.) #Unqualified call to to_string(x.(:link - 1 - - 0 - - -43 - - - 2 - mod="m":)()) (the return value is expected to be of type std::string.) #Unqualified call to s << x.(:link - 1 - - 0 - - -43 - - - 2 - mod="m":)(), where s is a std::ostringstream. The first successfully bound function is used at the time (:link - 1 - - 0 - - -6 - - - 2 - :) is called; if all 3 overload resolutions are unsuccessful, the system is unable to convert the (:link - 1 - - 0 - - -35 - - - 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. *The returned string may include additional platform-specific diagnostic information. (:include - 1 - - 0 - - -58 - - - 2 - :) + :)<Tag,T>, that data is overwritten. !!!!Returns: x. (:include throws:) @@ -5542,36 +5326,27 @@ - 7 + 5 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 be a class with an accessible no-throw copy constructor as per (15.5.1). !!!!Returns: * If T derives from boost::(:link 1 0 - -31 + -34 2 - . To recover this information at the catch site, use + :), 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 - -20 + -34 2 - ; the information is also included in the message returned by - 1 - - 0 - - -6 - - - 2 - . + :). The T sub-object is initialized from x by the T copy constructor. !!!!Throws: Nothing. @@ -5582,372 +5357,9 @@ - 11 + 17 2 - (:auto !!:) All exception types that derive from boost::(:link - 1 - - 0 - - -34 - - - 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. When exceptions derive from boost::(:link - 1 - - 0 - - -34 - - - 2 - :), arbitrary data can be added to exception objects: *At the point of the throw; *At a later time as exceptions bubble up the call stack. (:include - 1 - - 0 - - -57 - - - 2 - :) (:include - 1 - - 0 - - -40 - - - 2 - :) (:include - 1 - - 0 - - -59 - - - 2 - :) - - - - - 0 - - -9 - - - - 33 - 2 - (:auto !!!:) Traditionally, when using exceptions to report failures, the throw site: *creates an exception object of the appropriate type, and *stuffs it with data relevant to the detected error. A higher context in the program contains a catch statement which: *selects failures based on exception types, and *inspects exception objects for data required to deal with the problem. The main issue with this "traditional" approach is that often, the data available at the point of the throw is insufficient for the catch site to handle the failure. Here is an example of a catch statement: [@catch( file_read_error & e ) { std::cerr << e.file_name(); }@] And here is a possible matching throw: [@void read_file( FILE * f ) { .... size_t nr=fread(buf,1,count,f); if( ferror(f) ) throw file_read_error(???); .... }@] Clearly, the problem is that the handler requires a file name but the read_file function does not have a file name to put in the exception object; all it has is a FILE pointer! In an attempt to deal with this problem, we could modify read_file to accept a file name: [@void read_file( FILE * f, char const * name ) { .... size_t nr=fread(buf,1,count,f); if( ferror(f) ) throw file_read_error(name); .... }@] This is not a real solution: it simply shifts the burden of supplying a file name to the immediate caller of the read_file function. ->''In general, the data required to handle a given library-emitted exception depends on the program that links to it. Many contexts between the throw and the catch may have relevant information which must be transported to the exception handler.'' !!!Exception wrapping The idea of exception wrapping is to catch an exception from a lower level function (such as the read_file function above), and throw a new exception object that contains the original exception (and also carries a file name.) This method seems to be particularly popular with C++ programmers with Java background. Exception wrapping leads to the following problems: *To wrap an exception object it must be copied, which may result in slicing. *Wrapping is practically impossible to use in generic contexts. The second point is actually special case of violating the exception neutrality principle. Most contexts in a program can not handle exceptions; such contexts should not interfere with the process of exception handling. !!!The boost::exception solution *Simply derive your exception types from boost::(:link - 1 - - 0 - - -34 - - - 2 - :). *Confidently limit the throw site to provide only data that is available naturally. *Use exception-neutral contexts between the throw and the catch to augment exceptions with more relevant data as they bubble up. For example, in the throw statement below we only add the errno code, since this is the only failure-relevant information available in this context: [@struct exception_base: virtual std::exception, virtual boost::(:link - 1 - - 0 - - -34 - - - 2 - :) { }; struct io_error: virtual exception_base { }; struct file_read_error: virtual io_error { }; typedef boost::(:link - 1 - - 0 - - -35 - - - 2 - :)<struct tag_errno_code,int> errno_code; void read_file( FILE * f ) { .... size_t nr=fread(buf,1,count,f); if( ferror(f) ) throw file_read_error() (:link - 1 - - 0 - - -15 - - - 2 - |<<:) errno_code(errno); .... }@] In a higher exception-neutral context, we add the file name to ''any'' exception that derives from boost::(:link - 1 - - 0 - - -34 - - - 2 - :): [@typedef boost::(:link - 1 - - 0 - - -35 - - - 2 - :)<struct tag_file_name,std::string> file_name; .... try { if( FILE * fp=fopen("foo.txt","rt") ) { shared_ptr<FILE> f(fp,fclose); .... read_file(fp); //throws types deriving from boost::(:link - 1 - - 0 - - -34 - - - 2 - :) do_something(); .... } else throw file_open_error() (:link - 1 - - 0 - - -15 - - - 2 - |<<:) errno_code(errno); } catch( boost::(:link - 1 - - 0 - - -34 - - - 2 - :) & e ) { e (:link - 1 - - 0 - - -15 - - - 2 - |<<:) file_name("foo.txt"); throw; }@] Finally here is how the handler retrieves data from exceptions that derive from boost::(:link - 1 - - 0 - - -34 - - - 2 - :): [@catch( io_error & e ) { std::cerr << "I/O Error!\n"; if( shared_ptr<std::string const> fn=(:link - 1 - - 0 - - -20 - - - 2 - :)<file_name>(e) ) std::cerr << "File name: " << *fn << "\n"; if( shared_ptr<int const> c=(:link - 1 - - 0 - - -20 - - - 2 - :)<errno_code>(e) ) std::cerr << "OS says: " << strerror(*c) << "\n"; }@] In addition, boost::(:link - 1 - - 0 - - -6 - - - 2 - :) can be used to compose an automatic (if not user-friendly) message that contains all of the (:link - 1 - - 0 - - -35 - - - 2 - :) objects added to a boost::(:link - 1 - - 0 - - -34 - - - 2 - :). This is useful for inclusion in logs and other diagnostic objects. - - - - - 0 - - -10 - - - - 7 - 2 - (:auto !!!:) Deriving from boost::(:link - 1 - - 0 - - -34 - - - 2 - :) effectively decouples the semantics of a failure from the information that is relevant to each individual instance of reporting a failure with a given semantic. In other words: with boost::(:link - 1 - - 0 - - -34 - - - 2 - :), what data a given exception object transports depends primarily on the context in which failures are reported (not on its type.) Since exception types need no members, it becomes very natural to throw exceptions that derive from more than one type to indicate multiple appropriate semantics: [@struct exception_base: virtual std::exception, virtual boost::(:link - 1 - - 0 - - -34 - - - 2 - :) { }; struct io_error: virtual exception_base { }; struct file_error: virtual io_error { }; struct read_error: virtual io_error { }; struct file_read_error: virtual file_error, virtual read_error { };@] Using this approach, exception types become a simple tagging system for categorizing errors and selecting failures in exception handlers. - - - - - 0 - - -11 - - - - 27 - 2 - (:auto !!:) Some exception hierarchies can not be modified to make boost::(:link - 1 - - 0 - - -34 - - - 2 - :) a base type. In this case, the (:link - 1 - - 0 - - -14 - - - 2 - :) function template can be used to make exception objects derive from boost::(:link - 1 - - 0 - - -34 - - - 2 - :) anyway. Here is an example: [@#include <(:link - 1 - - 0 - - -46 - - - 2 - :)> #include <stdexcept> typedef boost::(:link - 1 - - 0 - - -35 - - - 2 - :)<struct tag_std_range_min,size_t> std_range_min; typedef boost::(:link - 1 - - 0 - - -35 - - - 2 - :)<struct tag_std_range_max,size_t> std_range_max; typedef boost::(:link - 1 - - 0 - - -35 - - - 2 - :)<struct tag_std_range_index,size_t> std_range_index; template <class T> class my_container { public: size_t size() const; T const & operator[]( size_t i ) const { if( i > size() ) throw boost::(:link - 1 - - 0 - - -14 - - - 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 - - -14 - - - 2 - :)<T> gets us an object of ''unspecified type'' which is guaranteed to derive from both boost::(:link - 1 - - 0 - - -34 - - - 2 - :) and T. This makes it possible to use (:link - 1 - - 0 - - -15 - - - 2 - mod="/":) to store additional information in the exception object. The exception can be intercepted as T &, so existing exception handling will not break. It can also be intercepted as boost::(:link - 1 - - 0 - - -34 - - - 2 - :) &, so that (:link + (:auto !!!:) (:include synopsis:) The (:link 1 0 @@ -5956,14 +5368,77 @@ 2 - |more information can be added to the exception at a later time:). + :) 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 + + -8 + + + 2 + :)'s operations do not throw. Two instances of (:link + 1 + + 0 + + -8 + + + 2 + :) are equivalent and compare equal if and only if they refer to the same exception. The default constructor of (:link + 1 + + 0 + + -8 + + + 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 + + -8 + + + 2 + :) references to the same exception object. * It is illegal for multiple threads to modify the same (:link + 1 + + 0 + + -8 + + + 2 + :) object concurrently. * While calling (:link + 1 + + 0 + + -22 + + + 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 + + -32 + + + 2 + :) concurrently to throw the same exception object into multiple threads. 0 - -12 + -9 @@ -5992,7 +5467,7 @@ 0 - -15 + -6 2 @@ -6001,7 +5476,7 @@ 0 - -15 + -6 2 @@ -6010,7 +5485,7 @@ 0 - -15 + -6 2 @@ -6037,7 +5512,7 @@ 0 - -15 + -6 2 @@ -6064,7 +5539,7 @@ 0 - -15 + -6 2 @@ -6091,7 +5566,7 @@ 0 - -14 + -7 2 @@ -6163,7 +5638,7 @@ 0 - -13 + -8 2 @@ -6172,7 +5647,7 @@ 0 - -22 + -17 2 @@ -6190,7 +5665,7 @@ 0 - -7 + -18 2 @@ -6199,7 +5674,7 @@ 0 - -6 + -21 2 @@ -6208,7 +5683,7 @@ 0 - -6 + -21 2 @@ -6217,7 +5692,7 @@ 0 - -7 + -18 2 @@ -6228,13 +5703,161 @@ 0 - -13 + -10 - 17 + 7 2 - (:auto !!!:) (:include synopsis:) The (:link + (:auto !!!:) Deriving from boost::(:link + 1 + + 0 + + -34 + + + 2 + :) effectively decouples the semantics of a failure from the information that is relevant to each individual instance of reporting a failure with a given semantic. In other words: with boost::(:link + 1 + + 0 + + -34 + + + 2 + :), what data a given exception object transports depends primarily on the context in which failures are reported (not on its type.) Since exception types need no members, it becomes very natural to throw exceptions that derive from more than one type to indicate multiple appropriate semantics: [@struct exception_base: virtual std::exception, virtual boost::(:link + 1 + + 0 + + -34 + + + 2 + :) { }; struct io_error: virtual exception_base { }; struct file_error: virtual io_error { }; struct read_error: virtual io_error { }; struct file_read_error: virtual file_error, virtual read_error { };@] Using this approach, exception types become a simple tagging system for categorizing errors and selecting failures in exception handlers. + + + + + 0 + + -11 + + + + 27 + 2 + (:auto !!:) Some exception hierarchies can not be modified to make boost::(:link + 1 + + 0 + + -34 + + + 2 + :) a base type. In this case, the (:link + 1 + + 0 + + -7 + + + 2 + :) function template can be used to make exception objects derive from boost::(:link + 1 + + 0 + + -34 + + + 2 + :) anyway. Here is an example: [@#include <(:link + 1 + + 0 + + -46 + + + 2 + :)> #include <stdexcept> typedef boost::(:link + 1 + + 0 + + -35 + + + 2 + :)<struct tag_std_range_min,size_t> std_range_min; typedef boost::(:link + 1 + + 0 + + -35 + + + 2 + :)<struct tag_std_range_max,size_t> std_range_max; typedef boost::(:link + 1 + + 0 + + -35 + + + 2 + :)<struct tag_std_range_index,size_t> std_range_index; template <class T> class my_container { public: size_t size() const; T const & operator[]( size_t i ) const { if( i > size() ) throw boost::(:link + 1 + + 0 + + -7 + + + 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 + + -7 + + + 2 + :)<T> gets us an object of ''unspecified type'' which is guaranteed to derive from both boost::(:link + 1 + + 0 + + -34 + + + 2 + :) and T. This makes it possible to use (:link + 1 + + 0 + + -6 + + + 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 + + -34 + + + 2 + :) &, so that (:link 1 0 @@ -6243,61 +5866,92 @@ 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 + |more information can be added to the exception at a later time:). + + + + + 0 + + -12 + + + + 37 + 2 + (:auto !!!:) When you catch an exception, you can call (:link 1 0 - -13 + -22 2 - :)'s operations do not throw. Two instances of (:link + :) to get an (:link 1 0 - -13 + -8 2 - :) are equivalent and compare equal if and only if they refer to the same exception. The default constructor of (:link + :) object: [@#include <(:link 1 0 - -13 + -53 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 + :)> #include <boost/thread.hpp> #include <boost/bind.hpp> void do_work(); //throws cloning-enabled boost::(:link 1 0 - -13 + -34 2 - :) references to the same exception object. * It is illegal for multiple threads to modify the same (:link + :)s void worker_thread( boost::(:link 1 0 - -13 + -8 2 - :) object concurrently. * While calling (:link + :) & error ) { try { do_work(); error = boost::(:link 1 0 - -5 + -8 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 + :)(); } catch( ... ) { error = boost::(:link + 1 + + 0 + + -22 + + + 2 + :)(); } }@] In the above example, note that (:link + 1 + + 0 + + -22 + + + 2 + :) captures the original type of the exception object. The exception can be thrown again using the (:link 1 0 @@ -6306,7 +5960,146 @@ 2 - :) concurrently to throw the same exception object into multiple threads. + :) function: [@// ...continued void work() { boost::(:link + 1 + + 0 + + -8 + + + 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 + + -32 + + + 2 + :)(error); }@] Note that (:link + 1 + + 0 + + -22 + + + 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 + + -8 + + + 2 + :) points to an instance of std::bad_alloc, or * if (:link + 1 + + 0 + + -17 + + + 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 + + -8 + + + 2 + :) points to an instance of (:link + 1 + + 0 + + -37 + + + 2 + :). Regardless, the use of (:link + 1 + + 0 + + -22 + + + 2 + :) and (:link + 1 + + 0 + + -32 + + + 2 + :) in the above examples is well-formed. + + + + + 0 + + -13 + + + + 11 + 2 + (:auto !!:) All exception types that derive from boost::(:link + 1 + + 0 + + -34 + + + 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. When exceptions derive from boost::(:link + 1 + + 0 + + -34 + + + 2 + :), arbitrary data can be added to exception objects: *At the point of the throw; *At a later time as exceptions bubble up the call stack. (:include + 1 + + 0 + + -57 + + + 2 + :) (:include + 1 + + 0 + + -40 + + + 2 + :) (:include + 1 + + 0 + + -59 + + + 2 + :) @@ -6319,25 +6112,25 @@ 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 + (:auto !!!:) (:include synopsis:) !!!!Effects: As if [@try { throw 1 0 - -34 + -17 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 + (e); } catch(...) { return (:link 1 0 - -34 + -22 2 - :). The T sub-object is initialized from x by the T copy constructor. !!!!Throws: Nothing. + :)(); }@] @@ -6348,7 +6141,7 @@ - 7 + 5 2 (:auto !!!:) (:include synopsis:) !!!!Requirements: E must be boost::(:link 1 @@ -6368,16 +6161,7 @@ 2 - :). !!!!Effects: Stores a copy of v into x. If x already contains data of type (:link - 1 - - 0 - - -35 - - - 2 - :)<Tag,T>, that data is overwritten. !!!!Returns: x. (:include throws:) + :). !!!!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:) @@ -6395,7 +6179,7 @@ 0 - -20 + -28 2 @@ -6404,7 +6188,7 @@ 0 - -20 + -28 2 @@ -6422,7 +6206,7 @@ 0 - -22 + -17 2 @@ -6431,7 +6215,7 @@ 0 - -14 + -7 2 @@ -6463,6 +6247,306 @@ -17 + + 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 + + -8 + + + 2 + :) support in Boost Exception. For example: [@class my_exception: public std::exception { }; .... throw boost::(:link + 1 + + 0 + + -17 + + + 2 + :)(my_exception());@] Unless (:link + 1 + + 0 + + -17 + + + 2 + :) is called at the time an exception object is used in a throw-expression, an attempt to copy it using (:link + 1 + + 0 + + -22 + + + 2 + :) may return an (:link + 1 + + 0 + + -8 + + + 2 + :) which refers to an instance of (:link + 1 + + 0 + + -37 + + + 2 + :). See (:link + 1 + + 0 + + -22 + + + 2 + :) for details. !!!!Note: Instead of using the throw keyword directly, it is preferable to call boost::(:link + 1 + + 0 + + -31 + + + 2 + :). This is guaranteed to throw an exception that derives from boost::(:link + 1 + + 0 + + -34 + + + 2 + :) and supports the (:link + 1 + + 0 + + -8 + + + 2 + :) functionality. + + + + + 0 + + -18 + + + + 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 + + -28 + + + 2 + ; the information is also included in the message returned by + 1 + + 0 + + -21 + + + 2 + . + + + + + 0 + + -19 + + + + 33 + 2 + (:auto !!!:) Traditionally, when using exceptions to report failures, the throw site: *creates an exception object of the appropriate type, and *stuffs it with data relevant to the detected error. A higher context in the program contains a catch statement which: *selects failures based on exception types, and *inspects exception objects for data required to deal with the problem. The main issue with this "traditional" approach is that often, the data available at the point of the throw is insufficient for the catch site to handle the failure. Here is an example of a catch statement: [@catch( file_read_error & e ) { std::cerr << e.file_name(); }@] And here is a possible matching throw: [@void read_file( FILE * f ) { .... size_t nr=fread(buf,1,count,f); if( ferror(f) ) throw file_read_error(???); .... }@] Clearly, the problem is that the handler requires a file name but the read_file function does not have a file name to put in the exception object; all it has is a FILE pointer! In an attempt to deal with this problem, we could modify read_file to accept a file name: [@void read_file( FILE * f, char const * name ) { .... size_t nr=fread(buf,1,count,f); if( ferror(f) ) throw file_read_error(name); .... }@] This is not a real solution: it simply shifts the burden of supplying a file name to the immediate caller of the read_file function. ->''In general, the data required to handle a given library-emitted exception depends on the program that links to it. Many contexts between the throw and the catch may have relevant information which must be transported to the exception handler.'' !!!Exception wrapping The idea of exception wrapping is to catch an exception from a lower level function (such as the read_file function above), and throw a new exception object that contains the original exception (and also carries a file name.) This method seems to be particularly popular with C++ programmers with Java background. Exception wrapping leads to the following problems: *To wrap an exception object it must be copied, which may result in slicing. *Wrapping is practically impossible to use in generic contexts. The second point is actually special case of violating the exception neutrality principle. Most contexts in a program can not handle exceptions; such contexts should not interfere with the process of exception handling. !!!The boost::exception solution *Simply derive your exception types from boost::(:link + 1 + + 0 + + -34 + + + 2 + :). *Confidently limit the throw site to provide only data that is available naturally. *Use exception-neutral contexts between the throw and the catch to augment exceptions with more relevant data as they bubble up. For example, in the throw statement below we only add the errno code, since this is the only failure-relevant information available in this context: [@struct exception_base: virtual std::exception, virtual boost::(:link + 1 + + 0 + + -34 + + + 2 + :) { }; struct io_error: virtual exception_base { }; struct file_read_error: virtual io_error { }; typedef boost::(:link + 1 + + 0 + + -35 + + + 2 + :)<struct tag_errno_code,int> errno_code; void read_file( FILE * f ) { .... size_t nr=fread(buf,1,count,f); if( ferror(f) ) throw file_read_error() (:link + 1 + + 0 + + -6 + + + 2 + |<<:) errno_code(errno); .... }@] In a higher exception-neutral context, we add the file name to ''any'' exception that derives from boost::(:link + 1 + + 0 + + -34 + + + 2 + :): [@typedef boost::(:link + 1 + + 0 + + -35 + + + 2 + :)<struct tag_file_name,std::string> file_name; .... try { if( FILE * fp=fopen("foo.txt","rt") ) { shared_ptr<FILE> f(fp,fclose); .... read_file(fp); //throws types deriving from boost::(:link + 1 + + 0 + + -34 + + + 2 + :) do_something(); .... } else throw file_open_error() (:link + 1 + + 0 + + -6 + + + 2 + |<<:) errno_code(errno); } catch( boost::(:link + 1 + + 0 + + -34 + + + 2 + :) & e ) { e (:link + 1 + + 0 + + -6 + + + 2 + |<<:) file_name("foo.txt"); throw; }@] Finally here is how the handler retrieves data from exceptions that derive from boost::(:link + 1 + + 0 + + -34 + + + 2 + :): [@catch( io_error & e ) { std::cerr << "I/O Error!\n"; if( shared_ptr<std::string const> fn=(:link + 1 + + 0 + + -28 + + + 2 + :)<file_name>(e) ) std::cerr << "File name: " << *fn << "\n"; if( shared_ptr<int const> c=(:link + 1 + + 0 + + -28 + + + 2 + :)<errno_code>(e) ) std::cerr << "OS says: " << strerror(*c) << "\n"; }@] In addition, boost::(:link + 1 + + 0 + + -21 + + + 2 + :) can be used to compose an automatic (if not user-friendly) message that contains all of the (:link + 1 + + 0 + + -35 + + + 2 + :) objects added to a boost::(:link + 1 + + 0 + + -34 + + + 2 + :). This is useful for inclusion in logs and other diagnostic objects. + + + + + 0 + + -20 + + 19 2 @@ -6471,7 +6555,7 @@ 0 - -6 + -21 2 @@ -6498,7 +6582,7 @@ 0 - -15 + -6 2 @@ -6534,7 +6618,7 @@ 0 - -6 + -21 2 @@ -6554,7 +6638,346 @@ 0 - -18 + -21 + + + + 29 + 2 + (:auto !!!:) (:include synopsis:) !!!!Returns: A string value that contains varying amount of implementation-specific diagnostic information about the passed exception object: *If E can be statically converted to boost::(:link + 1 + + 0 + + -34 + + + 2 + :), the returned value contains the string representations of all (:link + 1 + + 0 + + -35 + + + 2 + :) objects stored in the boost::(:link + 1 + + 0 + + -34 + + + 2 + :) through (:link + 1 + + 0 + + -6 + + + 2 + mod="/":), along with other diagnostic information relevant to the exception. If e can be dynamically converted to std::exception, the returned value also contains the what() string. *Otherwise, if E can be statically converted std::exception: **if e can be dynamically converted to boost::exception, the returned value is the same as if E could be statically converted to boost::(:link + 1 + + 0 + + -34 + + + 2 + :); **otherwise the returned value contains the what() string. *Otherwise, the boost:: + 1 + + 0 + + -21 + + + 2 + template is not available. The string representation of each (:link + 1 + + 0 + + -35 + + + 2 + :) object is deduced by a function call that is bound at the time the (:link + 1 + + 0 + + -35 + + + 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 + + -35 + + + 2 + :)<Tag,T> (the return value is expected to be of type std::string.) #Unqualified call to to_string(x.(:link + 1 + + 0 + + -43 + + + 2 + mod="m":)()) (the return value is expected to be of type std::string.) #Unqualified call to s << x.(:link + 1 + + 0 + + -43 + + + 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 + + -35 + + + 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. *The returned string may include additional platform-specific diagnostic information. (:include + 1 + + 0 + + -58 + + + 2 + :) + + + + + 0 + + -22 + + + + 29 + 2 + (:auto !!!:) (:include synopsis:) !!!!Requirements: The (:link + 1 + + 0 + + -22 + + + 2 + :) function must not be called outside of a catch block. !!!!Returns: * An (:link + 1 + + 0 + + -8 + + + 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 + + -8 + + + 2 + :) that refers to an instance of std::bad_alloc. !!!!Throws: Nothing. !!!!Notes: * It is unspecified whether the return values of two successive calls to (:link + 1 + + 0 + + -22 + + + 2 + :) refer to the same exception object. * Correct implementation of (:link + 1 + + 0 + + -22 + + + 2 + :) may require compiler support, unless (:link + 1 + + 0 + + -17 + + + 2 + :) was used at the time the currently handled exception object was passed to throw. If (:link + 1 + + 0 + + -17 + + + 2 + :) was not used, and if the compiler does not provide the necessary support, then (:link + 1 + + 0 + + -22 + + + 2 + :) may return an (:link + 1 + + 0 + + -8 + + + 2 + :) that refers to an instance of (:link + 1 + + 0 + + -37 + + + 2 + :). In this case, if the original exception object derives from boost::(:link + 1 + + 0 + + -34 + + + 2 + :), then the boost::(:link + 1 + + 0 + + -34 + + + 2 + :) sub-object of the (:link + 1 + + 0 + + -37 + + + 2 + :) object is initialized by the boost::(:link + 1 + + 0 + + -34 + + + 2 + :) copy constructor. + + + + + 0 + + -23 + + + + 1 + 2 + (:auto !!:) !!!Synopsis (:include synopsis:) + + + + + 0 + + -24 + + + + 1 + 2 + (:auto !!:) !!!Synopsis (:include synopsis:) + + + + + 0 + + -25 + + + + 3 + 2 + (:auto !!!:) (:include decl:) !!!!Effects: Frees all resources associated with a boost::(:link + 1 + + 0 + + -34 + + + 2 + :) object. !!!!Throws: Nothing. + + + + + 0 + + -26 + + + + 1 + 2 + (:auto !!!:) !!!Synopsis (:include synopsis:) + + + + + 0 + + -27 @@ -6574,7 +6997,7 @@ 0 - -6 + -21 2 @@ -6583,7 +7006,7 @@ 0 - -18 + -27 2 @@ -6592,7 +7015,7 @@ 0 - -18 + -27 2 @@ -6603,20 +7026,7 @@ 0 - -19 - - - - 1 - 2 - (:auto !!!:) !!!Synopsis (:include synopsis:) - - - - - 0 - - -20 + -28 @@ -6645,7 +7055,7 @@ 0 - -15 + -6 2 @@ -6654,7 +7064,7 @@ 0 - -20 + -28 2 @@ -6663,7 +7073,7 @@ 0 - -20 + -28 2 @@ -6679,416 +7089,6 @@ :). - - - 0 - - -21 - - - - 3 - 2 - (:auto !!!:) (:include synopsis:) !!!!Effects: Stores a copy of v in the - 1 - - 0 - - -35 - - - 2 - object. (:include throws:) - - - - - 0 - - -22 - - - - 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 - - -13 - - - 2 - :) support in Boost Exception. For example: [@class my_exception: public std::exception { }; .... throw boost::(:link - 1 - - 0 - - -22 - - - 2 - :)(my_exception());@] Unless (:link - 1 - - 0 - - -22 - - - 2 - :) is called at the time an exception object is used in a throw-expression, an attempt to copy it using (:link - 1 - - 0 - - -5 - - - 2 - :) may return an (:link - 1 - - 0 - - -13 - - - 2 - :) which refers to an instance of (:link - 1 - - 0 - - -37 - - - 2 - :). See (:link - 1 - - 0 - - -5 - - - 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 - - -34 - - - 2 - :) and supports the (:link - 1 - - 0 - - -13 - - - 2 - :) functionality. - - - - - 0 - - -23 - - - - 37 - 2 - (:auto !!!:) When you catch an exception, you can call (:link - 1 - - 0 - - -5 - - - 2 - :) to get an (:link - 1 - - 0 - - -13 - - - 2 - :) object: [@#include <(:link - 1 - - 0 - - -53 - - - 2 - :)> #include <boost/thread.hpp> #include <boost/bind.hpp> void do_work(); //throws cloning-enabled boost::(:link - 1 - - 0 - - -34 - - - 2 - :)s void worker_thread( boost::(:link - 1 - - 0 - - -13 - - - 2 - :) & error ) { try { do_work(); error = boost::(:link - 1 - - 0 - - -13 - - - 2 - :)(); } catch( ... ) { error = boost::(:link - 1 - - 0 - - -5 - - - 2 - :)(); } }@] In the above example, note that (:link - 1 - - 0 - - -5 - - - 2 - :) captures the original type of the exception object. The exception can be thrown again using the (:link - 1 - - 0 - - -32 - - - 2 - :) function: [@// ...continued void work() { boost::(:link - 1 - - 0 - - -13 - - - 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 - - -32 - - - 2 - :)(error); }@] Note that (:link - 1 - - 0 - - -5 - - - 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 - - -13 - - - 2 - :) points to an instance of std::bad_alloc, or * if (:link - 1 - - 0 - - -22 - - - 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 - - -13 - - - 2 - :) points to an instance of (:link - 1 - - 0 - - -37 - - - 2 - :). Regardless, the use of (:link - 1 - - 0 - - -5 - - - 2 - :) and (:link - 1 - - 0 - - -32 - - - 2 - :) in the above examples is well-formed. - - - - - 0 - - -24 - - - - 5 - 2 - (:auto !!!:) (:include synopsis:) !!!!Effects: As if [@try { throw - 1 - - 0 - - -22 - - - 2 - (e); } catch(...) { return (:link - 1 - - 0 - - -5 - - - 2 - :)(); }@] - - - - - 0 - - -25 - - - - 5 - 2 - (:auto !!!:) (:include synopsis:) !!!!Requirements: E must be boost::(:link - 1 - - 0 - - -34 - - - 2 - :), or a type that derives (indirectly) from boost::(:link - 1 - - 0 - - -34 - - - 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 - - -26 - - - - 1 - 2 - (:auto !!:) !!!Synopsis (:include synopsis:) - - - - - 0 - - -27 - - - - 1 - 2 - (:auto !!:) !!!Synopsis (:include synopsis:) - - - - - 0 - - -28 - - - - 3 - 2 - (:auto !!!:) (:include decl:) !!!!Effects: Frees all resources associated with a boost::(:link - 1 - - 0 - - -34 - - - 2 - :) object. !!!!Throws: Nothing. - - 0 @@ -7122,7 +7122,7 @@ 0 - -9 + -19 2 @@ -7131,7 +7131,7 @@ 0 - -8 + -13 2 @@ -7140,7 +7140,7 @@ 0 - -17 + -20 2 @@ -7194,7 +7194,7 @@ 0 - -7 + -18 2 @@ -7218,6 +7218,15 @@ 2 :) ###(:link 1 + + 0 + + -6 + + + 2 + :) ###(:link + 1 0 @@ -7230,7 +7239,7 @@ 0 - -25 + -28 2 @@ -7239,16 +7248,7 @@ 0 - -20 - - - 2 - :) ###(:link - 1 - - 0 - - -14 + -7 2 @@ -7257,7 +7257,16 @@ 0 - -13 + -8 + + + 2 + :) ###(:link + 1 + + 0 + + -17 2 @@ -7275,16 +7284,7 @@ 0 - -5 - - - 2 - :) ###(:link - 1 - - 0 - - -24 + -14 2 @@ -7311,7 +7311,7 @@ 0 - -6 + -21 2 @@ -7320,7 +7320,7 @@ 0 - -18 + -27 2 @@ -7392,7 +7392,7 @@ 0 - -12 + -9 2 @@ -7405,7 +7405,7 @@ 2 - mod="w":) !!!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. + mod="w":) !!!Acknowledgements Thanks to Peter Dimov for his continuing help. Also thanks to Tobias Schwinger, Tom Brinkman, Pavel Vozenilek and everyone who participated in the review process. @@ -7423,7 +7423,7 @@ 0 - -22 + -17 2 @@ -7459,7 +7459,7 @@ 0 - -23 + -12 2 @@ -7490,7 +7490,7 @@ 0 - -22 + -17 2 @@ -7499,7 +7499,7 @@ 0 - -14 + -7 2 @@ -7619,7 +7619,7 @@ 0 - -15 + -6 2 @@ -7637,7 +7637,7 @@ 0 - -20 + -28 2 @@ -7668,7 +7668,7 @@ 0 - -15 + -6 2 @@ -7740,7 +7740,7 @@ 0 - -15 + -6 2 @@ -7767,7 +7767,7 @@ 0 - -15 + -6 2 @@ -7776,7 +7776,7 @@ 0 - -20 + -28 2 @@ -7785,7 +7785,7 @@ 0 - -27 + -24 2 @@ -7812,7 +7812,7 @@ 0 - -20 + -28 2 @@ -7852,7 +7852,7 @@ 0 - -22 + -17 2 @@ -7861,7 +7861,7 @@ 0 - -22 + -17 2 @@ -7892,7 +7892,7 @@ 0 - -13 + -8 2 @@ -7901,7 +7901,7 @@ 0 - -5 + -22 2 @@ -8074,7 +8074,7 @@ 0 - -15 + -6 2 @@ -8359,7 +8359,7 @@ 0 - -15 + -6 2 @@ -8368,7 +8368,7 @@ 0 - -20 + -28 2 @@ -8377,7 +8377,7 @@ 0 - -20 + -28 2 @@ -8399,7 +8399,7 @@ 0 - -6 + -21 2 @@ -8466,7 +8466,7 @@ 0 - -20 + -28 2 @@ -8488,7 +8488,7 @@ 0 - -26 + -23 2 @@ -8497,7 +8497,7 @@ 0 - -26 + -23 2 @@ -8632,7 +8632,7 @@ 0 - -19 + -26 2 @@ -8641,7 +8641,7 @@ 0 - -19 + -26 2 @@ -8706,7 +8706,9 @@ - 0 + 1 + 2 + !!!!Throws: Any exception emitted by v's copy constructor. @@ -8717,7 +8719,9 @@ - 0 + 1 + 2 + !!!!Throws: std::bad_alloc, or any exception emitted by the T copy constructor. @@ -8818,7 +8822,7 @@ 1 2 - !!!!Throws: std::bad_alloc, or any exception emitted by the T copy constructor. + !!!!Throws: std::bad_alloc, or any exception emitted by T1..TN copy constructor. @@ -8884,9 +8888,7 @@ - 1 - 2 - !!!!Throws: Any exception emitted by v's copy constructor. + 0 @@ -8930,9 +8932,7 @@ - 1 - 2 - !!!!Throws: std::bad_alloc, or any exception emitted by T1..TN copy constructor. + 0 @@ -9349,11 +9349,11 @@ 0 - -53 + -52 2 - :)> [@namespace boost { (:include decl pre_indent="4":) }@] + :)> [@(:include decl:)@] @@ -9371,7 +9371,7 @@ 0 - -41 + -52 2 @@ -9393,11 +9393,11 @@ 0 - -54 + -48 2 - > (:include decl:) + > [@namespace boost { (:include decl pre_indent="4":) }@] @@ -9408,7 +9408,18 @@ - 0 + 3 + 2 + `#include <(:link + 1 + + 0 + + -53 + + + 2 + :)> [@namespace boost { (:include decl pre_indent="4":) }@] @@ -9462,6 +9473,17 @@ -13 + + 0 + + + + + 0 + + -14 + + 3 2 @@ -9477,28 +9499,6 @@ :)> [@namespace boost { (:include decl pre_indent="4":) }@] - - - 0 - - -14 - - - - 3 - 2 - `#include < - 1 - - 0 - - -48 - - - 2 - > [@namespace boost { (:include decl pre_indent="4":) }@] - - 0 @@ -9507,18 +9507,27 @@ - 3 + 5 2 `#include <(:link 1 0 - -52 + -45 2 - :)>\\ [@namespace boost { (:include decl pre_indent="4":) }@] + :)> [@namespace boost { (:include + 1 + + 0 + + -15 + + + 2 + decl pre_indent="4":) }@] @@ -9540,7 +9549,18 @@ - 0 + 3 + 2 + `#include < + 1 + + 0 + + -26 + + + 2 + > [@namespace boost { (:include decl pre_indent="4":) }@] @@ -9550,6 +9570,50 @@ -18 + + 3 + 2 + `#include < + 1 + + 0 + + -54 + + + 2 + > (:include decl:) + + + + + 0 + + -19 + + + + 0 + + + + + 0 + + -20 + + + + 0 + + + + + 0 + + -21 + + 3 2 @@ -9565,63 +9629,6 @@ :)>\\ [@namespace boost { (:include decl pre_indent="4":) }@] - - - 0 - - -19 - - - - 3 - 2 - [@#include < - 1 - - 0 - - -26 - - - 2 - > namespace boost { (:include api pre_indent="4":) }@] - - - - - 0 - - -20 - - - - 1 - 2 - [@namespace boost { (:include decl pre_indent="4":) }@] - - - - - 0 - - -21 - - - - 3 - 2 - `#include <(:link - 1 - - 0 - - -52 - - - 2 - :)> [@(:include decl:)@] - - 0 @@ -9629,39 +9636,6 @@ -22 - - 3 - 2 - `#include < - 1 - - 0 - - -19 - - - 2 - > [@namespace boost { (:include decl pre_indent="4":) }@] - - - - - 0 - - -23 - - - - 0 - - - - - 0 - - -24 - - 3 2 @@ -9681,38 +9655,7 @@ 0 - -25 - - - - 5 - 2 - `#include <(:link - 1 - - 0 - - -45 - - - 2 - :)> [@namespace boost { (:include - 1 - - 0 - - -25 - - - 2 - decl pre_indent="4":) }@] - - - - - 0 - - -26 + -23 @@ -9725,7 +9668,7 @@ 0 - -27 + -24 @@ -9738,13 +9681,70 @@ 0 - -28 + -25 0 + + + 0 + + -26 + + + + 3 + 2 + [@#include < + 1 + + 0 + + -23 + + + 2 + > namespace boost { (:include api pre_indent="4":) }@] + + + + + 0 + + -27 + + + + 3 + 2 + `#include <(:link + 1 + + 0 + + -41 + + + 2 + :)>\\ [@namespace boost { (:include decl pre_indent="4":) }@] + + + + + 0 + + -28 + + + + 1 + 2 + [@namespace boost { (:include decl pre_indent="4":) }@] + + 0 @@ -9837,7 +9837,7 @@ 0 - -26 + -23 2 @@ -10072,7 +10072,7 @@ 0 - -26 + -23 2 @@ -10129,7 +10129,7 @@ 0 - -26 + -23 2 @@ -10151,7 +10151,7 @@ 0 - -26 + -23 2 @@ -10478,7 +10478,7 @@ - -8 + -13 @@ -10529,7 +10529,7 @@ - -19 + -26 @@ -10546,7 +10546,7 @@ - -9 + -19 @@ -10597,7 +10597,7 @@ - -12 + -9 @@ -10706,7 +10706,7 @@ - -23 + -12 @@ -10838,7 +10838,7 @@ - -5 + -22 @@ -10866,7 +10866,7 @@ - -13 + -8 @@ -10922,7 +10922,7 @@ - -24 + -14 @@ -10950,7 +10950,7 @@ - -20 + -28 @@ -10974,7 +10974,7 @@ - -17 + -20 @@ -11026,7 +11026,7 @@ - -21 + -5 @@ -11054,7 +11054,7 @@ - -15 + -6 @@ -11326,7 +11326,7 @@ - -27 + -24 @@ -11354,7 +11354,7 @@ - -6 + -21 @@ -11382,7 +11382,7 @@ - -18 + -27 @@ -11430,7 +11430,7 @@ - -26 + -23 @@ -11458,7 +11458,7 @@ - -28 + -25 @@ -11486,7 +11486,7 @@ - -22 + -17 @@ -11514,7 +11514,7 @@ - -14 + -7 @@ -11646,7 +11646,7 @@ - -7 + -18 @@ -11750,7 +11750,7 @@ - -25 + -15 @@ -11805,7 +11805,7 @@ -5 - exception_ptr free function + function member @@ -11814,7 +11814,7 @@ -6 - diagnostic_information free function + error_info free function @@ -11823,7 +11823,7 @@ -7 - macro + error_info free function @@ -11832,7 +11832,7 @@ -8 - tutorial + type @@ -11843,6 +11843,15 @@ tutorial + + + 0 + + -12 + + + noindex tutorial + 0 @@ -11850,7 +11859,7 @@ -13 - type + tutorial @@ -11859,7 +11868,7 @@ -14 - error_info free function + exception_ptr free function @@ -11877,7 +11886,7 @@ -17 - diagnostic_information tutorial + exception_ptr free function @@ -11886,16 +11895,7 @@ -18 - function - - - - 0 - - -19 - - - exception_ptr + macro @@ -11904,7 +11904,7 @@ -20 - error_info free function + diagnostic_information tutorial @@ -11913,7 +11913,7 @@ -21 - function member + diagnostic_information free function @@ -11931,7 +11931,7 @@ -23 - noindex tutorial + @@ -11940,7 +11940,7 @@ -24 - exception_ptr free function + error_info @@ -11949,7 +11949,7 @@ -25 - error_info free function + function @@ -11958,7 +11958,7 @@ -26 - + exception_ptr @@ -11967,7 +11967,7 @@ -27 - error_info + function @@ -11976,7 +11976,7 @@ -28 - function + error_info free function