From 5c849297425d606b01d04b1190f4919ebea26a22 Mon Sep 17 00:00:00 2001 From: Emil Dotchevski Date: Sun, 31 Aug 2008 03:23:49 +0000 Subject: [PATCH] documentation update [SVN r48487] --- doc/boost-exception.html | 20 +- doc/enable_current_exception.html | 4 +- doc/enable_error_info.html | 4 +- doc/exception_enable_error_info_hpp.html | 58 - ...xception_enable_exception_cloning_hpp.html | 58 - doc/exception_exception_hpp.html | 13 +- doc/exception_hpp.html | 2 - doc/name_idx.html | 2 - doc/source/boost-exception.reno | 7612 ++++++++--------- doc/throw_exception_hpp.html | 3 +- doc/tutorial_exception_ptr.html | 3 +- 11 files changed, 3628 insertions(+), 4151 deletions(-) delete mode 100644 doc/exception_enable_error_info_hpp.html delete mode 100644 doc/exception_enable_exception_cloning_hpp.html diff --git a/doc/boost-exception.html b/doc/boost-exception.html index 4f34922..851befb 100644 --- a/doc/boost-exception.html +++ b/doc/boost-exception.html @@ -52,8 +52,6 @@
  • throw_exception
  • Headers
    1. boost/exception.hpp
    2. boost/exception/diagnostic_information.hpp
    3. -
    4. boost/exception/enable_current_exception.hpp
    5. -
    6. boost/exception/enable_error_info.hpp
    7. boost/exception/error_info.hpp
    8. boost/exception/exception.hpp
    9. boost/exception/get_error_info.hpp
    10. @@ -84,7 +82,13 @@ boost exception(); exception( exception const & x ); ~exception(); - }; + }; + + template <class T> + ---unspecified--- enable_error_info( T const & x ); + + template <class T> + ---unspecified--- enable_current_exception( T const & e ); template <class Tag,class T> class @@ -116,9 +120,6 @@ boost ..., error_info<TagN,TN> > const & v ); - template <class T> - ---unspecified--- enable_error_info( T const & x ); - template <class T> std::string diagnostic_information( T const & x ); @@ -139,9 +140,6 @@ boost void rethrow_exception( exception_ptr const & ep ); - template <class T> - ---unspecified--- enable_current_exception( T const & e ); - #ifdef BOOST_NO_EXCEPTIONS void throw_exception( std::exception const & e ); // user defined @@ -293,7 +291,7 @@ boost

      Nothing.

    enable_error_info

    -

    #include <boost/exception/enable_error_info.hpp>

    +

    #include <boost/exception/exception.hpp>

    namespace
     boost
         {
    @@ -338,7 +336,7 @@ boost
     

    The default constructor of exception_ptr produces the null value of the type. The null value is equivalent only to itself.

    enable_current_exception

    -

    #include <boost/exception/enable_current_exception.hpp>

    +

    #include <boost/exception/exception.hpp>

    namespace
     boost
         {
    diff --git a/doc/enable_current_exception.html b/doc/enable_current_exception.html
    index 209b2e3..fa3bf02 100644
    --- a/doc/enable_current_exception.html
    +++ b/doc/enable_current_exception.html
    @@ -21,7 +21,7 @@
     
     

    enable_current_exception

    -

    #include <boost/exception/enable_current_exception.hpp>

    +

    #include <boost/exception/exception.hpp>

    namespace
     boost
         {
    @@ -48,7 +48,7 @@ throw boost::enab
     

    See Also:

    Boost Exception
    -
    boost/exception/enable_current_exception.hpp
    +
    boost/exception/exception.hpp
    current_exception
    Transporting of Exceptions Between Threads
    throw_exception
    diff --git a/doc/enable_error_info.html b/doc/enable_error_info.html index 40b099a..0f1f937 100644 --- a/doc/enable_error_info.html +++ b/doc/enable_error_info.html @@ -21,7 +21,7 @@

    enable_error_info

    -

    #include <boost/exception/enable_error_info.hpp>

    +

    #include <boost/exception/exception.hpp>

    namespace
     boost
         {
    @@ -39,7 +39,7 @@ boost
     

    See Also:

    diff --git a/doc/exception_enable_error_info_hpp.html b/doc/exception_enable_error_info_hpp.html deleted file mode 100644 index e34ed44..0000000 --- a/doc/exception_enable_error_info_hpp.html +++ /dev/null @@ -1,58 +0,0 @@ - - - - - boost/exception/enable_error_info.hpp - - - -
    -
    -
    -
    - -

    Boost Exception

    -
    - - - -

    boost/exception/enable_error_info.hpp

    -
    -

    Synopsis

    -
    #include <boost/exception/exception.hpp>
    -
    -namespace
    -boost
    -    {
    -    template <class T>
    -    ---unspecified--- enable_error_info( T const & x );
    -    }
    -
    - - - - -
    -
    -
    - - diff --git a/doc/exception_enable_exception_cloning_hpp.html b/doc/exception_enable_exception_cloning_hpp.html deleted file mode 100644 index 19ca163..0000000 --- a/doc/exception_enable_exception_cloning_hpp.html +++ /dev/null @@ -1,58 +0,0 @@ - - - - - boost/exception/enable_current_exception.hpp - - - -
    -
    -
    -
    - -

    Boost Exception

    -
    - - - -

    boost/exception/enable_current_exception.hpp

    -
    -

    Synopsis

    -
    #include <boost/exception/exception.hpp>
    -
    -namespace
    -boost
    -    {
    -    template <class T>
    -    ---unspecified--- enable_current_exception( T const & e );
    -    }
    -
    - - - - -
    -
    -
    - - diff --git a/doc/exception_exception_hpp.html b/doc/exception_exception_hpp.html index e4d96c0..08b0db0 100644 --- a/doc/exception_exception_hpp.html +++ b/doc/exception_exception_hpp.html @@ -37,16 +37,23 @@ boost exception(); exception( exception const & x ); ~exception(); - }; + }; + + template <class T> + ---unspecified--- enable_error_info( T const & x ); + + template <class T> + ---unspecified--- enable_current_exception( T const & e ); }
    diff --git a/doc/exception_hpp.html b/doc/exception_hpp.html index 6ea0d9b..5b6485a 100644 --- a/doc/exception_hpp.html +++ b/doc/exception_hpp.html @@ -23,8 +23,6 @@

    Synopsis

    #include <boost/exception/diagnostic_information.hpp>
    -#include <boost/exception/enable_current_exception.hpp>
    -#include <boost/exception/enable_error_info.hpp>
     #include <boost/exception/error_info.hpp>
     #include <boost/exception/exception.hpp>
     #include <boost/exception/get_error_info.hpp>
    diff --git a/doc/name_idx.html b/doc/name_idx.html
    index ce7082f..fd995a9 100644
    --- a/doc/name_idx.html
    +++ b/doc/name_idx.html
    @@ -27,8 +27,6 @@
     

    b

    boost/exception.hpp

    boost/exception/diagnostic_information.hpp

    -

    boost/exception/enable_current_exception.hpp

    -

    boost/exception/enable_error_info.hpp

    boost/exception/error_info.hpp

    boost/exception/exception.hpp

    boost/exception/get_error_info.hpp

    diff --git a/doc/source/boost-exception.reno b/doc/source/boost-exception.reno index 1fc2c9c..4e00f4b 100644 --- a/doc/source/boost-exception.reno +++ b/doc/source/boost-exception.reno @@ -39,7 +39,7 @@ - 40 + 38 0 @@ -53,32 +53,28 @@ - 2 - F126A8CB9244BC9DE8BD1D89B47453028CEC694D7EF40BB4474018FA6F056E4C - 3161833426 - 1527 - 504 - 8E724ECF48FB144FBAC1B7F27AE077812CDA75F1A05A08F951DD7F9D54863425 - 4144026351 - 676 - 845 + 1 + 6AF18E00A3BB3D35F83A4F81619F7BD079E08E2BF3F4CE6F218045A2DF9701FA + 348421341 + 341 + 323 0 - ../../../../boost/exception/get_error_info.hpp + ../../../../boost/exception.hpp 0 0 - <string>get_error_info</string> + <string>boost/exception.hpp</string> - + exception_hpp @@ -106,193 +102,7 @@ 78F37A2801CADB066084578244BC93958EAD33507F30C07353EA7D161FFBF973 2089604779 11016 - 511 - F87D7E0321BDDAE23D5A6667CB12116411468AEC54E3B35FB9C8CA94BFECA41E - 1149388739 - 296 - 10596 - - - - - - 0 - ../../../../boost/exception_ptr.hpp - 0 - 0 - - - - - <string>copy_exception</string> - - - - - - - - - 1 - 2 - (:include include:) (:auto also:) - - - - - 0 - - 7 - - reno_context - - - - - - - 2 - 78F37A2801CADB066084578244BC93958EAD33507F30C07353EA7D161FFBF973 - 2089604779 - 11016 - 511 - 4B6ED02EA5B5A3B326838794C37ED01C5DC3E8D89FA78E62B9F7A0C78D4DB6FD - 2715164371 - 116 - 10894 - - - - - - 0 - ../../../../boost/exception_ptr.hpp - 0 - 0 - - - - - <string>rethrow_exception</string> - - - - - - - - - 1 - 2 - (:include include:) (:auto also:) - - - - - 0 - - 8 - - reno_context - - - - - - - 1 - 5373E336DC4892A41D31694BCA1146382FC3137819A04689CA1F9FFAF1CFAB3B - 4050491732 - 466 - 307 - - - - - - 0 - ../../example/cloning_1.cpp - 0 - 0 - - - - - <string>using enable_current_exception at the time of the throw</string> - - - using_enable_cloning - - - - - - 0 - - - - - 0 - - 9 - - reno_context - - - - - - - 1 - CAD6C404CB725D336A44920D2341ECA131149AB02C368B59028F8147F16737BF - 2258638601 - 94 - 227 - - - - - - 0 - ../../../../boost/exception/info_tuple.hpp - 0 - 0 - - - - - <string>boost/exception/info_tuple.hpp</string> - - - exception_error_info_group_hpp - - - - - - 1 - 2 - (:include include:) (:auto also:) - - - - - 0 - - 10 - - reno_context - - - - - - - 2 - 78F37A2801CADB066084578244BC93958EAD33507F30C07353EA7D161FFBF973 - 2089604779 - 11016 - 511 + 532 C84057F7B3954843F5360E9764B35DC5EB1D8ED65CA9F1B6B633D95B417E3AA9 1591300832 2322 @@ -328,7 +138,7 @@ 0 - 11 + 7 reno_context @@ -338,31 +148,31 @@ 2 - 353C90D92FFBB5A5616E5A9FAA19868B8234159FB714A1631B4E415B941DC9D3 - 3466161861 - 4362 - 775 - C552A651ADC0B9506373CC1A78CB4D7D0342BC99BD24F2F2B8CAD3B555037FE7 - 141521629 - 382 - 3974 + 985ACA12BA0E9D0359ED1DF17DB5608A27B8FD5B083E40B39D838B75C58B57DD + 1422943545 + 7756 + 323 + 17E691632123EB67BA67D590B49EB8094F462F5A10A66A1C5438E1867EF1478E + 765399792 + 77 + 4369 0 - ../../../../boost/exception/info.hpp + ../../../../boost/exception/exception.hpp 0 0 - <string>operator<</exception</string> + <string>exception::~exception</string> - + exception_destructor @@ -377,7 +187,52 @@ 0 - 12 + 8 + + reno_context + + + + + + + 1 + FC79C34F05028DB122154492FBB2B8F0EB3EFDCAA30A48C30E3A7E7EBD67E672 + 4099021562 + 1741 + 91 + + + + + + 0 + ../../../../boost/throw_exception.hpp + 0 + 0 + + + + + <string>boost/throw_exception.hpp</string> + + + throw_exception_hpp + + + + + + 1 + 2 + (:include include:) (:auto also:) + + + + + 0 + + 9 reno_context @@ -387,187 +242,14 @@ 2 - 353C90D92FFBB5A5616E5A9FAA19868B8234159FB714A1631B4E415B941DC9D3 - 3466161861 - 4362 - 775 - CF9032A2CB14D66F0F004C0AFDE2BB94321F405D6D95AC46EC5350AB4843A4F1 - 1073329133 - 715 - 243 - - - - - - 0 - ../../../../boost/exception/info.hpp - 0 - 0 - - - - - <string>error_info</string> - - - - - - - - - 1 - 2 - (:include include:) (:auto also:) - - - - - 0 - - 13 - - reno_context - - - - - - - 1 - D5ABFC95B9593A7346BF1C09827808A9AE95C161469B25D50305FCD7AC1A6FC2 - 556762679 - 1647 - 323 - - - - - - 0 - ../../../../boost/exception/enable_current_exception.hpp - 0 - 0 - - - - - <string>boost/exception/enable_current_exception.hpp</string> - - - exception_enable_exception_cloning_hpp - - - - - - 1 - 2 - (:include include:) (:auto also:) - - - - - 0 - - 14 - - reno_context - - - - - - - 1 - CAB4D823BD4720B71E1CA5BE482AC95B42A9E07CD5E08671EA23184635F281A2 - 3077708282 - 89 - 323 - - - - - - 0 - ../../../../boost/exception/error_info.hpp - 0 - 0 - - - - - <string>boost/exception/error_info.hpp</string> - - - exception_error_info_value_hpp - - - - - - 1 - 2 - (:include include:) (:auto also:) - - - - - 0 - - 15 - - reno_context - - - - - - - 0 - - - - - - 1 - - - - - <string>transporting of arbitrary data to the catch site</string> - - - tutorial_transporting_data - - - - - - 1 - 2 - (:include include:) (:auto also:) - - - - - 0 - - 16 - - reno_context - - - - - - - 1 - EE6990C848AF26755A4A3D327073CC8122B3D2C0D00DA2B0F33E4D8805ACB911 - 465181157 - 11204 - 323 + 78F37A2801CADB066084578244BC93958EAD33507F30C07353EA7D161FFBF973 + 2089604779 + 11016 + 532 + 7890935423C731BD8E7DE2820DF7E85C72126B2EAB9A45B0AAFA5749DD1A9D57 + 2497085175 + 2528 + 8066 @@ -581,10 +263,10 @@ - <string>boost/exception_ptr.hpp</string> + <string>current_exception</string> - exception_cloning_hpp + @@ -599,95 +281,7 @@ 0 - 17 - - reno_context - - - - - - - 1 - E444EE9697EEADFDE0767E1D0242FC0E70D98E61FB1F0FFA099648DE509B82F3 - 94503238 - 773 - 374 - - - - - - 0 - ../../example/info_tuple.cpp - 0 - 0 - - - - - <string>adding grouped data to exceptions</string> - - - grouping_data - - - - - - 0 - - - - - 0 - - 18 - - reno_context - - - - - - - 1 - ABA5BB25BAD31B070056FA9595F73F6F0E7F2A1D36D8A2ECDEBE6A2872E0E966 - 980578466 - 2271 - 323 - - - - - - 0 - ../../../../boost/exception/enable_error_info.hpp - 0 - 0 - - - - - <string>boost/exception/enable_error_info.hpp</string> - - - exception_enable_error_info_hpp - - - - - - 1 - 2 - (:include include:) (:auto also:) - - - - - 0 - - 19 + 10 reno_context @@ -728,6 +322,412 @@ (:include include:) (:auto also:) + + + 0 + + 11 + + reno_context + + + + + + + 2 + F7B9CDADF285065E8CB1F11340DFC40B3006D9CE7EE0D5291C08A78548499089 + 3958534298 + 4381 + 775 + C552A651ADC0B9506373CC1A78CB4D7D0342BC99BD24F2F2B8CAD3B555037FE7 + 141521629 + 382 + 3993 + + + + + + 0 + ../../../../boost/exception/info.hpp + 0 + 0 + + + + + <string>operator<</exception</string> + + + + + + + + + 1 + 2 + (:include include:) (:auto also:) + + + + + 0 + + 12 + + reno_context + + + + + + + 1 + 3129727981C71FD1C5ED95F4B0A4D4B67DD804FC601C0B5EC13BE01D7CD8BA8A + 2918124076 + 4833 + 323 + + + + + + 0 + ../../../../boost/exception/info.hpp + 0 + 0 + + + + + <string>boost/exception/info.hpp</string> + + + exception_error_info_hpp + + + + + + 1 + 2 + (:include include:) (:auto also:) + + + + + 0 + + 13 + + reno_context + + + + + + + 1 + DDE2FCDD8E72B54F251AF3A5386B67741519415D947D3F22ECA0EE51BB70FEFE + 780144935 + 1751 + 323 + + + + + + 0 + ../../../../boost/exception/get_error_info.hpp + 0 + 0 + + + + + <string>boost/exception/get_error_info.hpp</string> + + + + + + + + + 1 + 2 + (:include include:) (:auto also:) + + + + + 0 + + 14 + + reno_context + + + + + + + 2 + 78F37A2801CADB066084578244BC93958EAD33507F30C07353EA7D161FFBF973 + 2089604779 + 11016 + 532 + 4B6ED02EA5B5A3B326838794C37ED01C5DC3E8D89FA78E62B9F7A0C78D4DB6FD + 2715164371 + 116 + 10894 + + + + + + 0 + ../../../../boost/exception_ptr.hpp + 0 + 0 + + + + + <string>rethrow_exception</string> + + + + + + + + + 1 + 2 + (:include include:) (:auto also:) + + + + + 0 + + 15 + + reno_context + + + + + + + 1 + D9B8E6AA12A4F33953B1A961FA590C5A3840234B6531CA8C04AC985AD5800835 + 2432554768 + 702 + 408 + + + + + + 0 + ../../example/enable_error_info.cpp + 0 + 0 + + + + + <string>integrating boost exception in existing exception class hierarchies</string> + + + tutorial_enable_error_info + + + + + + 1 + 2 + (:include include:) (:auto also:) + + + + + 0 + + 16 + + reno_context + + + + + + + 1 + 985ACA12BA0E9D0359ED1DF17DB5608A27B8FD5B083E40B39D838B75C58B57DD + 1422943545 + 7756 + 323 + + + + + + 0 + ../../../../boost/exception/exception.hpp + 0 + 0 + + + + + <string>boost/exception/exception.hpp</string> + + + exception_exception_hpp + + + + + + 1 + 2 + (:include include:) (:auto also:) + + + + + 0 + + 17 + + reno_context + + + + + + + 0 + + + + + + 1 + + + + + <string>transporting of arbitrary data to the catch site</string> + + + tutorial_transporting_data + + + + + + 1 + 2 + (:include include:) (:auto also:) + + + + + 0 + + 18 + + reno_context + + + + + + + 1 + CAB4D823BD4720B71E1CA5BE482AC95B42A9E07CD5E08671EA23184635F281A2 + 3077708282 + 89 + 323 + + + + + + 0 + ../../../../boost/exception/error_info.hpp + 0 + 0 + + + + + <string>boost/exception/error_info.hpp</string> + + + exception_error_info_value_hpp + + + + + + 1 + 2 + (:include include:) (:auto also:) + + + + + 0 + + 19 + + reno_context + + + + + + + 1 + 49D31376D97691F7C84A134B5D8C7C66EF1ED6901D376CA250D634AE2B38AB5E + 549270010 + 163 + 610 + + + + + + 0 + ../../../../boost/exception/info.hpp + 0 + 0 + + + + + <string>BOOST_ERROR_INFO</string> + + + + + + + + + 1 + 2 + (:include include:) (:auto also:) + + 0 @@ -741,28 +741,21 @@ - 1 - 4DC5257313CB18D2FB860A51C10E0CA1F26C0130EF7884BEA62F2B9202796B14 - 1113469887 - 1807 - 91 + 0 - 0 - ../../../../boost/throw_exception.hpp - 0 - 0 + 1 - <string>boost/throw_exception.hpp</string> + <string>Index</string> - throw_exception_hpp + name_idx @@ -770,7 +763,7 @@ 1 2 - (:include include:) (:auto also:) + (:auto !:) (:pagelist fmt="index" except_tags="index,noindex" mod="w":) @@ -781,51 +774,6 @@ reno_context - - - - - - 1 - 285A4D5FBF3D13C5729697E61680A07DC52493A4A964D54F6B21FDAA35A3AC70 - 3873809619 - 448 - 323 - - - - - - 0 - ../../../../boost/exception.hpp - 0 - 0 - - - - - <string>boost/exception.hpp</string> - - - exception_hpp - - - - - - 1 - 2 - (:include include:) (:auto also:) - - - - - 0 - - 22 - - reno_context - @@ -871,7 +819,7 @@ 0 - 23 + 22 reno_context @@ -880,11 +828,15 @@ - 1 - 3D62495D55F856D594F8BCFD89F283A1B55638AE7B7609C8EFE4A84371EF6867 - 1383536793 - 2830 + 2 + 985ACA12BA0E9D0359ED1DF17DB5608A27B8FD5B083E40B39D838B75C58B57DD + 1422943545 + 7756 323 + B1D44CB4701E01A9F172883CC04BBD5A0173410AF3C6BEFAF711FD09F918954B + 3552071431 + 1239 + 3128 @@ -898,10 +850,91 @@ - <string>boost/exception/exception.hpp</string> + <string>exception</string> - exception_exception_hpp + + + + + + + 1 + 2 + (:include include:) ---- !!!See Also: (:pagelist link="backlink" except_tags="exception,member" mod="w":) + + + + + 0 + + 23 + + reno_context + + + + + + + 1 + FC684D0DD5A9732B4130F2AB3DB6E0491D0F523E14B7FB738B2019EA2C7F8717 + 2229778754 + 631 + 319 + + + + + + 0 + ../../example/cloning_2.cpp + 0 + 0 + + + + + <string>cloning and re-throwing an exception</string> + + + cloning_and_rethrowing + + + + + + 0 + + + + + 0 + + 24 + + reno_context + + + + + + + 0 + + + + + + 1 + + + + + <string>transporting of exceptions between threads</string> + + + tutorial_exception_ptr @@ -916,7 +949,60 @@ 0 - 24 + 25 + + reno_context + + + + + + + 3 + 985ACA12BA0E9D0359ED1DF17DB5608A27B8FD5B083E40B39D838B75C58B57DD + 1422943545 + 7756 + 323 + B1D44CB4701E01A9F172883CC04BBD5A0173410AF3C6BEFAF711FD09F918954B + 3552071431 + 1239 + 3128 + B805EBBE01B97F9E8E0306870AFA083BD42C2F04A72EE945E4D2161860B720AB + 269617501 + 51 + 245 + + + + + + 0 + ../../../../boost/exception/exception.hpp + 0 + 0 + + + + + <string>exception::exception</string> + + + exception_constructors + + + + + + 1 + 2 + (:include include:) (:auto also:) + + + + + 0 + + 26 reno_context @@ -955,100 +1041,6 @@ 0 - - - 0 - - 25 - - reno_context - - - - - - - 2 - B5B48CB1FFAE29EB28A92336685CBB1DCD53090C7A889BC99659CF306129265E - 3608148048 - 2740 - 413 - 242B7AD2C634B20F99722AD5EF05F11109D14C11A2F7EB2D794D5E01B8BBCBCC - 1650706135 - 1707 - 868 - - - - - - 0 - ../../../../boost/exception/exception.hpp - 0 - 0 - - - - - <string>exception</string> - - - - - - - - - 1 - 2 - (:include include:) ---- !!!See Also: (:pagelist link="backlink" except_tags="exception,member" mod="w":) - - - - - 0 - - 26 - - reno_context - - - - - - - 1 - 49D31376D97691F7C84A134B5D8C7C66EF1ED6901D376CA250D634AE2B38AB5E - 549270010 - 163 - 610 - - - - - - 0 - ../../../../boost/exception/info.hpp - 0 - 0 - - - - - <string>BOOST_ERROR_INFO</string> - - - - - - - - - 1 - 2 - (:include include:) (:auto also:) - - 0 @@ -1062,36 +1054,71 @@ - 3 - B5B48CB1FFAE29EB28A92336685CBB1DCD53090C7A889BC99659CF306129265E - 3608148048 - 2740 - 413 - 242B7AD2C634B20F99722AD5EF05F11109D14C11A2F7EB2D794D5E01B8BBCBCC - 1650706135 - 1707 - 868 - BACD79DFB4C710C1A67687FC6344DF2251E2379613C2DF5B2729B2CD37E24EA3 - 458367129 - 154 - 245 + 1 + 187BFD2B78A0DD006717B5B06FFD465E2468F521C32A86FB793F7A68AB5417F3 + 4276724153 + 574 + 382 0 - ../../../../boost/exception/exception.hpp + ../../example/error_info_1.cpp 0 0 - <string>exception::exception</string> + <string>adding of arbitrary data at the point of the throw</string> - exception_constructors + adding_data_at_throw + + + + + + 0 + + + + + 0 + + 28 + + reno_context + + + + + + + 1 + CAD6C404CB725D336A44920D2341ECA131149AB02C368B59028F8147F16737BF + 2258638601 + 94 + 227 + + + + + + 0 + ../../../../boost/exception/info_tuple.hpp + 0 + 0 + + + + + <string>boost/exception/info_tuple.hpp</string> + + + exception_error_info_group_hpp @@ -1106,7 +1133,144 @@ 0 - 28 + 29 + + reno_context + + + + + + + 1 + 4ED9709788BBAB4DE7CF336561606B8C0B41F70877A3395F4EE026F4AEB66CC6 + 743998427 + 409 + 307 + + + + + + 0 + ../../example/cloning_1.cpp + 0 + 0 + + + + + <string>using enable_current_exception at the time of the throw</string> + + + using_enable_cloning + + + + + + 0 + + + + + 0 + + 30 + + reno_context + + + + + + + 1 + EB34EBE3F1C68865DE1F02FD88687E670BAE694282DAC893A537F30DDCD57FA3 + 3701809375 + 11225 + 323 + + + + + + 0 + ../../../../boost/exception_ptr.hpp + 0 + 0 + + + + + <string>boost/exception_ptr.hpp</string> + + + exception_cloning_hpp + + + + + + 1 + 2 + (:include include:) (:auto also:) + + + + + 0 + + 31 + + reno_context + + + + + + + 2 + 985ACA12BA0E9D0359ED1DF17DB5608A27B8FD5B083E40B39D838B75C58B57DD + 1422943545 + 7756 + 323 + DF9EA87B0140AACF4422F1B76F6A6A409C15F32858BBBA85A35981A824C56BA9 + 1137981799 + 192 + 7476 + + + + + + 0 + ../../../../boost/exception/exception.hpp + 0 + 0 + + + + + <string>enable_current_exception</string> + + + + + + + + + 1 + 2 + (:include include:) (:auto also:) + + + + + 0 + + 32 reno_context @@ -1151,97 +1315,7 @@ 0 - 29 - - 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 - - 30 - - reno_context - - - - - - - 1 - 0E1089A09F6986E4D1393EC178D2F0A5CA5CAFCF9D2F4B96AEACA14E95ED2B38 - 717228119 - 4814 - 323 - - - - - - 0 - ../../../../boost/exception/info.hpp - 0 - 0 - - - - - <string>boost/exception/info.hpp</string> - - - exception_error_info_hpp - - - - - - 1 - 2 - (:include include:) (:auto also:) - - - - - 0 - - 31 + 33 reno_context @@ -1254,11 +1328,11 @@ 78F37A2801CADB066084578244BC93958EAD33507F30C07353EA7D161FFBF973 2089604779 11016 - 511 - 7890935423C731BD8E7DE2820DF7E85C72126B2EAB9A45B0AAFA5749DD1A9D57 - 2497085175 - 2528 - 8066 + 532 + F87D7E0321BDDAE23D5A6667CB12116411468AEC54E3B35FB9C8CA94BFECA41E + 1149388739 + 296 + 10596 @@ -1272,7 +1346,7 @@ - <string>current_exception</string> + <string>copy_exception</string> @@ -1290,7 +1364,7 @@ 0 - 32 + 34 reno_context @@ -1299,33 +1373,29 @@ - 3 - B5B48CB1FFAE29EB28A92336685CBB1DCD53090C7A889BC99659CF306129265E - 3608148048 - 2740 - 413 - 242B7AD2C634B20F99722AD5EF05F11109D14C11A2F7EB2D794D5E01B8BBCBCC - 1650706135 - 1707 - 868 - 9043738F71C025266AC2C0A2BEDC9DA3579175BE5BA672E59D136559D4269190 - 317401972 - 164 - 57 + 2 + 612485E090D76B2CC43C1A296F813075BA165C2496082E78E939F10B3DA8E09A + 1770110914 + 587 + 1225 + 60F3F48B87487FA6E0D2CCC0750AF435CC92CEC80BBBF609AC71295031AADD0D + 3929437933 + 361 + 213 0 - ../../../../boost/exception/exception.hpp + ../../../../boost/throw_exception.hpp 0 0 - <string>exception::diagnostic_information</string> + <string>throw_exception</string> @@ -1343,7 +1413,50 @@ 0 - 33 + 35 + + reno_context + + + + + + + 1 + E444EE9697EEADFDE0767E1D0242FC0E70D98E61FB1F0FFA099648DE509B82F3 + 94503238 + 773 + 374 + + + + + + 0 + ../../example/info_tuple.cpp + 0 + 0 + + + + + <string>adding grouped data to exceptions</string> + + + grouping_data + + + + + + 0 + + + + + 0 + + 36 reno_context @@ -1392,7 +1505,7 @@ 0 - 34 + 37 reno_context @@ -1401,23 +1514,15 @@ - 4 - B5B48CB1FFAE29EB28A92336685CBB1DCD53090C7A889BC99659CF306129265E - 3608148048 - 2740 - 413 - 242B7AD2C634B20F99722AD5EF05F11109D14C11A2F7EB2D794D5E01B8BBCBCC - 1650706135 - 1707 - 868 - 85EE1980CFB24E054EDB1B3BDFA61FD4D65AD0EF248A1A42D4C2552700459327 - 2238151539 - 428 - 401 - AD3F339F7126003907BCBDB3EF846FCACA895132E1100D202DA67D2B7846EE65 - 3032091776 - 60 - 369 + 2 + 985ACA12BA0E9D0359ED1DF17DB5608A27B8FD5B083E40B39D838B75C58B57DD + 1422943545 + 7756 + 323 + B4D37C317A3B45825DDA1A8C8B1CE71CC2E530D15090D05995FCBEC4247F49C4 + 2742768198 + 258 + 5757 @@ -1431,142 +1536,7 @@ - <string>exception::~exception</string> - - - exception_destructor - - - - - - 1 - 2 - (:include include:) (:auto also:) - - - - - 0 - - 35 - - reno_context - - - - - - - 1 - 187BFD2B78A0DD006717B5B06FFD465E2468F521C32A86FB793F7A68AB5417F3 - 4276724153 - 574 - 382 - - - - - - 0 - ../../example/error_info_1.cpp - 0 - 0 - - - - - <string>adding of arbitrary data at the point of the throw</string> - - - adding_data_at_throw - - - - - - 0 - - - - - 0 - - 36 - - 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 - - 37 - - reno_context - - - - - - - 2 - 78F37A2801CADB066084578244BC93958EAD33507F30C07353EA7D161FFBF973 - 2089604779 - 11016 - 511 - CCBCB5EADA66B82DFC7650F467A0E51CA5B10EFCD3729EDFB038A1C5DCB5722D - 1007135774 - 701 - 3933 - - - - - - 0 - ../../../../boost/exception_ptr.hpp - 0 - 0 - - - - - <string>unknown_exception</string> + <string>enable_error_info</string> @@ -1594,28 +1564,28 @@ 2 - 506A4FDA868A2B69175F6B3CF0FE18C9A87901D397934D3DE90A261C1F8409AA - 945649359 - 1603 - 367 - DF9EA87B0140AACF4422F1B76F6A6A409C15F32858BBBA85A35981A824C56BA9 - 1137981799 - 192 - 1405 + 1B9769136D8D43898453AE9747BDC9FD1833F7D620D9083FB9A38C43804FCF35 + 2690633675 + 1570 + 504 + 8E724ECF48FB144FBAC1B7F27AE077812CDA75F1A05A08F951DD7F9D54863425 + 4144026351 + 676 + 888 0 - ../../../../boost/exception/enable_current_exception.hpp + ../../../../boost/exception/get_error_info.hpp 0 0 - <string>enable_current_exception</string> + <string>get_error_info</string> @@ -1642,21 +1612,32 @@ - 0 + 2 + F7B9CDADF285065E8CB1F11340DFC40B3006D9CE7EE0D5291C08A78548499089 + 3958534298 + 4381 + 775 + CF9032A2CB14D66F0F004C0AFDE2BB94321F405D6D95AC46EC5350AB4843A4F1 + 1073329133 + 715 + 243 - 1 + 0 + ../../../../boost/exception/info.hpp + 0 + 0 - <string>Index</string> + <string>error_info</string> - name_idx + @@ -1664,7 +1645,7 @@ 1 2 - (:auto !:) (:pagelist fmt="index" except_tags="index,noindex" mod="w":) + (:include include:) (:auto also:) @@ -1680,29 +1661,33 @@ - 2 - 040AF162DE93F61F89B118788A02CEA76E19F2F9D66E8FC4D4F0B66C6C4CDCA6 - 1391149574 - 2137 - 457 - B752D5E37E6F1F71AD491E0DEF2C7D7C3ED4C9E78F01443EC408B751C83D521F - 2684451358 - 412 - 1719 + 3 + 985ACA12BA0E9D0359ED1DF17DB5608A27B8FD5B083E40B39D838B75C58B57DD + 1422943545 + 7756 + 323 + B1D44CB4701E01A9F172883CC04BBD5A0173410AF3C6BEFAF711FD09F918954B + 3552071431 + 1239 + 3128 + 9043738F71C025266AC2C0A2BEDC9DA3579175BE5BA672E59D136559D4269190 + 317401972 + 164 + 57 0 - ../../../../boost/exception/enable_error_info.hpp + ../../../../boost/exception/exception.hpp 0 0 - <string>enable_error_info</string> + <string>exception::diagnostic_information</string> @@ -1729,21 +1714,32 @@ - 0 + 2 + 78F37A2801CADB066084578244BC93958EAD33507F30C07353EA7D161FFBF973 + 2089604779 + 11016 + 532 + CCBCB5EADA66B82DFC7650F467A0E51CA5B10EFCD3729EDFB038A1C5DCB5722D + 1007135774 + 701 + 3933 - 1 + 0 + ../../../../boost/exception_ptr.hpp + 0 + 0 - <string>transporting of exceptions between threads</string> + <string>unknown_exception</string> - tutorial_exception_ptr + @@ -1787,14 +1783,14 @@ - 115 + 107 2 !!Introduction The purpose of Boost Exception is to ease the design of exception class hierarchies and to help write exception handling and error reporting code. It supports transporting of arbitrary data to the catch site, which is otherwise tricky due to the no-throw requirements (15.5.1) for exception types. Data can be added to any exception object, either directly in the throw-expression (15.1), or at a later time as the exception object propagates up the call stack. The ability to add data to exception objects after they have been passed to throw is important, because often some of the information needed to handle an exception is unavailable in the context where the failure is detected. Boost Exception also supports (:link http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2179.html|N2179:)-style (:link 1 0 - -41 + -24 2 @@ -1803,48 +1799,21 @@ 0 - 43 - - reno_context - - - - - - - 2 - 612485E090D76B2CC43C1A296F813075BA165C2496082E78E939F10B3DA8E09A - 1770110914 - 587 - 1291 - 60F3F48B87487FA6E0D2CCC0750AF435CC92CEC80BBBF609AC71295031AADD0D - 3929437933 - 361 - 213 - - - - - - 0 - ../../../../boost/throw_exception.hpp - 0 - 0 - - - - - <string>throw_exception</string> - - - - - + -34 2 :) function. !!Contents #Tutorial ##(:link 1 + + 0 + + -17 + + + 2 + mod="w":) ##(:link + 1 0 @@ -1857,7 +1826,7 @@ 0 - -29 + -24 2 @@ -1866,16 +1835,7 @@ 0 - -41 - - - 2 - mod="w":) ##(:link - 1 - - 0 - - -19 + -10 2 @@ -1884,7 +1844,7 @@ 0 - -25 + -22 2 @@ -1893,7 +1853,7 @@ 0 - -12 + -39 2 @@ -1911,43 +1871,7 @@ 0 - -22 - - - 2 - :) ###(:link - 1 - - 0 - - -5 - - - 2 - :) ###(:link - 1 - - 0 - - -40 - - - 2 - :) ###(:link - 1 - - 0 - - -26 - - - 2 - :) ##(:link http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2179.html|N2179:) Transporting of Exceptions between Threads ###(:link - 1 - - 0 - - -10 + -21 2 @@ -1965,12 +1889,21 @@ 0 - -31 + -37 2 :) ###(:link 1 + + 0 + + -19 + + + 2 + :) ##(:link http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2179.html|N2179:) Transporting of Exceptions between Threads ###(:link + 1 0 @@ -1983,7 +1916,7 @@ 0 - -7 + -31 2 @@ -1992,11 +1925,11 @@ 0 - -37 + -9 2 - :) ##(:link + :) ###(:link 1 0 @@ -2005,51 +1938,6 @@ 2 - :) ##(:link - 1 - - 0 - - -43 - - - 2 - :) ##Headers ###(:link - 1 - - 0 - - -21 - - - 2 - :) ###(:link - 1 - - 0 - - -28 - - - 2 - :) ###(:link - 1 - - 0 - - -13 - - - 2 - :) ###(:link - 1 - - 0 - - -18 - - - 2 :) ###(:link 1 @@ -2064,7 +1952,34 @@ 0 - -23 + -41 + + + 2 + :) ##(:link + 1 + + 0 + + -36 + + + 2 + :) ##(:link + 1 + + 0 + + -34 + + + 2 + :) ##Headers ###(:link + 1 + + 0 + + -5 2 @@ -2073,39 +1988,7 @@ 0 - 44 - - reno_context - - - - - - - 1 - E6CCBC6F6FEAEF1E95E23AFC7A7268DB35549B5951BE08BC7B4429B7490195ED - 1344405806 - 1708 - 323 - - - - - - 0 - ../../../../boost/exception/get_error_info.hpp - 0 - 0 - - - - - <string>boost/exception/get_error_info.hpp</string> - - - - - + -32 2 @@ -2114,16 +1997,7 @@ 0 - -30 - - - 2 - :) ###(:link - 1 - - 0 - - -9 + -18 2 @@ -2141,38 +2015,29 @@ 0 - -20 + -13 2 - :) #(:link + :) ###(:link 1 0 - -39 + -12 2 - :) !!Synopsis `#include <(:link + :) ###(:link 1 0 - -21 + -28 2 - :)> [@namespace boost { (:include - 1 - - 0 - - -23 - - - 2 - api pre_indent="4":) (:include + :) ###(:link 1 0 @@ -2181,12 +2046,39 @@ 2 - api pre_indent="4":) (:include + :) ###(:link 1 0 - -9 + -8 + + + 2 + :) #(:link + 1 + + 0 + + -20 + + + 2 + :) !!Synopsis `#include <(:link + 1 + + 0 + + -5 + + + 2 + :)> [@namespace boost { (:include + 1 + + 0 + + -16 2 @@ -2195,7 +2087,7 @@ 0 - -18 + -12 2 @@ -2213,7 +2105,7 @@ 0 - -16 + -32 2 @@ -2222,7 +2114,7 @@ 0 - -13 + -30 2 @@ -2231,7 +2123,7 @@ 0 - -20 + -8 2 @@ -2240,7 +2132,7 @@ 0 - -25 + -22 2 @@ -2249,7 +2141,7 @@ 0 - -12 + -39 2 @@ -2267,43 +2159,7 @@ 0 - -22 - - - 2 - :) (:include - 1 - - 0 - - -5 - - - 2 - :) (:include - 1 - - 0 - - -40 - - - 2 - :) (:include - 1 - - 0 - - -26 - - - 2 - :) !!Transporting of Exceptions between Threads (:include - 1 - - 0 - - -10 + -21 2 @@ -2321,12 +2177,21 @@ 0 - -31 + -37 2 :) (:include 1 + + 0 + + -19 + + + 2 + :) !!Transporting of Exceptions between Threads (:include + 1 0 @@ -2339,7 +2204,7 @@ 0 - -7 + -31 2 @@ -2348,11 +2213,11 @@ 0 - -37 + -9 2 - :) !!Printing Diagnostic Information (:include + :) (:include 1 0 @@ -2361,44 +2226,45 @@ 2 + :) (:include + 1 + + 0 + + -14 + + + 2 + :) (:include + 1 + + 0 + + -41 + + + 2 + :) !!Printing Diagnostic Information (:include + 1 + + 0 + + -36 + + + 2 :) !!Throwing Exceptions (:include 1 0 - -43 + -34 2 :) !!Acknowledgements Peter Dimov has been continuously influencing the design and evolution of Boost Exception. Also thanks to Tobias Schwinger, Tom Brinkman, Pavel Vozenilek and everyone who participated in the review process. - - - 0 - - -43 - - - - 1 - 2 - (:include include:) (:auto also:) - - - - - 0 - - -44 - - - - 1 - 2 - (:include include:) (:auto also:) - - @@ -2406,13 +2272,13 @@ def - 45 + 43 reno_layer - 40 + 38 0 @@ -2498,18 +2364,7 @@ - 3 - 2 - [@template <class Tag,class T> class (:link - 1 - - 0 - - -12 - - - 2 - :) { public: typedef T value_type; error_info( value_type const & ); };@] + 0 @@ -2619,7 +2474,45 @@ - 0 + 9 + 2 + [@class (:link + 1 + + 0 + + -22 + + + 2 + :) { public: (:include + 1 + + 0 + + -40 + + + 2 + decl pre_indent="4":) protected: (:include + 1 + + 0 + + -25 + + + 2 + decl pre_indent="4":) (:include + 1 + + 0 + + -7 + + + 2 + decl pre_indent="4":) };@] @@ -2652,45 +2545,7 @@ - 9 - 2 - [@class (:link - 1 - - 0 - - -25 - - - 2 - :) { public: (:include - 1 - - 0 - - -32 - - - 2 - decl pre_indent="4":) protected: (:include - 1 - - 0 - - -27 - - - 2 - decl pre_indent="4":) (:include - 1 - - 0 - - -34 - - - 2 - decl pre_indent="4":) };@] + 0 @@ -2844,7 +2699,18 @@ - 0 + 3 + 2 + [@template <class Tag,class T> class (:link + 1 + + 0 + + -39 + + + 2 + :) { public: typedef T value_type; error_info( value_type const & ); };@] @@ -2880,28 +2746,6 @@ 0 - - - 0 - - -43 - - - - 0 - - - - - 0 - - -44 - - - - 0 - - @@ -2909,13 +2753,13 @@ api - 46 + 44 reno_layer - 40 + 38 0 @@ -2924,7 +2768,81 @@ - 0 + 17 + 2 + [@#include <(:link + 1 + + 0 + + -32 + + + 2 + :)> #include <(:link + 1 + + 0 + + -18 + + + 2 + :)> #include <(:link + 1 + + 0 + + -16 + + + 2 + :)> #include <(:link + 1 + + 0 + + -13 + + + 2 + :)> #include <(:link + 1 + + 0 + + -12 + + + 2 + :)> #include <(:link + 1 + + 0 + + -28 + + + 2 + :)> #include <(:link + 1 + + 0 + + -30 + + + 2 + :)> #include <(:link + 1 + + 0 + + -8 + + + 2 + :)>@] @@ -2957,7 +2875,18 @@ - 0 + 3 + 2 + [@(:include + 1 + + 0 + + -34 + + + 2 + decl:)@] @@ -2968,18 +2897,7 @@ - 3 - 2 - [@(:include - 1 - - 0 - - -22 - - - 2 - decl:)@] + 0 @@ -3012,7 +2930,36 @@ - 0 + 7 + 2 + [@(:include + 1 + + 0 + + -39 + + + 2 + def:) (:include + 1 + + 0 + + -19 + + + 2 + decl:) (:include + 1 + + 0 + + -11 + + + 2 + decl:)@] @@ -3045,18 +2992,7 @@ - 3 - 2 - [@(:include - 1 - - 0 - - -12 - - - 2 - decl:)@] + 0 @@ -3078,10 +3014,19 @@ - 11 + 7 2 [@(:include 1 + + 0 + + -22 + + + 2 + def:) (:include + 1 0 @@ -3091,24 +3036,6 @@ 2 decl:) (:include 1 - - 0 - - -10 - - - 2 - decl:) (:include - 1 - - 0 - - -6 - - - 2 - decl:) (:include - 1 0 @@ -3116,15 +3043,6 @@ 2 - decl:) (:include - 1 - - 0 - - -7 - - - 2 decl:)@] @@ -3154,7 +3072,7 @@ 0 - -40 + -39 2 @@ -3180,18 +3098,7 @@ - 3 - 2 - [@(:include - 1 - - 0 - - -43 - - - 2 - decl:)@] + 0 @@ -3202,99 +3109,7 @@ - 21 - 2 - [@#include < - 1 - - 0 - - -28 - - - 2 - > #include < - 1 - - 0 - - -13 - - - 2 - > #include < - 1 - - 0 - - -18 - - - 2 - > #include < - 1 - - 0 - - -14 - - - 2 - > #include < - 1 - - 0 - - -23 - - - 2 - > #include < - 1 - - 0 - - -44 - - - 2 - > #include < - 1 - - 0 - - -30 - - - 2 - > #include < - 1 - - 0 - - -9 - - - 2 - > #include < - 1 - - 0 - - -16 - - - 2 - > #include < - 1 - - 0 - - -20 - - - 2 - >@] + 0 @@ -3316,18 +3131,7 @@ - 3 - 2 - [@(:include - 1 - - 0 - - -25 - - - 2 - def:)@] + 0 @@ -3389,7 +3193,7 @@ 0 - -33 + -21 2 @@ -3415,23 +3219,14 @@ - 7 + 11 2 [@(:include 1 0 - -12 - - - 2 - def:) (:include - 1 - - 0 - - -26 + -41 2 @@ -3440,7 +3235,34 @@ 0 - -11 + -6 + + + 2 + decl:) (:include + 1 + + 0 + + -33 + + + 2 + decl:) (:include + 1 + + 0 + + -9 + + + 2 + decl:) (:include + 1 + + 0 + + -14 2 @@ -3466,7 +3288,18 @@ - 0 + 3 + 2 + [@(:include + 1 + + 0 + + -36 + + + 2 + decl:)@] @@ -3579,75 +3412,31 @@ 0 + + + + + + decl + + 45 + + reno_layer + + + + 38 0 - -43 + -5 0 - - - 0 - - -44 - - - - 3 - 2 - [@(:include - 1 - - 0 - - -5 - - - 2 - decl:)@] - - - - - - - - decl - - 47 - - reno_layer - - - - 40 - - - 0 - - -5 - - - - 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 - - -5 - - - 2 - :)( E const & x );@] - - 0 @@ -3656,18 +3445,9 @@ - 5 + 3 2 - [@template <class T> (:link - 1 - - 0 - - -10 - - - 2 - :) (:link + [@typedef ---unspecified--- (:link 1 0 @@ -3676,7 +3456,7 @@ 2 - :)( T const & e );@] + :);@] @@ -3687,9 +3467,9 @@ - 5 + 3 2 - [@void (:link + [@(:link 1 0 @@ -3698,16 +3478,7 @@ 2 - :)( (:link - 1 - - 0 - - -10 - - - 2 - :) const & ep ); + mod="m":)();@] @@ -3729,7 +3500,27 @@ - 0 + 5 + 2 + [@(:link + 1 + + 0 + + -6 + + + 2 + :) (:link + 1 + + 0 + + -9 + + + 2 + :)();@] @@ -3740,18 +3531,7 @@ - 3 - 2 - [@typedef ---unspecified--- (:link - 1 - - 0 - - -10 - - - 2 - :);@] + 0 @@ -3778,7 +3558,7 @@ 0 - -12 + -39 2 @@ -3793,18 +3573,7 @@ - 3 - 2 - [@template <class Tag,class T> class (:link - 1 - - 0 - - -12 - - - 2 - :);@] + 0 @@ -3826,7 +3595,27 @@ - 0 + 5 + 2 + [@void (:link + 1 + + 0 + + -14 + + + 2 + :)( (:link + 1 + + 0 + + -6 + + + 2 + :) const & ep ); @@ -3881,7 +3670,45 @@ - 0 + 9 + 2 + [@typedef (:link + 1 + + 0 + + -39 + + + 2 + :)<struct tag_throw_function,char const *> throw_function; typedef (:link + 1 + + 0 + + -39 + + + 2 + :)<struct tag_throw_file,char const *> throw_file; typedef (:link + 1 + + 0 + + -39 + + + 2 + :)<struct tag_throw_line,int> throw_line; #define (:link + 1 + + 0 + + -19 + + + 2 + :)\ ::boost::throw_function(BOOST_CURRENT_FUNCTION) <<\ ::boost::throw_file(__FILE__) <<\ ::boost::throw_line((int)__LINE__)@] @@ -3903,7 +3730,36 @@ - 0 + 7 + 2 + [@template <class E, class Tag1, class T1, ..., class TagN, class TN> E const & (:link + 1 + + 0 + + -21 + + + 2 + |operator<<:)( E const & x, (:link http://www.boost.org/libs/tuple/doc/tuple_users_guide.html|tuple:)< (:link + 1 + + 0 + + -39 + + + 2 + :)<Tag1,T1>, ..., (:link + 1 + + 0 + + -39 + + + 2 + :)<TagN,TN> > const & v );@] @@ -3914,9 +3770,9 @@ - 7 + 3 2 - [@template <class E, class Tag1, class T1, ..., class TagN, class TN> E const & (:link + [@class 1 0 @@ -3925,25 +3781,7 @@ 2 - |operator<<:)( E const & x, (:link http://www.boost.org/libs/tuple/doc/tuple_users_guide.html|tuple:)< (:link - 1 - - 0 - - -12 - - - 2 - :)<Tag1,T1>, ..., (:link - 1 - - 0 - - -12 - - - 2 - :)<TagN,TN> > const & v );@] + ;@] @@ -3976,9 +3814,9 @@ - 3 + 7 2 - [@class + [@(:link 1 0 @@ -3987,7 +3825,25 @@ 2 - ;@] + mod="m":)(); (:link + 1 + + 0 + + -25 + + + 2 + mod="m":)( (:link + 1 + + 0 + + -22 + + + 2 + :) const & x );@] @@ -3998,45 +3854,7 @@ - 9 - 2 - [@typedef (:link - 1 - - 0 - - -12 - - - 2 - :)<struct tag_throw_function,char const *> throw_function; typedef (:link - 1 - - 0 - - -12 - - - 2 - :)<struct tag_throw_file,char const *> throw_file; typedef (:link - 1 - - 0 - - -12 - - - 2 - :)<struct tag_throw_line,int> throw_line; #define (:link - 1 - - 0 - - -26 - - - 2 - :)\ ::boost::throw_function(BOOST_CURRENT_FUNCTION) <<\ ::boost::throw_file(__FILE__) <<\ ::boost::throw_line((int)__LINE__)@] + 0 @@ -4047,36 +3865,7 @@ - 7 - 2 - [@(:link - 1 - - 0 - - -27 - - - 2 - mod="m":)(); (:link - 1 - - 0 - - -27 - - - 2 - mod="m":)( (:link - 1 - - 0 - - -25 - - - 2 - :) const & x );@] + 0 @@ -4120,18 +3909,9 @@ - 5 + 3 2 - [@(:link - 1 - - 0 - - -10 - - - 2 - :) (:link + [@template <class T> ---unspecified--- (:link 1 0 @@ -4140,7 +3920,7 @@ 2 - :)();@] + :)( T const & e );@] @@ -4151,18 +3931,7 @@ - 3 - 2 - [@virtual char const * (:link - 1 - - 0 - - -32 - - - 2 - mod="m":)() const throw();@] + 0 @@ -4173,9 +3942,18 @@ - 3 + 5 2 - [@template <class T> std::string (:link + [@template <class T> (:link + 1 + + 0 + + -6 + + + 2 + :) (:link 1 0 @@ -4184,7 +3962,7 @@ 2 - :)( T const & x );@] + :)( T const & e );@] @@ -4195,9 +3973,9 @@ - 3 + 5 2 - [@(:link + [@#ifdef BOOST_NO_EXCEPTIONS void (:link 1 0 @@ -4206,7 +3984,16 @@ 2 - mod="m":)();@] + :)( std::exception const & e ); // user defined #else template <class E> void (:link + 1 + + 0 + + -34 + + + 2 + :)( E const & e ); #endif@] @@ -4228,7 +4015,18 @@ - 0 + 3 + 2 + [@template <class T> std::string (:link + 1 + + 0 + + -36 + + + 2 + :)( T const & x );@] @@ -4239,9 +4037,9 @@ - 5 + 3 2 - [@class (:link + [@template <class T> ---unspecified--- (:link 1 0 @@ -4250,16 +4048,7 @@ 2 - :): public std::exception public boost:: - 1 - - 0 - - -25 - - - 2 - { ---unspecified--- };@] + :)( T const & x );@] @@ -4272,7 +4061,7 @@ 3 2 - [@template <class T> ---unspecified--- (:link + [@template <class ErrorInfo,class E> (:link http://www.boost.org/libs/smart_ptr/shared_ptr.htm|shared_ptr:)<typename ErrorInfo::value_type const> (:link 1 0 @@ -4281,7 +4070,7 @@ 2 - :)( T const & e );@] + :)( E const & x );@] @@ -4292,7 +4081,18 @@ - 0 + 3 + 2 + [@template <class Tag,class T> class (:link + 1 + + 0 + + -39 + + + 2 + :);@] @@ -4305,7 +4105,7 @@ 3 2 - [@template <class T> ---unspecified--- (:link + [@virtual char const * (:link 1 0 @@ -4314,7 +4114,7 @@ 2 - :)( T const & x );@] + mod="m":)() const throw();@] @@ -4325,7 +4125,27 @@ - 0 + 5 + 2 + [@class (:link + 1 + + 0 + + -41 + + + 2 + :): public std::exception public boost:: + 1 + + 0 + + -22 + + + 2 + { ---unspecified--- };@] @@ -4339,48 +4159,6 @@ 0 - - - 0 - - -43 - - - - 5 - 2 - [@#ifdef BOOST_NO_EXCEPTIONS void (:link - 1 - - 0 - - -43 - - - 2 - :)( std::exception const & e ); // user defined #else template <class E> void (:link - 1 - - 0 - - -43 - - - 2 - :)( E const & e ); #endif@] - - - - - 0 - - -44 - - - - 0 - - @@ -4388,13 +4166,13 @@ include - 48 + 46 reno_layer - 40 + 38 0 @@ -4402,157 +4180,6 @@ -5 - - 9 - 2 - (:auto !!!:) (:include synopsis:) !!!!Requirements: * ErrorInfo must be an instance of the (:link - 1 - - 0 - - -12 - - - 2 - :) template. * E must be polymorphic. * The - 1 - - 0 - - -5 - - - 2 - function must not be called outside of a catch block. !!!!Returns: * If dynamic_cast<boost::(:link - 1 - - 0 - - -25 - - - 2 - :) const *>(&x) is 0, or if x does not store an object of type ErrorInfo, the returned value is an empty shared_ptr. * Otherwise, the returned shared_ptr points to the stored value (use (:link - 1 - - 0 - - -11 - - - 2 - |operator<<:) to store values in exception objects.) The shared_ptr is valid even after x has been destroyed. !!!!Throws: Nothing. - - - - - 0 - - -6 - - - - 3 - 2 - (:auto !!!:) (:include synopsis:) !!!!Effects: As if try { throw e; } catch( ... ) { return (:link - 1 - - 0 - - -31 - - - 2 - :)(); } - - - - - 0 - - -7 - - - - 1 - 2 - (:auto !!!:) (:include synopsis:) !!!!Precondition: ep shall not be null. !!!!Throws: The exception to which ep refers. - - - - - 0 - - -8 - - - - 13 - 2 - (:auto !!!:) Here is how cloning can be enabled in a throw-expression (15.1): [@#include <(:link - 1 - - 0 - - -13 - - - 2 - :)> #include <(:link - 1 - - 0 - - -30 - - - 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 - - -25 - - - 2 - :) { }; void file_read( FILE * f, void * buffer, size_t size ) { if( size!=fread(buffer,1,size,f) ) throw boost::(:link - 1 - - 0 - - -38 - - - 2 - :)(file_read_error()) << errno_info(errno); }@] Of course, (:link - 1 - - 0 - - -38 - - - 2 - :) may be used with any exception type; there is no requirement that it should derive from boost::(:link - 1 - - 0 - - -25 - - - 2 - :). - - - - - 0 - - -9 - - 1 2 @@ -4563,7 +4190,7 @@ 0 - -10 + -6 @@ -4574,7 +4201,7 @@ 0 - -10 + -6 2 @@ -4583,7 +4210,7 @@ 0 - -10 + -6 2 @@ -4592,7 +4219,7 @@ 0 - -10 + -6 2 @@ -4601,13 +4228,290 @@ 0 - -10 + -6 2 :) produces the null value of the type. The null value is equivalent only to itself. + + + 0 + + -7 + + + + 3 + 2 + (:auto !!!:) (:include decl:) !!!!Effects: Frees all resources associated with a boost::(:link + 1 + + 0 + + -22 + + + 2 + :) object. !!!!Throws: Nothing. + + + + + 0 + + -8 + + + + 1 + 2 + (:auto !!:) !!!Synopsis (:include synopsis:) + + + + + 0 + + -9 + + + + 29 + 2 + (:auto !!!:) (:include synopsis:) !!!!Requirements: The (:link + 1 + + 0 + + -9 + + + 2 + :) function must not be called outside of a catch block. !!!!Returns: * An (:link + 1 + + 0 + + -6 + + + 2 + :) that refers to the currently handled exception or a copy of the currently handled exception. * If the function needs to allocate memory and the attempt fails, it returns an (:link + 1 + + 0 + + -6 + + + 2 + :) that refers to an instance of std::bad_alloc. !!!!Throws: Nothing. !!!!Notes: * It is unspecified whether the return values of two successive calls to (:link + 1 + + 0 + + -9 + + + 2 + :) refer to the same exception object. * Correct implementation of (:link + 1 + + 0 + + -9 + + + 2 + :) may require compiler support, unless (:link + 1 + + 0 + + -31 + + + 2 + :) was used at the time the currently handled exception object was passed to throw. If (:link + 1 + + 0 + + -31 + + + 2 + :) was not used, and if the compiler does not provide the necessary support, then (:link + 1 + + 0 + + -9 + + + 2 + :) may return an (:link + 1 + + 0 + + -6 + + + 2 + :) that refers to an instance of (:link + 1 + + 0 + + -41 + + + 2 + :). In this case, if the original exception object derives from boost::(:link + 1 + + 0 + + -22 + + + 2 + :), then the boost::(:link + 1 + + 0 + + -22 + + + 2 + :) sub-object of the (:link + 1 + + 0 + + -41 + + + 2 + :) object is initialized by the boost::(:link + 1 + + 0 + + -22 + + + 2 + :) copy constructor. + + + + + 0 + + -10 + + + + 21 + 2 + (:auto !!:) Class boost::(:link + 1 + + 0 + + -22 + + + 2 + :) provides a virtual member function (:link + 1 + + 0 + + -40 + + + 2 + mod="m":), with a signature similar to the familiar std::exception::what function. The default implementation returns a string value that is not presentable as a friendly user message, but because it is generated automatically, it is useful for debugging or logging purposes. Here is an example: [@#include <(:link + 1 + + 0 + + -5 + + + 2 + :)> #include <iostream> void f(); //throws unknown types that derive from boost::(:link + 1 + + 0 + + -22 + + + 2 + :). void g() { try { f(); } catch( boost::(:link + 1 + + 0 + + -22 + + + 2 + :) & e ) { std::cerr << e.(:link + 1 + + 0 + + -40 + + + 2 + mod="m":)(); } }@] The (:link + 1 + + 0 + + -40 + + + 2 + mod="m":) member function iterates over all data objects stored in the boost::(:link + 1 + + 0 + + -22 + + + 2 + :) through (:link + 1 + + 0 + + -11 + + + 2 + |operator<<:). The returned string is constructed by converting each data object to string and then concatenating these strings together. When the (:link + 1 + + 0 + + -39 + + + 2 + :)<Tag,T> template is instantiated, the system attempts overload resolution for an unqualified call to to_string(x), where x is of type T. If this is successful, the to_string overload is expected to return std::string and is used to convert objects of type T to string. Otherwise, the system attempts overload resolution for s << x, where s is a std::ostringstream and x is of type T. If this is successful, the operator<< overload is used to convert objects of type T to string. Otherwise the system is unable to convert objects of type T to string, and an unspecified stub string value is used without issuing a compile error. + + 0 @@ -4623,7 +4527,7 @@ 0 - -25 + -22 2 @@ -4632,7 +4536,7 @@ 0 - -25 + -22 2 @@ -4641,7 +4545,7 @@ 0 - -12 + -39 2 @@ -4656,117 +4560,9 @@ - 25 + 1 2 - (:auto !!!:) (:include synopsis:) !!!!Requirements: T must have accessible copy constructor and must not be a reference (there is no requirement that T's copy constructor does not throw.) !!!!Description: This class template is used to associate a Tag type with a value type T. Objects of type (:link - 1 - - 0 - - -12 - - - 2 - :)<Tag,T> can be passed to (:link - 1 - - 0 - - -11 - - - 2 - |operator<<:) to be stored in objects of type boost::(:link - 1 - - 0 - - -25 - - - 2 - :). !!!!Note: The header <(:link - 1 - - 0 - - -14 - - - 2 - :)> provides a declaration of the (:link - 1 - - 0 - - -12 - - - 2 - :) template, which is sufficient for the purpose of typedefing an instance for specific Tag and T, like this: [@#include <(:link - 1 - - 0 - - -14 - - - 2 - :)> typedef boost::(:link - 1 - - 0 - - -12 - - - 2 - :)<struct tag_errno,int> errno_info;@] Of course, to actually add an (:link - 1 - - 0 - - -12 - - - 2 - :) object to (:link - 1 - - 0 - - -25 - - - 2 - mod="p":) using (:link - 1 - - 0 - - -11 - - - 2 - |operator<<:), or to retrieve it using (:link - 1 - - 0 - - -5 - - - 2 - :), you must first #include <(:link - 1 - - 0 - - -30 - - - 2 - :)>. + (:auto !!:) !!!Synopsis (:include synopsis:) @@ -4792,7 +4588,7 @@ 1 2 - (:auto !!:) !!!Synopsis (:include synopsis:) + (:auto !!!:) (:include synopsis:) !!!!Precondition: ep shall not be null. !!!!Throws: The exception to which ep refers. @@ -4803,45 +4599,117 @@ - 11 + 27 2 - (:auto !!:) All exception types that derive from boost::(:link + (:auto !!:) Some exception hierarchies can not be modified to make boost::(:link 1 0 - -25 + -22 2 - :) can be used as type-safe containers of arbitrary data objects, while complying with the no-throw requirements (15.5.1) of the ANSI C++ standard for exception types. Data can be added to a boost::(:link + :) a base type. In this case, the (:link 1 0 - -25 + -37 2 - :) at the time of the throw, or at a later time. (:include + :) function template can be used to make exception objects derive from boost::(:link 1 0 - -35 + -22 2 - :) (:include + :) anyway. Here is an example: [@#include <(:link 1 0 - -24 + -5 2 - :) (:include + :)> #include <stdexcept> typedef boost::(:link + 1 + + 0 + + -39 + + + 2 + :)<struct tag_std_range_min,size_t> std_range_min; typedef boost::(:link + 1 + + 0 + + -39 + + + 2 + :)<struct tag_std_range_max,size_t> std_range_max; typedef boost::(:link + 1 + + 0 + + -39 + + + 2 + :)<struct tag_std_range_index,size_t> std_range_index; template <class T> class my_container { public: size_t size() const; T const & operator[]( size_t i ) const { if( i > size() ) throw boost::(:link + 1 + + 0 + + -37 + + + 2 + :)(std::range_error("Index out of range")) << std_range_min(0) << std_range_max(size()) << std_range_index(i); //.... } }; @] The call to (:link + 1 + + 0 + + -37 + + + 2 + :)<T> gets us an object of ''unspecified type'' which is guaranteed to derive from both boost::(:link + 1 + + 0 + + -22 + + + 2 + :) and T. This makes it possible to use (:link + 1 + + 0 + + -11 + + + 2 + |operator<<:) to store additional information in the exception object. The exception can be intercepted as T &, so existing exception handling will not break. It can also be intercepted as boost::(:link + 1 + + 0 + + -22 + + + 2 + :) &, so that (:link 1 0 @@ -4850,7 +4718,7 @@ 2 - :) + |more information can be added to the exception at a later time:). @@ -4874,63 +4742,54 @@ - 13 + 11 2 - (:auto !!!:) The code snippet below demonstrates how boost::(:link http://www.boost.org/libs/tuple/doc/tuple_users_guide.html|tuple:) can be used to bundle the name of the function that failed, together with the reported errno so that they can be added to exception objects more conveniently together: [@#include <(:link + (:auto !!:) All exception types that derive from boost::(:link 1 0 - -9 + -22 2 - :)> #include <boost/shared_ptr.hpp> #include <stdio.h> #include <string> #include <errno.h> typedef boost::(:link + :) can be used as type-safe containers of arbitrary data objects, while complying with the no-throw requirements (15.5.1) of the ANSI C++ standard for exception types. Data can be added to a boost::(:link 1 0 - -12 + -22 2 - :)<struct tag_file_name,std::string> file_name_info; typedef boost::(:link + :) at the time of the throw, or at a later time. (:include 1 0 - -12 + -27 2 - :)<struct tag_function,char const *> function_info; typedef boost::(:link + :) (:include 1 0 - -12 + -26 2 - :)<struct tag_errno,int> errno_info; typedef boost::tuple<function_info,errno_info> clib_failure; class file_open_error: public boost::(:link + :) (:include 1 0 - -25 + -35 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 - - -5 - - - 2 - :). + :) @@ -4953,376 +4812,6 @@ -19 - - 21 - 2 - (:auto !!:) Class boost::(:link - 1 - - 0 - - -25 - - - 2 - :) provides a virtual member function (:link - 1 - - 0 - - -32 - - - 2 - mod="m":), with a signature similar to the familiar std::exception::what function. The default implementation returns a string value that is not presentable as a friendly user message, but because it is generated automatically, it is useful for debugging or logging purposes. Here is an example: [@#include <(:link - 1 - - 0 - - -21 - - - 2 - :)> #include <iostream> void f(); //throws unknown types that derive from boost::(:link - 1 - - 0 - - -25 - - - 2 - :). void g() { try { f(); } catch( boost::(:link - 1 - - 0 - - -25 - - - 2 - :) & e ) { std::cerr << e.(:link - 1 - - 0 - - -32 - - - 2 - mod="m":)(); } }@] The (:link - 1 - - 0 - - -32 - - - 2 - mod="m":) member function iterates over all data objects stored in the boost::(:link - 1 - - 0 - - -25 - - - 2 - :) through (:link - 1 - - 0 - - -11 - - - 2 - |operator<<:). The returned string is constructed by converting each data object to string and then concatenating these strings together. When the (:link - 1 - - 0 - - -12 - - - 2 - :)<Tag,T> template is instantiated, the system attempts overload resolution for an unqualified call to to_string(x), where x is of type T. If this is successful, the to_string overload is expected to return std::string and is used to convert objects of type T to string. Otherwise, the system attempts overload resolution for s << x, where s is a std::ostringstream and x is of type T. If this is successful, the operator<< overload is used to convert objects of type T to string. Otherwise the system is unable to convert objects of type T to string, and an unspecified stub string value is used without issuing a compile error. - - - - - 0 - - -20 - - - - 1 - 2 - (:auto !!:) !!!Synopsis (:include synopsis:) - - - - - 0 - - -21 - - - - 1 - 2 - (:auto !!:) !!!Synopsis (:include synopsis:) - - - - - 0 - - -22 - - - - 5 - 2 - (:auto !!!:) (:include synopsis:) !!!!Requirements: E must be boost::(:link - 1 - - 0 - - -25 - - - 2 - :), or a type that derives (indirectly) from boost::(:link - 1 - - 0 - - -25 - - - 2 - :). !!!!Effects: Equivalent to x << v.(:link http://www.boost.org/libs/tuple/doc/tuple_users_guide.html#accessing_elements|get:)<0>() << ... << v.(:link http://www.boost.org/libs/tuple/doc/tuple_users_guide.html#accessing_elements|get:)<N>(). !!!!Returns: x. (:include throws:) - - - - - 0 - - -23 - - - - 1 - 2 - (:auto !!:) !!!Synopsis (:include synopsis:) - - - - - 0 - - -24 - - - - 21 - 2 - (:auto !!!:) Sometimes the throw site does not have all the information that is needed at the catch site to make sense of what went wrong. Here is an example: [@#include <stdio.h> #include <string> class file_read_error { public: explicit file_read_error( std::string const & fn ): fn_(fn) { }; std::string const & file_name() const { return fn_; } private: std::string fn_; }; void file_read( FILE * f, void * buffer, size_t size ) { if( size!=fread(buffer,1,size,f) ) throw file_read_error("????"); }@] We have defined an exception class file_read_error which can store a file name, so that when we catch a file_read_error object, we know which file the failure is related to. However, the file_read function does not have the file name at the time of the throw; all it has is a FILE handle. One possible solution is to not use FILE handles directly. We could have our own class file which stores both a FILE handle and a file name, and pass that to file_read. However, this could be problematic if we communicate with 3rd party code that does not use our class file (probably because they have their own similar class.) A better solution is to make class file_read_error derive (possibly indirectly) from boost::(:link - 1 - - 0 - - -25 - - - 2 - :), and free the file_read function from the burden of storing the file name in exceptions it throws: [@#include <(:link - 1 - - 0 - - -21 - - - 2 - :)> #include <stdio.h> #include <errno.h> typedef boost::(:link - 1 - - 0 - - -12 - - - 2 - :)<struct tag_errno,int> errno_info; class file_read_error: public boost::(:link - 1 - - 0 - - -25 - - - 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 - - -21 - - - 2 - :)> #include <boost/shared_ptr.hpp> #include <stdio.h> #include <string> typedef boost::(:link - 1 - - 0 - - -12 - - - 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 - - -25 - - - 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 - - -25 - - - 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 - - -25 - - - 2 - :) object is that the file name is relevant to any failure that occurs in parse_file, ''even if the failure is unrelated to file I/O''. As usual, the stored data can be retrieved using (:link - 1 - - 0 - - -5 - - - 2 - :). - - - - - 0 - - -25 - - - - 19 - 2 - (:auto !!!:) (:include synopsis:) Class boost::(:link - 1 - - 0 - - -25 - - - 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 - - -25 - - - 2 - :) can store data of arbitrary types, using the (:link - 1 - - 0 - - -12 - - - 2 - :) wrapper and (:link - 1 - - 0 - - -11 - - - 2 - |operator<<:). To retrieve data from a boost::(:link - 1 - - 0 - - -25 - - - 2 - :) object, use the (:link - 1 - - 0 - - -5 - - - 2 - :) function template. (:include - 1 - - 0 - - -27 - - - 2 - :) (:include - 1 - - 0 - - -34 - - - 2 - :) (:include - 1 - - 0 - - -32 - - - 2 - :) - - - - - 0 - - -26 - - 7 2 @@ -5340,7 +4829,7 @@ 0 - -25 + -22 2 @@ -5349,7 +4838,7 @@ 0 - -12 + -39 2 @@ -5360,7 +4849,376 @@ 0 - -27 + -20 + + + + 0 + + + + + 0 + + -21 + + + + 5 + 2 + (:auto !!!:) (:include synopsis:) !!!!Requirements: E must be boost::(:link + 1 + + 0 + + -22 + + + 2 + :), or a type that derives (indirectly) from boost::(:link + 1 + + 0 + + -22 + + + 2 + :). !!!!Effects: Equivalent to x << v.(:link http://www.boost.org/libs/tuple/doc/tuple_users_guide.html#accessing_elements|get:)<0>() << ... << v.(:link http://www.boost.org/libs/tuple/doc/tuple_users_guide.html#accessing_elements|get:)<N>(). !!!!Returns: x. (:include throws:) + + + + + 0 + + -22 + + + + 19 + 2 + (:auto !!!:) (:include synopsis:) Class boost::(:link + 1 + + 0 + + -22 + + + 2 + :) is designed to be used as a universal base for user-defined exception types. An object of any type deriving from boost::(:link + 1 + + 0 + + -22 + + + 2 + :) can store data of arbitrary types, using the (:link + 1 + + 0 + + -39 + + + 2 + :) wrapper and (:link + 1 + + 0 + + -11 + + + 2 + |operator<<:). To retrieve data from a boost::(:link + 1 + + 0 + + -22 + + + 2 + :) object, use the (:link + 1 + + 0 + + -38 + + + 2 + :) function template. (:include + 1 + + 0 + + -25 + + + 2 + :) (:include + 1 + + 0 + + -7 + + + 2 + :) (:include + 1 + + 0 + + -40 + + + 2 + :) + + + + + 0 + + -23 + + + + 37 + 2 + (:auto !!!:) When you catch an exception, you can call (:link + 1 + + 0 + + -9 + + + 2 + :) to get an (:link + 1 + + 0 + + -6 + + + 2 + :) object: [@#include <(:link + 1 + + 0 + + -30 + + + 2 + :)> #include <boost/thread.hpp> #include <boost/bind.hpp> void do_work(); //throws cloning-enabled boost::(:link + 1 + + 0 + + -22 + + + 2 + :)s void worker_thread( boost::(:link + 1 + + 0 + + -6 + + + 2 + :) & error ) { try { do_work(); error = boost::(:link + 1 + + 0 + + -6 + + + 2 + :)(); } catch( ... ) { error = boost::(:link + 1 + + 0 + + -9 + + + 2 + :)(); } }@] In the above example, note that (:link + 1 + + 0 + + -9 + + + 2 + :) captures the original type of the exception object. The exception can be thrown again using the (:link + 1 + + 0 + + -14 + + + 2 + :) function: [@// ...continued void work() { boost::(:link + 1 + + 0 + + -6 + + + 2 + :) error; boost::(:link http://www.boost.org/doc/html/boost/thread.html|thread:) t( boost::(:link http://www.boost.org/libs/bind/bind.html|bind:)(worker_thread,boost::(:link http://www.boost.org/doc/html/ref.html|ref:)(error)) ); t.(:link http://www.boost.org/doc/html/boost/thread.html|join:)(); if( error ) boost::(:link + 1 + + 0 + + -14 + + + 2 + :)(error); }@] Note that (:link + 1 + + 0 + + -9 + + + 2 + :) could fail to copy the original exception object in the following cases: * if there is not enough memory, in which case the returned (:link + 1 + + 0 + + -6 + + + 2 + :) points to an instance of std::bad_alloc, or * if (:link + 1 + + 0 + + -31 + + + 2 + :) was not used in the throw-expression passed to the original throw statement and the current implementation does not have the necessary compiler-specific support to copy the exception automatically, in which case the returned (:link + 1 + + 0 + + -6 + + + 2 + :) points to an instance of (:link + 1 + + 0 + + -41 + + + 2 + :). Regardless, the use of (:link + 1 + + 0 + + -9 + + + 2 + :) and (:link + 1 + + 0 + + -14 + + + 2 + :) in the above examples is well-formed. + + + + + 0 + + -24 + + + + 11 + 2 + (:auto !!:) Boost Exception supports transporting of exception objects between threads through cloning. This system is similar to (:link http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2179.html|N2179:), but because Boost Exception can not rely on language support, the use of (:link + 1 + + 0 + + -31 + + + 2 + :) at the time of the throw is required in order to use cloning. !!!!Note: All exceptions emitted by the familiar function boost::(:link + 1 + + 0 + + -34 + + + 2 + :) are guaranteed to derive from boost::(:link + 1 + + 0 + + -22 + + + 2 + :) and to support cloning. (:include + 1 + + 0 + + -29 + + + 2 + :) (:include + 1 + + 0 + + -23 + + + 2 + :) + + + + + 0 + + -25 @@ -5371,7 +5229,7 @@ 0 - -25 + -22 2 @@ -5380,7 +5238,7 @@ 0 - -25 + -22 2 @@ -5396,6 +5254,194 @@ |operator<<:), including data that is added at a future time. !!!!Throws: Nothing. + + + 0 + + -26 + + + + 21 + 2 + (:auto !!!:) Sometimes the throw site does not have all the information that is needed at the catch site to make sense of what went wrong. Here is an example: [@#include <stdio.h> #include <string> class file_read_error { public: explicit file_read_error( std::string const & fn ): fn_(fn) { }; std::string const & file_name() const { return fn_; } private: std::string fn_; }; void file_read( FILE * f, void * buffer, size_t size ) { if( size!=fread(buffer,1,size,f) ) throw file_read_error("????"); }@] We have defined an exception class file_read_error which can store a file name, so that when we catch a file_read_error object, we know which file the failure is related to. However, the file_read function does not have the file name at the time of the throw; all it has is a FILE handle. One possible solution is to not use FILE handles directly. We could have our own class file which stores both a FILE handle and a file name, and pass that to file_read. However, this could be problematic if we communicate with 3rd party code that does not use our class file (probably because they have their own similar class.) A better solution is to make class file_read_error derive (possibly indirectly) from boost::(:link + 1 + + 0 + + -22 + + + 2 + :), and free the file_read function from the burden of storing the file name in exceptions it throws: [@#include <(:link + 1 + + 0 + + -5 + + + 2 + :)> #include <stdio.h> #include <errno.h> typedef boost::(:link + 1 + + 0 + + -39 + + + 2 + :)<struct tag_errno,int> errno_info; class file_read_error: public boost::(:link + 1 + + 0 + + -22 + + + 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 + + -5 + + + 2 + :)> #include <boost/shared_ptr.hpp> #include <stdio.h> #include <string> typedef boost::(:link + 1 + + 0 + + -39 + + + 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 + + -22 + + + 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 + + -22 + + + 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 + + -22 + + + 2 + :) object is that the file name is relevant to any failure that occurs in parse_file, ''even if the failure is unrelated to file I/O''. As usual, the stored data can be retrieved using (:link + 1 + + 0 + + -38 + + + 2 + :). + + + + + 0 + + -27 + + + + 17 + 2 + (:auto !!!:) The following example demonstrates how errno can be stored in exception objects using Boost Exception: [@#include <(:link + 1 + + 0 + + -5 + + + 2 + :)> #include <errno.h> #include <iostream> typedef boost::(:link + 1 + + 0 + + -39 + + + 2 + :)<struct tag_errno,int> errno_info; //(1) class my_error: public boost::(:link + 1 + + 0 + + -22 + + + 2 + :), public std::exception { }; //(2) void f() { throw my_error() << errno_info(errno); //(3) } @] First, we instantiate the (:link + 1 + + 0 + + -39 + + + 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 + + -22 + + + 2 + :). Finally, (3) illustrates how the typedef from (1) can be used with (:link + 1 + + 0 + + -11 + + + 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 + + -38 + + + 2 + :)<errno_info>(x) ) std::cerr << "Error code: " << *err; } }@] The (:link + 1 + + 0 + + -38 + + + 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 @@ -5417,45 +5463,9 @@ - 27 + 11 2 - (:auto !!:) Some exception hierarchies can not be modified to make boost::(:link - 1 - - 0 - - -25 - - - 2 - :) a base type. In this case, the (:link - 1 - - 0 - - -40 - - - 2 - :) function template can be used to make exception objects derive from boost::(:link - 1 - - 0 - - -25 - - - 2 - :) anyway. Here is an example: [@#include <(:link - 1 - - 0 - - -21 - - - 2 - :)> #include <stdexcept> typedef boost::(:link + (:auto !!!:) Here is how cloning can be enabled in a throw-expression (15.1): [@#include <(:link 1 0 @@ -5464,79 +5474,43 @@ 2 - :)<struct tag_std_range_min,size_t> std_range_min; typedef boost::(:link + :)> #include <stdio.h> #include <errno.h> typedef boost::error_info<struct tag_errno,int> errno_info; class file_read_error: public boost::(:link 1 0 - -12 + -22 2 - :)<struct tag_std_range_max,size_t> std_range_max; typedef boost::(:link + :) { }; void file_read( FILE * f, void * buffer, size_t size ) { if( size!=fread(buffer,1,size,f) ) throw boost::(:link 1 0 - -12 + -31 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 + :)(file_read_error()) << errno_info(errno); }@] Of course, (:link 1 0 - -40 + -31 2 - :)(std::range_error("Index out of range")) << std_range_min(0) << std_range_max(size()) << std_range_index(i); //.... } }; @] The call to (:link + :) may be used with any exception type; there is no requirement that it should derive from boost::(:link 1 0 - -40 + -22 2 - :)<T> gets us an object of ''unspecified type'' which is guaranteed to derive from both boost::(:link - 1 - - 0 - - -25 - - - 2 - :) and T. This makes it possible to use (:link - 1 - - 0 - - -11 - - - 2 - |operator<<:) to store additional information in the exception object. The exception can be intercepted as T &, so existing exception handling will not break. It can also be intercepted as boost::(:link - 1 - - 0 - - -25 - - - 2 - :) &, so that (:link - 1 - - 0 - - -15 - - - 2 - |more information can be added to the exception at a later time:). + :). @@ -5560,9 +5534,18 @@ - 29 + 21 2 - (:auto !!!:) (:include synopsis:) !!!!Requirements: The (:link + (:auto !!!:) (:include synopsis:) !!!!Requirements: T must be a class with an accessible no-throw copy constructor. !!!!Returns: An object of ''unspecified'' type which derives publicly from T. That is, the returned object can be intercepted by a catch(T &). !!!!Description: This function is designed to be used directly in a throw-expression to enable the (:link + 1 + + 0 + + -6 + + + 2 + :) support in Boost Exception. For example: [@class my_exception: public std::exception { }; .... throw boost::(:link 1 0 @@ -5571,25 +5554,7 @@ 2 - :) function must not be called outside of a catch block. !!!!Returns: * An (:link - 1 - - 0 - - -10 - - - 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 - - -10 - - - 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 + :)(my_exception());@] Unless (:link 1 0 @@ -5598,39 +5563,12 @@ 2 - :) refer to the same exception object. * Correct implementation of (:link + :) is called at the time an exception object is used in a throw-expression, an attempt to copy it using (:link 1 0 - -31 - - - 2 - :) may require compiler support, unless (:link - 1 - - 0 - - -38 - - - 2 - :) was used at the time the currently handled exception object was passed to throw. If (:link - 1 - - 0 - - -38 - - - 2 - :) was not used, and if the compiler does not provide the necessary support, then (:link - 1 - - 0 - - -31 + -9 2 @@ -5639,56 +5577,56 @@ 0 - -10 + -6 2 - :) that refers to an instance of (:link + :) which refers to an instance of (:link 1 0 - -37 + -41 2 - :). In this case, if the original exception object derives from boost::(:link + :). See (:link 1 0 - -25 + -9 2 - :), then the boost::(:link + :) for details. !!!!Note: Instead of using the throw keyword directly, it is preferable to call boost::(:link 1 0 - -25 + -34 2 - :) sub-object of the (:link + :). This is guaranteed to throw an exception that derives from boost::(:link 1 0 - -37 + -22 2 - :) object is initialized by the boost::(:link + :) and supports the (:link 1 0 - -25 + -6 2 - :) copy constructor. + :) functionality. @@ -5698,6 +5636,407 @@ -32 + + 1 + 2 + (:auto !!:) !!!Synopsis (:include synopsis:) + + + + + 0 + + -33 + + + + 3 + 2 + (:auto !!!:) (:include synopsis:) !!!!Effects: As if try { throw e; } catch( ... ) { return (:link + 1 + + 0 + + -9 + + + 2 + :)(); } + + + + + 0 + + -34 + + + + 13 + 2 + (:auto !!!:) (:include synopsis:) !!!!Requirements: E must derive publicly from std::exception. !!!!Effects: * If BOOST_NO_EXCEPTIONS is not defined, boost::(:link + 1 + + 0 + + -34 + + + 2 + :)(e) is equivalent to throw boost::(:link + 1 + + 0 + + -31 + + + 2 + :)(boost::(:link + 1 + + 0 + + -37 + + + 2 + :)(e)), unless BOOST_EXCEPTION_DISABLE is defined, in which case boost::(:link + 1 + + 0 + + -34 + + + 2 + :)(e) is equivalent to throw e; * If BOOST_NO_EXCEPTIONS is defined, the function is left undefined, and the user is expected to supply an appropriate definition. Callers of + 1 + + 0 + + -34 + + + 2 + are allowed to assume that the function never returns; therefore, if the user-defined + 1 + + 0 + + -34 + + + 2 + returns, the behavior is undefined. + + + + + 0 + + -35 + + + + 13 + 2 + (:auto !!!:) The code snippet below demonstrates how boost::(:link http://www.boost.org/libs/tuple/doc/tuple_users_guide.html|tuple:) can be used to bundle the name of the function that failed, together with the reported errno so that they can be added to exception objects more conveniently together: [@#include <(:link + 1 + + 0 + + -28 + + + 2 + :)> #include <boost/shared_ptr.hpp> #include <stdio.h> #include <string> #include <errno.h> typedef boost::(:link + 1 + + 0 + + -39 + + + 2 + :)<struct tag_file_name,std::string> file_name_info; typedef boost::(:link + 1 + + 0 + + -39 + + + 2 + :)<struct tag_function,char const *> function_info; typedef boost::(:link + 1 + + 0 + + -39 + + + 2 + :)<struct tag_errno,int> errno_info; typedef boost::tuple<function_info,errno_info> clib_failure; class file_open_error: public boost::(:link + 1 + + 0 + + -22 + + + 2 + :) { }; boost::shared_ptr<FILE> file_open( char const * name, char const * mode ) { if( FILE * f=fopen(name,mode) ) return boost::shared_ptr<FILE>(f,fclose); else throw file_open_error() << file_name_info(name) << clib_failure("fopen",errno); }@] Note that the members of a boost::(:link http://www.boost.org/libs/tuple/doc/tuple_users_guide.html|tuple:) are stored separately in exception objects; they can only be retrieved individually, using (:link + 1 + + 0 + + -38 + + + 2 + :). + + + + + 0 + + -36 + + + + 5 + 2 + (:auto !!!:) (:include synopsis:) !!!!Returns: Platform-specific diagnostic information about x. !!!!Notes: *If dynamic_cast<std::exception const *>(&x) is not null, the returned string includes the output from std::exception::what. *If dynamic_cast<boost::(:link + 1 + + 0 + + -22 + + + 2 + :) const *>(&x) is not null, the returned string includes the output from boost::(:link + 1 + + 0 + + -40 + + + 2 + :). + + + + + 0 + + -37 + + + + 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 + + -22 + + + 2 + :), the returned object is of type T and is a copy of x. * Otherwise, the returned object is of an unspecified type that derives publicly from both T and boost::(:link + 1 + + 0 + + -22 + + + 2 + :). The T sub-object is initialized from x by the T copy constructor. !!!!Throws: Nothing. + + + + + 0 + + -38 + + + + 9 + 2 + (:auto !!!:) (:include synopsis:) !!!!Requirements: * ErrorInfo must be an instance of the (:link + 1 + + 0 + + -39 + + + 2 + :) template. * E must be polymorphic. * The + 1 + + 0 + + -38 + + + 2 + function must not be called outside of a catch block. !!!!Returns: * If dynamic_cast<boost::(:link + 1 + + 0 + + -22 + + + 2 + :) const *>(&x) is 0, or if x does not store an object of type ErrorInfo, the returned value is an empty shared_ptr. * Otherwise, the returned shared_ptr points to the stored value (use (:link + 1 + + 0 + + -11 + + + 2 + |operator<<:) to store values in exception objects.) The shared_ptr is valid even after x has been destroyed. !!!!Throws: Nothing. + + + + + 0 + + -39 + + + + 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 + + -39 + + + 2 + :)<Tag,T> can be passed to (:link + 1 + + 0 + + -11 + + + 2 + |operator<<:) to be stored in objects of type boost::(:link + 1 + + 0 + + -22 + + + 2 + :). !!!!Note: The header <(:link + 1 + + 0 + + -18 + + + 2 + :)> provides a declaration of the (:link + 1 + + 0 + + -39 + + + 2 + :) template, which is sufficient for the purpose of typedefing an instance for specific Tag and T, like this: [@#include <(:link + 1 + + 0 + + -18 + + + 2 + :)> typedef boost::(:link + 1 + + 0 + + -39 + + + 2 + :)<struct tag_errno,int> errno_info;@] Of course, to actually add an (:link + 1 + + 0 + + -39 + + + 2 + :) object to (:link + 1 + + 0 + + -22 + + + 2 + mod="p":) using (:link + 1 + + 0 + + -11 + + + 2 + |operator<<:), or to retrieve it using (:link + 1 + + 0 + + -38 + + + 2 + :), you must first #include <(:link + 1 + + 0 + + -12 + + + 2 + :)>. + + + + + 0 + + -40 + + 15 2 @@ -5706,7 +6045,7 @@ 0 - -25 + -22 2 @@ -5724,7 +6063,7 @@ 0 - -19 + -10 2 @@ -5733,7 +6072,7 @@ 0 - -28 + -32 2 @@ -5742,7 +6081,7 @@ 0 - -33 + -36 2 @@ -5751,7 +6090,7 @@ 0 - -25 + -22 2 @@ -5760,7 +6099,7 @@ 0 - -32 + -40 2 @@ -5771,320 +6110,7 @@ 0 - -33 - - - - 5 - 2 - (:auto !!!:) (:include synopsis:) !!!!Returns: Platform-specific diagnostic information about x. !!!!Notes: *If dynamic_cast<std::exception const *>(&x) is not null, the returned string includes the output from std::exception::what. *If dynamic_cast<boost::(:link - 1 - - 0 - - -25 - - - 2 - :) const *>(&x) is not null, the returned string includes the output from boost::(:link - 1 - - 0 - - -32 - - - 2 - :). - - - - - 0 - - -34 - - - - 3 - 2 - (:auto !!!:) (:include decl:) !!!!Effects: Frees all resources associated with a boost::(:link - 1 - - 0 - - -25 - - - 2 - :) object. !!!!Throws: Nothing. - - - - - 0 - - -35 - - - - 17 - 2 - (:auto !!!:) The following example demonstrates how errno can be stored in exception objects using Boost Exception: [@#include <(:link - 1 - - 0 - - -21 - - - 2 - :)> #include <errno.h> #include <iostream> typedef boost::(:link - 1 - - 0 - - -12 - - - 2 - :)<struct tag_errno,int> errno_info; //(1) class my_error: public boost::(:link - 1 - - 0 - - -25 - - - 2 - :), public std::exception { }; //(2) void f() { throw my_error() << errno_info(errno); //(3) } @] First, we instantiate the (:link - 1 - - 0 - - -12 - - - 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 - - -25 - - - 2 - :). Finally, (3) illustrates how the typedef from (1) can be used with (:link - 1 - - 0 - - -11 - - - 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 - - -5 - - - 2 - :)<errno_info>(x) ) std::cerr << "Error code: " << *err; } }@] The (:link - 1 - - 0 - - -5 - - - 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 - - -36 - - - - 37 - 2 - (:auto !!!:) When you catch an exception, you can call (:link - 1 - - 0 - - -31 - - - 2 - :) to get an (:link - 1 - - 0 - - -10 - - - 2 - :) object: [@#include <(:link - 1 - - 0 - - -16 - - - 2 - :)> #include <boost/thread.hpp> #include <boost/bind.hpp> void do_work(); //throws cloning-enabled boost::(:link - 1 - - 0 - - -25 - - - 2 - :)s void worker_thread( boost::(:link - 1 - - 0 - - -10 - - - 2 - :) & error ) { try { do_work(); error = boost::(:link - 1 - - 0 - - -10 - - - 2 - :)(); } catch( ... ) { error = boost::(:link - 1 - - 0 - - -31 - - - 2 - :)(); } }@] In the above example, note that (:link - 1 - - 0 - - -31 - - - 2 - :) captures the original type of the exception object. The exception can be thrown again using the (:link - 1 - - 0 - - -7 - - - 2 - :) function: [@// ...continued void work() { boost::(:link - 1 - - 0 - - -10 - - - 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 - - -7 - - - 2 - :)(error); }@] Note that (:link - 1 - - 0 - - -31 - - - 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 - - -10 - - - 2 - :) points to an instance of std::bad_alloc, or * if (:link - 1 - - 0 - - -38 - - - 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 - - -10 - - - 2 - :) points to an instance of (:link - 1 - - 0 - - -37 - - - 2 - :). Regardless, the use of (:link - 1 - - 0 - - -31 - - - 2 - :) and (:link - 1 - - 0 - - -7 - - - 2 - :) in the above examples is well-formed. - - - - - 0 - - -37 + -41 @@ -6095,7 +6121,7 @@ 0 - -10 + -6 2 @@ -6104,216 +6130,13 @@ 0 - -31 + -9 2 :). - - - 0 - - -38 - - - - 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 - - -10 - - - 2 - :) support in Boost Exception. For example: [@class my_exception: public std::exception { }; .... throw boost::(:link - 1 - - 0 - - -38 - - - 2 - :)(my_exception());@] Unless (:link - 1 - - 0 - - -38 - - - 2 - :) is called at the time an exception object is used in a throw-expression, an attempt to copy it using (:link - 1 - - 0 - - -31 - - - 2 - :) may return an (:link - 1 - - 0 - - -10 - - - 2 - :) which refers to an instance of (:link - 1 - - 0 - - -37 - - - 2 - :). See (:link - 1 - - 0 - - -31 - - - 2 - :) for details. !!!!Note: Instead of using the throw keyword directly, it is preferable to call boost::(:link - 1 - - 0 - - -43 - - - 2 - :). This is guaranteed to throw an exception that derives from boost::(:link - 1 - - 0 - - -25 - - - 2 - :) and supports the (:link - 1 - - 0 - - -10 - - - 2 - :) functionality. - - - - - 0 - - -39 - - - - 0 - - - - - 0 - - -40 - - - - 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 - - -25 - - - 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 - - -25 - - - 2 - :). The T sub-object is initialized from x by the T copy constructor. !!!!Throws: Nothing. - - - - - 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 - - -38 - - - 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 - - -43 - - - 2 - :) are guaranteed to derive from boost::(:link - 1 - - 0 - - -25 - - - 2 - :) and to support cloning. (:include - 1 - - 0 - - -8 - - - 2 - :) (:include - 1 - - 0 - - -36 - - - 2 - :) - - 0 @@ -6325,86 +6148,6 @@ 0 - - - 0 - - -43 - - - - 13 - 2 - (:auto !!!:) (:include synopsis:) !!!!Requirements: E must derive publicly from std::exception. !!!!Effects: * If BOOST_NO_EXCEPTIONS is not defined, boost::(:link - 1 - - 0 - - -43 - - - 2 - :)(e) is equivalent to throw boost::(:link - 1 - - 0 - - -38 - - - 2 - :)(boost::(:link - 1 - - 0 - - -40 - - - 2 - :)(e)), unless BOOST_EXCEPTION_DISABLE is defined, in which case boost::(:link - 1 - - 0 - - -43 - - - 2 - :)(e) is equivalent to throw e; * If BOOST_NO_EXCEPTIONS is defined, the function is left undefined, and the user is expected to supply an appropriate definition. Callers of - 1 - - 0 - - -43 - - - 2 - are allowed to assume that the function never returns; therefore, if the user-defined - 1 - - 0 - - -43 - - - 2 - returns, the behavior is undefined. - - - - - 0 - - -44 - - - - 1 - 2 - (:auto !!:) !!!Synopsis (:include synopsis:) - - @@ -6412,13 +6155,13 @@ throws - 49 + 47 reno_layer - 40 + 38 0 @@ -6605,7 +6348,9 @@ - 0 + 1 + 2 + !!!!Throws: std::bad_alloc, or any exception emitted by T1..TN copy constructor. @@ -6616,9 +6361,7 @@ - 1 - 2 - !!!!Throws: std::bad_alloc, or any exception emitted by T1..TN copy constructor. + 0 @@ -6841,28 +6584,6 @@ 0 - - - 0 - - -43 - - - - 0 - - - - - 0 - - -44 - - - - 0 - - @@ -6870,13 +6591,13 @@ synopsis - 50 + 48 reno_layer - 40 + 38 0 @@ -6885,18 +6606,9 @@ - 3 + 1 2 - `#include < - 1 - - 0 - - -44 - - - 2 - > [@namespace boost { (:include decl pre_indent="4":) }@] + [@(:include api:)@] @@ -6914,7 +6626,7 @@ 0 - -16 + -30 2 @@ -6929,18 +6641,7 @@ - 3 - 2 - `#include <(:link - 1 - - 0 - - -16 - - - 2 - :)> [@namespace boost { (:include decl pre_indent="4":) }@] + 0 @@ -6951,7 +6652,18 @@ - 0 + 3 + 2 + [@#include <(:link + 1 + + 0 + + -16 + + + 2 + :)> #include <exception> namespace boost { (:include api pre_indent="4":) }@] @@ -6962,9 +6674,18 @@ - 1 + 3 2 - [@#include <boost/tuple/tuple.hpp> namespace boost { (:include api pre_indent="4":) }@] + `#include <(:link + 1 + + 0 + + -30 + + + 2 + :)> [@namespace boost { (:include decl pre_indent="4":) }@] @@ -6975,18 +6696,7 @@ - 3 - 2 - `#include <(:link - 1 - - 0 - - -16 - - - 2 - :)> [@namespace boost { (:include decl pre_indent="4":) }@] + 0 @@ -7004,7 +6714,7 @@ 0 - -30 + -12 2 @@ -7021,16 +6731,16 @@ 3 2 - `#include <(:link + [@#include <(:link 1 0 - -30 + -16 2 - :)> [@namespace boost { (:include def pre_indent="4":) }@] + :)> #include <boost/current_function.hpp> #include <boost/shared_ptr.hpp> namespace boost { (:include api pre_indent="4":) }@] @@ -7041,18 +6751,9 @@ - 3 + 1 2 - [@#include <(:link - 1 - - 0 - - -23 - - - 2 - :)> namespace boost { (:include api pre_indent="4":) }@] + [@#include <boost/shared_ptr.hpp> namespace boost { (:include api pre_indent="4":) }@] @@ -7063,9 +6764,18 @@ - 1 + 3 2 - [@namespace boost { (:include api pre_indent="4":) }@] + `#include <(:link + 1 + + 0 + + -30 + + + 2 + :)> [@namespace boost { (:include decl pre_indent="4":) }@] @@ -7087,18 +6797,9 @@ - 3 + 1 2 - [@#include <(:link - 1 - - 0 - - -23 - - - 2 - :)> namespace boost { (:include api pre_indent="4":) }@] + [@namespace boost { (:include api pre_indent="4":) }@] @@ -7120,18 +6821,9 @@ - 3 + 1 2 - [@#include <(:link - 1 - - 0 - - -23 - - - 2 - :)> namespace boost { (:include api pre_indent="4":) }@] + [@namespace boost { (:include api pre_indent="4":) }@] @@ -7142,7 +6834,18 @@ - 0 + 3 + 2 + `#include <(:link + 1 + + 0 + + -12 + + + 2 + :)> [@namespace boost { (:include decl pre_indent="4":) }@] @@ -7153,27 +6856,7 @@ - 5 - 2 - [@#include <(:link - 1 - - 0 - - -13 - - - 2 - :)> #include <(:link - 1 - - 0 - - -18 - - - 2 - :)> #include <exception> namespace boost { (:include api pre_indent="4":) }@] + 0 @@ -7183,19 +6866,6 @@ -21 - - 1 - 2 - [@(:include api:)@] - - - - - 0 - - -22 - - 5 2 @@ -7204,7 +6874,7 @@ 0 - -9 + -28 2 @@ -7213,13 +6883,35 @@ 0 - -22 + -21 2 decl pre_indent="4":) }@] + + + 0 + + -22 + + + + 3 + 2 + `#include <(:link + 1 + + 0 + + -16 + + + 2 + :)> [@namespace boost { (:include def pre_indent="4":) }@] + + 0 @@ -7228,9 +6920,7 @@ - 1 - 2 - [@namespace boost { (:include api pre_indent="4":) }@] + 0 @@ -7252,18 +6942,7 @@ - 3 - 2 - `#include <(:link - 1 - - 0 - - -23 - - - 2 - :)> [@namespace boost { (:include def pre_indent="4":) }@] + 0 @@ -7274,18 +6953,7 @@ - 3 - 2 - `#include <(:link - 1 - - 0 - - -30 - - - 2 - :)> [@namespace boost { (:include decl pre_indent="4":) }@] + 0 @@ -7309,7 +6977,7 @@ 1 2 - [@#include <exception> namespace boost { (:include api pre_indent="4":) }@] + [@#include <boost/tuple/tuple.hpp> namespace boost { (:include api pre_indent="4":) }@] @@ -7338,11 +7006,11 @@ 0 - -23 + -16 2 - :)> #include <boost/current_function.hpp> #include <boost/shared_ptr.hpp> namespace boost { (:include api pre_indent="4":) }@] + :)> namespace boost { (:include api pre_indent="4":) }@] @@ -7355,7 +7023,7 @@ 3 2 - `#include <(:link + `#include < 1 0 @@ -7364,7 +7032,7 @@ 2 - :)> [@namespace boost { (:include decl pre_indent="4":) }@] + > [@namespace boost { (:include decl pre_indent="4":) }@] @@ -7375,7 +7043,9 @@ - 0 + 1 + 2 + [@#include <exception> namespace boost { (:include api pre_indent="4":) }@] @@ -7393,7 +7063,7 @@ 0 - -28 + -30 2 @@ -7408,7 +7078,18 @@ - 0 + 3 + 2 + `#include <(:link + 1 + + 0 + + -8 + + + 2 + :)> [@namespace boost { (:include decl pre_indent="4":) }@] @@ -7430,7 +7111,18 @@ - 0 + 3 + 2 + `#include <(:link + 1 + + 0 + + -32 + + + 2 + :)> [@namespace boost { (:include decl pre_indent="4":) }@] @@ -7443,7 +7135,7 @@ 3 2 - `#include <(:link + `#include < 1 0 @@ -7452,7 +7144,7 @@ 2 - :)> [@namespace boost { (:include decl pre_indent="4":) }@] + > [@namespace boost { (:include decl pre_indent="4":) }@] @@ -7465,7 +7157,7 @@ 3 2 - `#include <(:link + `#include < 1 0 @@ -7474,7 +7166,7 @@ 2 - :)> [@namespace boost { (:include decl pre_indent="4":) }@] + > [@namespace boost { (:include decl pre_indent="4":) }@] @@ -7485,7 +7177,18 @@ - 0 + 3 + 2 + `#include <(:link + 1 + + 0 + + -12 + + + 2 + :)> [@namespace boost { (:include def pre_indent="4":) }@] @@ -7496,18 +7199,7 @@ - 3 - 2 - `#include <(:link - 1 - - 0 - - -18 - - - 2 - :)> [@namespace boost { (:include decl pre_indent="4":) }@] + 0 @@ -7518,7 +7210,18 @@ - 0 + 3 + 2 + `#include <(:link + 1 + + 0 + + -30 + + + 2 + :)> [@namespace boost { (:include decl pre_indent="4":) }@] @@ -7532,41 +7235,6 @@ 0 - - - 0 - - -43 - - - - 3 - 2 - `#include <(:link - 1 - - 0 - - -20 - - - 2 - :)> [@namespace boost { (:include decl pre_indent="4":) }@] - - - - - 0 - - -44 - - - - 1 - 2 - [@#include <boost/shared_ptr.hpp> namespace boost { (:include api pre_indent="4":) }@] - - @@ -7577,14 +7245,14 @@ - 51 + 49 reno_context_map - 40 + 38 -5 @@ -7699,17 +7367,11 @@ -42 - - -43 - - - -44 - - 40 + 38 @@ -7741,7 +7403,7 @@ - -41 + -24 @@ -7758,7 +7420,7 @@ - -15 + -17 @@ -7775,7 +7437,7 @@ - -39 + -20 @@ -7799,55 +7461,7 @@ - -28 - - - - - - - 1 - EE6990C848AF26755A4A3D327073CC8122B3D2C0D00DA2B0F33E4D8805ACB911 - 465181157 - 11204 - 323 - - - - - - 0 - ../../../../boost/exception_ptr.hpp - 0 - 0 - - - - -16 - - - - - - - 1 - 4DC5257313CB18D2FB860A51C10E0CA1F26C0130EF7884BEA62F2B9202796B14 - 1113469887 - 1807 - 91 - - - - - - 0 - ../../../../boost/throw_exception.hpp - 0 - 0 - - - - -20 + -32 @@ -7871,7 +7485,7 @@ - -36 + -23 @@ -7899,7 +7513,7 @@ - -33 + -36 @@ -7923,55 +7537,7 @@ - -29 - - - - - - - 1 - 0E1089A09F6986E4D1393EC178D2F0A5CA5CAFCF9D2F4B96AEACA14E95ED2B38 - 717228119 - 4814 - 323 - - - - - - 0 - ../../../../boost/exception/info.hpp - 0 - 0 - - - - -30 - - - - - - - 1 - 5373E336DC4892A41D31694BCA1146382FC3137819A04689CA1F9FFAF1CFAB3B - 4050491732 - 466 - 307 - - - - - - 0 - ../../example/cloning_1.cpp - 0 - 0 - - - - -8 + -15 @@ -7979,14 +7545,14 @@ 2 - F126A8CB9244BC9DE8BD1D89B47453028CEC694D7EF40BB4474018FA6F056E4C - 3161833426 - 1527 + 1B9769136D8D43898453AE9747BDC9FD1833F7D620D9083FB9A38C43804FCF35 + 2690633675 + 1570 504 8E724ECF48FB144FBAC1B7F27AE077812CDA75F1A05A08F951DD7F9D54863425 4144026351 676 - 845 + 888 @@ -7999,135 +7565,7 @@ - -5 - - - - - - - 2 - B5B48CB1FFAE29EB28A92336685CBB1DCD53090C7A889BC99659CF306129265E - 3608148048 - 2740 - 413 - 242B7AD2C634B20F99722AD5EF05F11109D14C11A2F7EB2D794D5E01B8BBCBCC - 1650706135 - 1707 - 868 - - - - - - 0 - ../../../../boost/exception/exception.hpp - 0 - 0 - - - - -25 - - - - - - - 4 - B5B48CB1FFAE29EB28A92336685CBB1DCD53090C7A889BC99659CF306129265E - 3608148048 - 2740 - 413 - 242B7AD2C634B20F99722AD5EF05F11109D14C11A2F7EB2D794D5E01B8BBCBCC - 1650706135 - 1707 - 868 - 85EE1980CFB24E054EDB1B3BDFA61FD4D65AD0EF248A1A42D4C2552700459327 - 2238151539 - 428 - 401 - AD3F339F7126003907BCBDB3EF846FCACA895132E1100D202DA67D2B7846EE65 - 3032091776 - 60 - 369 - - - - - - 0 - ../../../../boost/exception/exception.hpp - 0 - 0 - - - - -34 - - - - - - - 3 - B5B48CB1FFAE29EB28A92336685CBB1DCD53090C7A889BC99659CF306129265E - 3608148048 - 2740 - 413 - 242B7AD2C634B20F99722AD5EF05F11109D14C11A2F7EB2D794D5E01B8BBCBCC - 1650706135 - 1707 - 868 - 9043738F71C025266AC2C0A2BEDC9DA3579175BE5BA672E59D136559D4269190 - 317401972 - 164 - 57 - - - - - - 0 - ../../../../boost/exception/exception.hpp - 0 - 0 - - - - -32 - - - - - - - 3 - B5B48CB1FFAE29EB28A92336685CBB1DCD53090C7A889BC99659CF306129265E - 3608148048 - 2740 - 413 - 242B7AD2C634B20F99722AD5EF05F11109D14C11A2F7EB2D794D5E01B8BBCBCC - 1650706135 - 1707 - 868 - BACD79DFB4C710C1A67687FC6344DF2251E2379613C2DF5B2729B2CD37E24EA3 - 458367129 - 154 - 245 - - - - - - 0 - ../../../../boost/exception/exception.hpp - 0 - 0 - - - - -27 + -38 @@ -8151,7 +7589,7 @@ - -26 + -19 @@ -8159,71 +7597,23 @@ 1 - ABA5BB25BAD31B070056FA9595F73F6F0E7F2A1D36D8A2ECDEBE6A2872E0E966 - 980578466 - 2271 - 323 + FC79C34F05028DB122154492FBB2B8F0EB3EFDCAA30A48C30E3A7E7EBD67E672 + 4099021562 + 1741 + 91 0 - ../../../../boost/exception/enable_error_info.hpp + ../../../../boost/throw_exception.hpp 0 0 - -18 - - - - - - - 1 - 3D62495D55F856D594F8BCFD89F283A1B55638AE7B7609C8EFE4A84371EF6867 - 1383536793 - 2830 - 323 - - - - - - 0 - ../../../../boost/exception/exception.hpp - 0 - 0 - - - - -23 - - - - - - - 1 - 285A4D5FBF3D13C5729697E61680A07DC52493A4A964D54F6B21FDAA35A3AC70 - 3873809619 - 448 - 323 - - - - - - 0 - ../../../../boost/exception.hpp - 0 - 0 - - - - -21 + -8 @@ -8234,7 +7624,7 @@ 78F37A2801CADB066084578244BC93958EAD33507F30C07353EA7D161FFBF973 2089604779 11016 - 511 + 532 F87D7E0321BDDAE23D5A6667CB12116411468AEC54E3B35FB9C8CA94BFECA41E 1149388739 296 @@ -8250,6 +7640,90 @@ 0 + + -33 + + + + + + + 2 + 78F37A2801CADB066084578244BC93958EAD33507F30C07353EA7D161FFBF973 + 2089604779 + 11016 + 532 + CCBCB5EADA66B82DFC7650F467A0E51CA5B10EFCD3729EDFB038A1C5DCB5722D + 1007135774 + 701 + 3933 + + + + + + 0 + ../../../../boost/exception_ptr.hpp + 0 + 0 + + + + -41 + + + + + + + 2 + 78F37A2801CADB066084578244BC93958EAD33507F30C07353EA7D161FFBF973 + 2089604779 + 11016 + 532 + 7890935423C731BD8E7DE2820DF7E85C72126B2EAB9A45B0AAFA5749DD1A9D57 + 2497085175 + 2528 + 8066 + + + + + + 0 + ../../../../boost/exception_ptr.hpp + 0 + 0 + + + + -9 + + + + + + + 2 + 78F37A2801CADB066084578244BC93958EAD33507F30C07353EA7D161FFBF973 + 2089604779 + 11016 + 532 + C84057F7B3954843F5360E9764B35DC5EB1D8ED65CA9F1B6B633D95B417E3AA9 + 1591300832 + 2322 + 1609 + + + + + + 0 + ../../../../boost/exception_ptr.hpp + 0 + 0 + + -6 @@ -8262,91 +7736,7 @@ 78F37A2801CADB066084578244BC93958EAD33507F30C07353EA7D161FFBF973 2089604779 11016 - 511 - CCBCB5EADA66B82DFC7650F467A0E51CA5B10EFCD3729EDFB038A1C5DCB5722D - 1007135774 - 701 - 3933 - - - - - - 0 - ../../../../boost/exception_ptr.hpp - 0 - 0 - - - - -37 - - - - - - - 2 - 78F37A2801CADB066084578244BC93958EAD33507F30C07353EA7D161FFBF973 - 2089604779 - 11016 - 511 - 7890935423C731BD8E7DE2820DF7E85C72126B2EAB9A45B0AAFA5749DD1A9D57 - 2497085175 - 2528 - 8066 - - - - - - 0 - ../../../../boost/exception_ptr.hpp - 0 - 0 - - - - -31 - - - - - - - 2 - 78F37A2801CADB066084578244BC93958EAD33507F30C07353EA7D161FFBF973 - 2089604779 - 11016 - 511 - C84057F7B3954843F5360E9764B35DC5EB1D8ED65CA9F1B6B633D95B417E3AA9 - 1591300832 - 2322 - 1609 - - - - - - 0 - ../../../../boost/exception_ptr.hpp - 0 - 0 - - - - -10 - - - - - - - 2 - 78F37A2801CADB066084578244BC93958EAD33507F30C07353EA7D161FFBF973 - 2089604779 - 11016 - 511 + 532 4B6ED02EA5B5A3B326838794C37ED01C5DC3E8D89FA78E62B9F7A0C78D4DB6FD 2715164371 116 @@ -8363,7 +7753,87 @@ - -7 + -14 + + + + + + + 2 + F7B9CDADF285065E8CB1F11340DFC40B3006D9CE7EE0D5291C08A78548499089 + 3958534298 + 4381 + 775 + C552A651ADC0B9506373CC1A78CB4D7D0342BC99BD24F2F2B8CAD3B555037FE7 + 141521629 + 382 + 3993 + + + + + + 0 + ../../../../boost/exception/info.hpp + 0 + 0 + + + + -11 + + + + + + + 2 + F7B9CDADF285065E8CB1F11340DFC40B3006D9CE7EE0D5291C08A78548499089 + 3958534298 + 4381 + 775 + CF9032A2CB14D66F0F004C0AFDE2BB94321F405D6D95AC46EC5350AB4843A4F1 + 1073329133 + 715 + 243 + + + + + + 0 + ../../../../boost/exception/info.hpp + 0 + 0 + + + + -39 + + + + + + + 1 + 3129727981C71FD1C5ED95F4B0A4D4B67DD804FC601C0B5EC13BE01D7CD8BA8A + 2918124076 + 4833 + 323 + + + + + + 0 + ../../../../boost/exception/info.hpp + 0 + 0 + + + + -12 @@ -8374,7 +7844,7 @@ 612485E090D76B2CC43C1A296F813075BA165C2496082E78E939F10B3DA8E09A 1770110914 587 - 1291 + 1225 60F3F48B87487FA6E0D2CCC0750AF435CC92CEC80BBBF609AC71295031AADD0D 3929437933 361 @@ -8391,7 +7861,7 @@ - -43 + -34 @@ -8415,63 +7885,31 @@ - -14 + -18 - 2 - 040AF162DE93F61F89B118788A02CEA76E19F2F9D66E8FC4D4F0B66C6C4CDCA6 - 1391149574 - 2137 - 457 - B752D5E37E6F1F71AD491E0DEF2C7D7C3ED4C9E78F01443EC408B751C83D521F - 2684451358 - 412 - 1719 + 1 + EB34EBE3F1C68865DE1F02FD88687E670BAE694282DAC893A537F30DDCD57FA3 + 3701809375 + 11225 + 323 0 - ../../../../boost/exception/enable_error_info.hpp + ../../../../boost/exception_ptr.hpp 0 0 - -40 - - - - - - - 2 - 506A4FDA868A2B69175F6B3CF0FE18C9A87901D397934D3DE90A261C1F8409AA - 945649359 - 1603 - 367 - DF9EA87B0140AACF4422F1B76F6A6A409C15F32858BBBA85A35981A824C56BA9 - 1137981799 - 192 - 1405 - - - - - - 0 - ../../../../boost/exception/enable_current_exception.hpp - 0 - 0 - - - - -38 + -30 @@ -8495,7 +7933,7 @@ - -9 + -28 @@ -8503,79 +7941,23 @@ 1 - D5ABFC95B9593A7346BF1C09827808A9AE95C161469B25D50305FCD7AC1A6FC2 - 556762679 - 1647 - 323 + 4ED9709788BBAB4DE7CF336561606B8C0B41F70877A3395F4EE026F4AEB66CC6 + 743998427 + 409 + 307 0 - ../../../../boost/exception/enable_current_exception.hpp + ../../example/cloning_1.cpp 0 0 - -13 - - - - - - - 2 - 353C90D92FFBB5A5616E5A9FAA19868B8234159FB714A1631B4E415B941DC9D3 - 3466161861 - 4362 - 775 - C552A651ADC0B9506373CC1A78CB4D7D0342BC99BD24F2F2B8CAD3B555037FE7 - 141521629 - 382 - 3974 - - - - - - 0 - ../../../../boost/exception/info.hpp - 0 - 0 - - - - -11 - - - - - - - 2 - 353C90D92FFBB5A5616E5A9FAA19868B8234159FB714A1631B4E415B941DC9D3 - 3466161861 - 4362 - 775 - CF9032A2CB14D66F0F004C0AFDE2BB94321F405D6D95AC46EC5350AB4843A4F1 - 1073329133 - 715 - 243 - - - - - - 0 - ../../../../boost/exception/info.hpp - 0 - 0 - - - - -12 + -29 @@ -8599,7 +7981,7 @@ - -24 + -26 @@ -8623,7 +8005,7 @@ - -19 + -10 @@ -8631,9 +8013,9 @@ 1 - E6CCBC6F6FEAEF1E95E23AFC7A7268DB35549B5951BE08BC7B4429B7490195ED - 1344405806 - 1708 + 985ACA12BA0E9D0359ED1DF17DB5608A27B8FD5B083E40B39D838B75C58B57DD + 1422943545 + 7756 323 @@ -8641,13 +8023,189 @@ 0 - ../../../../boost/exception/get_error_info.hpp + ../../../../boost/exception/exception.hpp 0 0 - -44 + -16 + + + + + + + 2 + 985ACA12BA0E9D0359ED1DF17DB5608A27B8FD5B083E40B39D838B75C58B57DD + 1422943545 + 7756 + 323 + B1D44CB4701E01A9F172883CC04BBD5A0173410AF3C6BEFAF711FD09F918954B + 3552071431 + 1239 + 3128 + + + + + + 0 + ../../../../boost/exception/exception.hpp + 0 + 0 + + + + -22 + + + + + + + 3 + 985ACA12BA0E9D0359ED1DF17DB5608A27B8FD5B083E40B39D838B75C58B57DD + 1422943545 + 7756 + 323 + B1D44CB4701E01A9F172883CC04BBD5A0173410AF3C6BEFAF711FD09F918954B + 3552071431 + 1239 + 3128 + 9043738F71C025266AC2C0A2BEDC9DA3579175BE5BA672E59D136559D4269190 + 317401972 + 164 + 57 + + + + + + 0 + ../../../../boost/exception/exception.hpp + 0 + 0 + + + + -40 + + + + + + + 3 + 985ACA12BA0E9D0359ED1DF17DB5608A27B8FD5B083E40B39D838B75C58B57DD + 1422943545 + 7756 + 323 + B1D44CB4701E01A9F172883CC04BBD5A0173410AF3C6BEFAF711FD09F918954B + 3552071431 + 1239 + 3128 + B805EBBE01B97F9E8E0306870AFA083BD42C2F04A72EE945E4D2161860B720AB + 269617501 + 51 + 245 + + + + + + 0 + ../../../../boost/exception/exception.hpp + 0 + 0 + + + + -25 + + + + + + + 2 + 985ACA12BA0E9D0359ED1DF17DB5608A27B8FD5B083E40B39D838B75C58B57DD + 1422943545 + 7756 + 323 + 17E691632123EB67BA67D590B49EB8094F462F5A10A66A1C5438E1867EF1478E + 765399792 + 77 + 4369 + + + + + + 0 + ../../../../boost/exception/exception.hpp + 0 + 0 + + + + -7 + + + + + + + 2 + 985ACA12BA0E9D0359ED1DF17DB5608A27B8FD5B083E40B39D838B75C58B57DD + 1422943545 + 7756 + 323 + DF9EA87B0140AACF4422F1B76F6A6A409C15F32858BBBA85A35981A824C56BA9 + 1137981799 + 192 + 7476 + + + + + + 0 + ../../../../boost/exception/exception.hpp + 0 + 0 + + + + -31 + + + + + + + 2 + 985ACA12BA0E9D0359ED1DF17DB5608A27B8FD5B083E40B39D838B75C58B57DD + 1422943545 + 7756 + 323 + B4D37C317A3B45825DDA1A8C8B1CE71CC2E530D15090D05995FCBEC4247F49C4 + 2742768198 + 258 + 5757 + + + + + + 0 + ../../../../boost/exception/exception.hpp + 0 + 0 + + + + -37 @@ -8675,7 +8233,7 @@ - -22 + -21 @@ -8699,7 +8257,7 @@ - -35 + -27 @@ -8723,7 +8281,55 @@ - -17 + -35 + + + + + + + 1 + 6AF18E00A3BB3D35F83A4F81619F7BD079E08E2BF3F4CE6F218045A2DF9701FA + 348421341 + 341 + 323 + + + + + + 0 + ../../../../boost/exception.hpp + 0 + 0 + + + + -5 + + + + + + + 1 + DDE2FCDD8E72B54F251AF3A5386B67741519415D947D3F22ECA0EE51BB70FEFE + 780144935 + 1751 + 323 + + + + + + 0 + ../../../../boost/exception/get_error_info.hpp + 0 + 0 + + + + -13 @@ -8733,14 +8339,14 @@ - 52 + 50 tag_index - 41 + 40 1 @@ -8754,7 +8360,7 @@ -5 - error_info free function + @@ -8763,7 +8369,7 @@ -6 - exception_ptr free function + type @@ -8772,7 +8378,7 @@ -7 - exception_ptr free function + function @@ -8781,7 +8387,7 @@ -8 - noalso noindex tutorial + @@ -8790,7 +8396,7 @@ -9 - + exception_ptr free function @@ -8799,7 +8405,7 @@ -10 - type + diagnostic_information tutorial @@ -8817,7 +8423,7 @@ -12 - type + @@ -8826,7 +8432,7 @@ -13 - + error_info @@ -8835,7 +8441,7 @@ -14 - + exception_ptr free function @@ -8862,7 +8468,7 @@ -17 - noalso noindex tutorial + tutorial @@ -8871,7 +8477,7 @@ -18 - error_info + @@ -8880,7 +8486,7 @@ -19 - diagnostic_information tutorial + @@ -8889,7 +8495,7 @@ -20 - + index noindex @@ -8898,7 +8504,7 @@ -21 - + error_info free function @@ -8907,7 +8513,13 @@ -22 - error_info free function + type + + + + 1 + + @@ -8916,7 +8528,7 @@ -23 - + noalso noindex tutorial @@ -8925,7 +8537,7 @@ -24 - noalso noindex tutorial + tutorial @@ -8934,7 +8546,7 @@ -25 - type + function @@ -8943,7 +8555,7 @@ -26 - + noalso noindex tutorial @@ -8952,7 +8564,7 @@ -27 - function + noalso noindex tutorial @@ -8970,7 +8582,7 @@ -29 - tutorial + noalso noindex tutorial @@ -8997,7 +8609,7 @@ -32 - function + @@ -9006,7 +8618,7 @@ -33 - diagnostic_information free function + exception_ptr free function @@ -9015,7 +8627,7 @@ -34 - function + free function @@ -9033,7 +8645,7 @@ -36 - noalso noindex tutorial + diagnostic_information free function @@ -9042,7 +8654,7 @@ -37 - exception_ptr type + error_info free function @@ -9051,7 +8663,7 @@ -38 - exception_ptr free function + error_info free function @@ -9060,7 +8672,7 @@ -39 - index noindex + type @@ -9069,7 +8681,7 @@ -40 - error_info free function + function @@ -9078,7 +8690,7 @@ -41 - tutorial + exception_ptr type @@ -9089,24 +8701,6 @@ noindex - - - 0 - - -43 - - - free function - - - - 0 - - -44 - - - error_info - diff --git a/doc/throw_exception_hpp.html b/doc/throw_exception_hpp.html index 23f286a..9fbe01f 100644 --- a/doc/throw_exception_hpp.html +++ b/doc/throw_exception_hpp.html @@ -22,8 +22,7 @@

    boost/throw_exception.hpp

    Synopsis

    -
    #include <boost/exception/enable_current_exception.hpp>
    -#include <boost/exception/enable_error_info.hpp>
    +
    #include <boost/exception/exception.hpp>
     #include <exception>
     
     namespace
    diff --git a/doc/tutorial_exception_ptr.html b/doc/tutorial_exception_ptr.html
    index 52c1a63..b698dfa 100644
    --- a/doc/tutorial_exception_ptr.html
    +++ b/doc/tutorial_exception_ptr.html
    @@ -27,8 +27,7 @@
     

    Using enable_current_exception at the Time of the Throw

    Here is how cloning can be enabled in a throw-expression (15.1):

    -
    #include <boost/exception/enable_current_exception.hpp>
    -#include <boost/exception/info.hpp>
    +
    #include <boost/exception/info.hpp>
     #include <stdio.h>
     #include <errno.h>