A string value that contains varying amount of implementation-specific diagnostic information about the passed object:
If E can be statically converted to boost::exception, the returned value contains the string representations of all error_info objects stored in the boost::exception through operator<<, along with other diagnostic information relevant to the exception. If e can be dynamically converted to std::exception, the returned value also contains the what() string.
-
Otherwise, if E can be statically converted std::exception:
if e can be dynamically converted to boost::exception, the returned value is the same as if E could be statically converted to boost::exception;
+
Otherwise, if E can be statically converted to std::exception:
if e can be dynamically converted to boost::exception, the returned value is the same as if E could be statically converted to boost::exception;
otherwise the returned value contains the what() string.
diff --git a/doc/source/boost-exception.reno b/doc/source/boost-exception.reno
index 4e2de7e..9076714 100644
--- a/doc/source/boost-exception.reno
+++ b/doc/source/boost-exception.reno
@@ -53,18 +53,29 @@
- 0
+ 2
+ F7633FDCF6615C0199645701EE6E7ACE5CBCD7A7CF6838573791E91ABB3C09F2
+ 1668435395
+ 1332
+ 501
+ A1F443AF571973A12005D2F7D4AE09A32AAF686FEEAE272EC21512A65EB943E8
+ 3879093659
+ 1300
+ 26
- 1
+ 0
+ ../../../../boost/exception/info_tuple.hpp
+ 0
+ 0
- using virtual inheritance in exception types
+ tuple/operator<<
@@ -91,21 +102,36 @@
- 0
+ 3
+ ABA4CA0D43528F04AA5429024996E398E31EBC5B283E9ACE09A55D50DF5D1961
+ 3606121577
+ 9890
+ 428
+ C908C7F4E8A72C39F05019127BD3345618C0C00CF168EE584E1BD669B6CE062D
+ 706692100
+ 1961
+ 3959
+ DA154372D8C23BD9EDC30005CA7959CE686D198891097A837D006B5222F04DE9
+ 2768248809
+ 143
+ 60
- 1
+ 0
+ ../../../../boost/exception/exception.hpp
+ 0
+ 0
- exception types as simple semantic tags
+ exception::exception
-
+ exception_constructors
@@ -129,18 +155,25 @@
- 0
+ 1
+ ABA4CA0D43528F04AA5429024996E398E31EBC5B283E9ACE09A55D50DF5D1961
+ 3606121577
+ 9890
+ 428
- 1
+ 0
+ ../../../../boost/exception/exception.hpp
+ 0
+ 0
- frequently asked questions
+ boost/exception/exception.hpp
@@ -167,88 +200,83 @@
- 0
+ 1
+ FC684D0DD5A9732B4130F2AB3DB6E0491D0F523E14B7FB738B2019EA2C7F8717
+ 2229778754
+ 631
+ 319
- 1
+ 0
+ ../../example/cloning_2.cpp
+ 0
+ 0
- Motivation
+ cloning and re-throwing an exception
- motivation
+ cloning_and_rethrowing
- 7
- 2
- (:include include:)
(:auto also explicit="
- 1
-
- 0
-
- -6
-
-
- 2
-
- 1
-
- 0
-
- 9
-
- reno_context
-
-
+
+
+
+ 0
+
+ 9
+
+ reno_context
+
+
-
-
+
+
+ 0
+ ../../../../boost/exception/exception.hpp
+ 0
+ 0
+
+
+
+
+ enable_current_exception
+
+
+
+
+
+
+
+
+ 12
-
- 1
-
- 0
-
- -7
-
-
- 2
- ":)
+ (:include include:)
(:auto also:)
@@ -265,28 +293,28 @@
2
- 307034E20863A00923777A60D9495B4076B7F917D5B97203025299060F0833E0
- 3948311309
- 396
- 344
- F8ED2052577830AC0C515EC5932BB14445DD5DA714782281FCDB1776961FECB1
- 3880328768
- 82
- 308
+ AE39C833229D2025795E45693EC41931EF387FA93C636230DBE28F94FAD04760
+ 3442098514
+ 1214
+ 449
+ A27237A743E85C6D6C1E908421AA26DEB9BEFC781D6EE64C31C3DCFBEEF5A4B9
+ 907005134
+ 749
+ 4120
- ../../../../boost/exception/errinfo_file_name.hpp
+ ../../../../boost/exception/detail/error_info_impl.hpp00
- errinfo_file_name
+ error_info
@@ -308,538 +336,6 @@
reno_context
-
-
-
-
- 1
- 2
- (:include include:)
(:auto also:)
-
-
-
-
- 0
-
- 12
-
- reno_context
-
-
-
-
-
- 1
- 2
- (:include include:)
(:auto also:)
-
-
-
-
- 0
-
- 13
-
- reno_context
-
-
-
-
-
- 0
-
-
-
-
- 0
-
- 14
-
- reno_context
-
-
-
-
-
- 1
- 2
- (:include include:)
(:auto also:)
-
-
-
-
- 0
-
- 15
-
- reno_context
-
-
-
-
-
- 1
- 2
- (:include include:)
(:auto also:)
-
-
-
-
- 0
-
- 16
-
- reno_context
-
-
-
-
-
- 0
-
-
-
-
- 0
-
- 17
-
- reno_context
-
-
-
-
-
- 1
- 2
- (:include include:)
----
!!!See Also:
(:pagelist link="backlink" except_tags="exception member noalso" mod="w" fmt="h":)
-
-
-
-
- 0
-
- 18
-
- reno_context
-
-
-
-
-
- 1
- 2
- (:include include:)
(:auto also:)
-
-
-
-
- 0
-
- 19
-
- reno_context
-
-
-
-
-
- 0
-
-
-
-
- 0
-
- 20
-
- reno_context
-
-
-
-
-
- 1
- 2
- (:include include:)
(:auto also:)
-
-
-
-
- 0
-
- 21
-
- reno_context
-
-
-
-
-
- 1
- 2
- (:include include:)
(:auto also:)
-
-
-
-
- 0
-
- 22
-
- reno_context
-
-
-
-
-
- 1
- 2
- (:include include:)
-
-
-
-
- 0
-
- 23
-
- reno_context
-
-
-
- 0
-
- 25
-
- reno_context
-
-
-
-
-
-
- 3
- 892ACAF5EB4C2D93ECC578359C6CF16C5DDB159571B19B7EE11CC84ED6828258
- 116592015
- 1062
- 344
- 5D5B59DE2E0728CF19BDD22BF7DE3FADAD08B422B577E0705508F6D9FB6707C7
- 387228411
- 623
- 433
- 98B33BE76679E3A4831241335CD5DFF6F634429F36BABF96C1D4DC2296C5ECC5
- 1584672077
- 208
- 259
-
-
-
-
-
- 0
- ../../../../boost/exception/detail/error_info_impl.hpp
- 0
- 0
-
-
-
-
- error_info::value
-
-
-
-
-
-
-
-
- 1
- 2
- (:include include:)
(:auto also:)
-
-
-
-
- 0
-
- 26
-
- reno_context
-
-
-
-
-
-
- 2
- 15CF5BD93D20D62D659C11A69330B06E408398EA488BEF1FD45437AADCDB424E
- 1232553666
- 214
- 345
- 6262783847165581298EC9500031E6B7A97B2751A9CEF67C4794121A78142C58
- 3676119191
- 90
- 118
-
-
-
-
-
- 0
- ../../../../boost/exception/errinfo_file_handle.hpp
- 0
- 0
-
-
-
-
- errinfo_file_handle
-
-
-
-
-
-
-
-
- 1
- 2
- (:include include:)
(:auto also:)
-
-
-
-
- 0
-
- 27
-
- reno_context
-
-
-
-
-
-
- 0
-
-
-
-
-
- 1
-
-
-
-
- transporting of exceptions between threads
-
-
- tutorial_exception_ptr
-
-
-
-
-
- 1
- 2
- (:include include:)
(:auto also:)
-
-
-
-
- 0
-
- 28
-
- reno_context
-
-
-
-
-
-
- 2
- D6841F0363736F4F8554C35ADD6A9D160C4C49AF6F64FD9E259BC154F779866F
- 1169632142
- 9204
- 323
- 17E691632123EB67BA67D590B49EB8094F462F5A10A66A1C5438E1867EF1478E
- 765399792
- 77
- 5929
-
-
-
-
-
- 0
- ../../../../boost/exception/exception.hpp
- 0
- 0
-
-
-
-
- exception::~exception
-
-
- exception_destructor
-
-
-
-
-
- 1
- 2
- (:include include:)
(:auto also:)
-
-
-
-
- 0
-
- 29
-
- reno_context
-
-
-
-
-
-
- 2
- CEB9022E39DA32E612158FF553D383E13D300D1202CEB754E28B716040EFC414
- 1114955626
- 11770
- 723
- AF894656AC8CED6190EEEE08B051DBF2106A393E313BB5BB1C17D4808EFED761
- 1496105832
- 1753
- 429
-
-
-
-
-
- 0
- ../../../../boost/exception_ptr.hpp
- 0
- 0
-
-
-
-
- exception_ptr
-
-
-
-
-
-
-
-
- 1
- 2
- (:include include:)
(:auto also:)
-
-
-
-
- 0
-
- 30
-
- reno_context
-
-
-
-
-
-
- 2
- CEB9022E39DA32E612158FF553D383E13D300D1202CEB754E28B716040EFC414
- 1114955626
- 11770
- 723
- B20A3D4631F3B2415EED1888B65FA33D7AED20F86BE196159D9297AAED115787
- 3293519666
- 117
- 11169
-
-
-
-
-
- 0
- ../../../../boost/exception_ptr.hpp
- 0
- 0
-
-
-
-
- rethrow_exception
-
-
-
-
-
-
-
-
- 1
- 2
- (:include include:)
(:auto also:)
-
-
-
-
- 0
-
- 31
-
- reno_context
-
-
-
-
-
-
- 3
- 892ACAF5EB4C2D93ECC578359C6CF16C5DDB159571B19B7EE11CC84ED6828258
- 116592015
- 1062
- 344
- 5D5B59DE2E0728CF19BDD22BF7DE3FADAD08B422B577E0705508F6D9FB6707C7
- 387228411
- 623
- 433
- 38B566F2C6678B8724D18086A6F76E077DC2ADC1BB69A4B83BF0A2C3B7D31B50
- 2218658069
- 31
- 143
-
-
-
-
-
- 0
- ../../../../boost/exception/detail/error_info_impl.hpp
- 0
- 0
-
-
-
-
- error_info::value_type
-
-
-
-
-
-
-
-
- 1
- 2
- (:include include:)
(:auto also:)
-
-
-
-
- 0
-
- 32
-
- reno_context
-
-
-
-
-
-
- 1
- 66E0BD9724AB83012F5B35D887E3313960DC0E69B94E0C03CA1F3C85A0D84A5C
- 2883671483
- 311
- 306
-
-
-
-
-
- 0
- ../../example/logging.cpp
- 0
- 0
-
-
-
-
- diagnostic information
-
-
- tutorial_diagnostic_information
-
-
-
-
-
- 1
- 2
- (:include include:)
(:auto also:)
-
-
-
-
- 0
-
- 33
-
- reno_context
-
-
-
-
-
-
- 1
- DB156E6A8ACB9FB90C8FB110FC25A5FEB14A619F82EEC47FF913373592E5CC3E
- 240075319
- 6209
- 412
-
-
-
-
-
- 0
- ../../example/example_io.cpp
- 0
- 0
-
-
-
-
- diagnostic_information example
-
-
-
-
-
-
-
-
- 0
-
-
-
-
- 0
-
- 34
-
- reno_context
-
-
-
-
-
-
- 1
- 66EFC83C830F0B00D0C9399B475099072E2674B3C694F9152645A33E3D7AC303
- 561674611
- 417
- 323
-
-
-
-
-
- 0
- ../../../../boost/exception/errinfo_file_name.hpp
- 0
- 0
-
-
-
-
- boost/exception/errinfo_file_name.hpp
-
-
-
-
-
-
-
-
- 1
- 2
- (:include include:)
(:auto also:)
-
-
-
-
- 0
-
- 35
-
- reno_context
-
-
-
-
-
-
- 1
- A14B5595A6DD87562792D402B48500AAD71FA1ABD75C14EDF089FCC7318CBB9B
- 3469762901
- 468
- 227
-
-
-
-
-
- 0
- ../../../../boost/exception/current_exception_cast.hpp
- 0
- 0
-
-
-
-
- boost/exception/current_exception_cast.hpp
-
-
-
-
-
-
-
-
- 1
- 2
- (:include include:)
(:auto also:)
-
-
-
-
- 0
-
- 36
-
- reno_context
-
-
-
-
-
-
- 2
- AEDDD2FA4F47CEBD99444F1054D85AB8132748CF38D6634503D62E9C8AD5FE68
- 1378637100
- 292
- 368
- 892C0239798B84BA2E80DAA70BBEB7BE0B6086A1D0829D0E1937EC1D19E3FF20
- 3349881047
- 89
- 197
-
-
-
-
-
- 0
- ../../../../boost/exception/errinfo_api_function.hpp
- 0
- 0
-
-
-
-
- errinfo_api_function
-
-
-
-
-
-
-
-
- 1
- 2
- (:include include:)
(:auto also:)
-
-
-
-
- 0
-
- 37
-
- reno_context
-
-
-
-
-
-
- 2
- D6841F0363736F4F8554C35ADD6A9D160C4C49AF6F64FD9E259BC154F779866F
- 1169632142
- 9204
- 323
- DF9EA87B0140AACF4422F1B76F6A6A409C15F32858BBBA85A35981A824C56BA9
- 1137981799
- 192
- 9006
-
-
-
-
-
- 0
- ../../../../boost/exception/exception.hpp
- 0
- 0
-
-
-
-
- enable_current_exception
-
-
-
-
-
-
-
-
- 1
- 2
- (:include include:)
(:auto also:)
-
-
-
-
- 0
-
- 38
-
- reno_context
-
-
-
-
-
-
- 1
- 4EDD3DF2332B6D9D22AC9AD90B850ACC715A24DD466E675014CBED25C63C255F
- 4175717823
- 328
- 323
-
-
-
-
-
- 0
- ../../../../boost/exception/errinfo_type_info_name.hpp
- 0
- 0
-
-
-
-
- boost/exception/errinfo_type_info_name.hpp
-
-
-
-
-
-
-
-
- 1
- 2
- (:include include:)
(:auto also:)
-
-
-
-
- 0
-
- 39
-
- reno_context
-
-
-
-
-
-
- 1
- 91CF203512705C8B2CDCBCD1439821CBF93CFC1A4C2EA2CA91F38DAA3F7720B2
- 1769665510
- 1558
- 352
-
-
-
-
-
- 0
- ../../example/errinfos.cpp
- 0
- 0
-
-
-
-
- errinfos example
-
-
-
-
-
-
-
-
- 0
-
-
-
-
- 0
-
- 40
-
- reno_context
-
-
-
-
-
-
- 1
- D32E0E4334CE0236B6EDB0EAC484B2DD595860E9FD53701EB5646D62C6A45D4E
- 1054670543
- 866
- 306
-
-
-
-
-
- 0
- ../../example/error_info_2.cpp
- 0
- 0
-
-
-
-
- adding of arbitrary data to active exception objects
-
-
- adding_data_later
-
-
-
-
-
- 0
-
-
-
-
- 0
-
- 41
-
- reno_context
-
-
-
-
-
-
- 0
-
-
-
-
-
- 1
-
-
-
-
- Headers
-
-
- headers
-
-
-
-
-
- 1
- 2
- (:include include:)
(:auto also:)
-
-
-
-
- 0
-
- 42
-
- reno_context
-
-
-
-
-
-
- 2
- 46AE88799BE7F14F1E2B48F0077193517F25AFFD4AE13C30489247555042EEE3
- 1975649535
- 3970
- 518
- D31BCE814DF5B8B718E7EB67A194AD08EF716A26D422E436596ABA1F145007D8
- 4055211476
- 525
- 3439
-
-
-
-
-
- 0
- ../../../../boost/exception/info.hpp
- 0
- 0
-
-
-
-
- exception/operator<<
-
-
-
-
-
-
-
-
- 1
- 2
- (:include include:)
(:auto also:)
-
-
-
-
- 0
-
- 43
-
- reno_context
-
-
-
-
-
-
- 0
-
-
-
-
-
- 1
-
-
-
-
- Functions
-
-
- functions
-
-
-
-
-
- 1
- 2
- (:include include:)
(:auto also:)
-
-
-
-
- 0
-
- 44
-
- reno_context
-
-
-
-
-
-
- 2
- CEB9022E39DA32E612158FF553D383E13D300D1202CEB754E28B716040EFC414
- 1114955626
- 11770
- 723
- 1516D0B7E11CBEB60CE4222565ACCAFF2E9857A8A505C1C26E2AE90087250581
- 3624753243
- 279
- 26
-
-
-
-
-
- 0
- ../../../../boost/exception_ptr.hpp
- 0
- 0
-
-
-
-
- original_exception_type
-
-
-
-
-
-
-
-
- 1
- 2
- (:include include:)
(:auto also:)
-
-
-
-
- 0
-
- 45
-
- reno_context
-
-
-
-
-
-
- 1
- 9DF8D57248B036B570603802AAD3E0FC25D94268FCF31A2B395973D93FFE1CF5
- 1380075423
- 208
- 323
-
-
-
-
-
- 0
- ../../../../boost/exception/errinfo_nested_exception.hpp
- 0
- 0
-
-
-
-
- boost/exception/errinfo_nested_exception.hpp
-
-
-
-
-
-
-
-
- 1
- 2
- (:include include:)
(:auto also:)
-
-
-
-
- 0
-
- 46
-
- reno_context
-
-
-
-
-
-
- 1
- A95165313334B684C85659D05D3D8EB17F4AF552EDCB3C180AC1F85D18C99CBF
- 115507474
- 2037
- 91
-
-
-
-
-
- 0
- ../../../../boost/throw_exception.hpp
- 0
- 0
-
-
-
-
- boost/throw_exception.hpp
-
-
-
-
-
-
-
-
- 1
- 2
- (:include include:)
(:auto also:)
-
-
-
-
- 0
-
- 47
-
- reno_context
-
-
-
-
-
-
- 2
- 46AE88799BE7F14F1E2B48F0077193517F25AFFD4AE13C30489247555042EEE3
- 1975649535
- 3970
- 518
- 6E325144EF4F41FA3A225EB30729101382C4E99B3D6160E307311E4B4E641010
- 1097215175
- 161
- 240
-
-
-
-
-
- 0
- ../../../../boost/exception/info.hpp
- 0
- 0
-
-
-
-
- error_info::error_info
-
-
-
-
-
-
-
-
- 1
- 2
- (:include include:)
(:auto also:)
-
-
-
-
- 0
-
- 48
-
- reno_context
-
-
-
-
-
-
- 2
- CEB9022E39DA32E612158FF553D383E13D300D1202CEB754E28B716040EFC414
- 1114955626
- 11770
- 723
- 0066D4E6E6B189906E6DE04F08509F3737511701A1B1355B37511EC18E8371F4
- 2078296250
- 305
- 10862
-
-
-
-
-
- 0
- ../../../../boost/exception_ptr.hpp
- 0
- 0
-
-
-
-
- copy_exception
-
-
-
-
-
-
-
-
- 1
- 2
- (:include include:)
(:auto also:)
-
-
-
-
- 0
-
- 49
-
- reno_context
-
-
-
-
-
-
- 0
-
-
-
-
-
- 1
-
-
-
-
- boost/exception/enable_error_info.hpp
-
-
-
-
-
-
-
-
- 1
- 2
- (:include include:)
(:auto also:)
-
-
-
-
- 0
-
- 50
-
- reno_context
-
-
-
-
-
-
- 1
- DE766B811244919E8E1EA54FC747A8487BCE57F1AB592932640FC90428B617A5
- 414875037
- 427
- 323
-
-
-
-
-
- 0
- ../../../../boost/exception/errinfo_file_open_mode.hpp
- 0
- 0
-
-
-
-
- boost/exception/errinfo_file_open_mode.hpp
-
-
-
-
-
-
-
-
- 1
- 2
- (:include include:)
(:auto also:)
-
-
-
-
- 0
-
- 51
-
- reno_context
-
-
-
-
-
-
- 1
- 5AD376A17B373BF62FE491E6E7883756836612C74138FFFA15FFF54E7CDBADAA
- 20822643
- 5426
- 323
-
-
-
-
-
- 0
- ../../../../boost/exception/diagnostic_information.hpp
- 0
- 0
-
-
-
-
- boost/exception/diagnostic_information.hpp
-
-
-
-
-
-
-
-
- 1
- 2
- (:include include:)
(:auto also:)
-
-
-
-
- 0
-
- 52
+ 12reno_context
@@ -2209,7 +419,45 @@
0
- 53
+ 13
+
+ reno_context
+
+
+
+
+
+
+ 0
+
+
+
+
+
+ 1
+
+
+
+
+ Types
+
+
+ types
+
+
+
+
+
+ 1
+ 2
+ (:include include:)
(:auto also:)
+
+
+
+
+ 0
+
+ 14reno_context
@@ -2219,13 +467,202 @@
1
- 21A43755562CB78B3FFCC49F66B457C1FCD659EE98F25BBFA8DDE453EB89DF0E
- 2576704708
- 337
+ 741493399544444FAFD8024809F7086A586C3F93AAC48AAE99A5A62BA6D89657
+ 3934324527
+ 908323
+
+
+ 0
+ ../../../../boost/exception/errinfo_errno.hpp
+ 0
+ 0
+
+
+
+
+ boost/exception/errinfo_errno.hpp
+
+
+
+
+
+
+
+
+ 1
+ 2
+ (:include include:)
(:auto also:)
+
+
+
+
+ 0
+
+ 15
+
+ reno_context
+
+
+
+
+
+
+ 2
+ C54D0581EB7AF805BD91520EEA0138DF2EAAA07BA1D3E61D07F2F715765FE76F
+ 3159045543
+ 12169
+ 828
+ 4B6ED02EA5B5A3B326838794C37ED01C5DC3E8D89FA78E62B9F7A0C78D4DB6FD
+ 2715164371
+ 116
+ 11178
+
+
+
+
+
+ 0
+ ../../../../boost/exception/detail/exception_ptr.hpp
+ 0
+ 0
+
+
+
+
+ rethrow_exception
+
+
+
+
+
+
+
+
+ 1
+ 2
+ (:include include:)
(:auto also:)
+
+
+
+
+ 0
+
+ 16
+
+ reno_context
+
+
+
+
+
+
+ 0
+
+
+
+
+
+ 1
+
+
+
+
+ boost exception
+
+
+ boost-exception
+
+
+
+
+
+ 1
+ 2
+ (:include include:)
+
+
+
+
+ 0
+
+ 17
+
+ reno_context
+
+
+
+
+
+
+ 3
+ AE39C833229D2025795E45693EC41931EF387FA93C636230DBE28F94FAD04760
+ 3442098514
+ 1214
+ 449
+ A27237A743E85C6D6C1E908421AA26DEB9BEFC781D6EE64C31C3DCFBEEF5A4B9
+ 907005134
+ 749
+ 412
+ 38B566F2C6678B8724D18086A6F76E077DC2ADC1BB69A4B83BF0A2C3B7D31B50
+ 2218658069
+ 31
+ 269
+
+
+
+
+
+ 0
+ ../../../../boost/exception/detail/error_info_impl.hpp
+ 0
+ 0
+
+
+
+
+ error_info::value_type
+
+
+
+
+
+
+
+
+ 1
+ 2
+ (:include include:)
(:auto also:)
+
+
+
+
+ 0
+
+ 18
+
+ reno_context
+
+
+
+
+
+
+ 2
+ AEDDD2FA4F47CEBD99444F1054D85AB8132748CF38D6634503D62E9C8AD5FE68
+ 1378637100
+ 292
+ 368
+ 892C0239798B84BA2E80DAA70BBEB7BE0B6086A1D0829D0E1937EC1D19E3FF20
+ 3349881047
+ 89
+ 197
+
+
+ 0
@@ -2236,7 +673,7 @@
- boost/exception/errinfo_api_function.hpp
+ errinfo_api_function
@@ -2254,7 +691,7 @@
0
- 54
+ 19reno_context
@@ -2264,24 +701,24 @@
1
- FFF4359EFC66EE6AA729B641F38B4020A55E83A1C099BCA59B1CA9A9875E7F79
- 366628170
- 236
- 323
+ E70915ABD618D3F08CC9462BAA94A7193FB536524713AD463EC455A4025049E8
+ 1170049804
+ 2066
+ 910
- ../../../../boost/exception/errinfo_file_handle.hpp
+ ../../../../boost/throw_exception.hpp00
- boost/exception/errinfo_file_handle.hpp
+ boost/throw_exception.hpp
@@ -2299,7 +736,452 @@
0
- 55
+ 20
+
+ reno_context
+
+
+
+
+
+
+ 0
+
+
+
+
+
+ 1
+
+
+
+
+ Motivation
+
+
+ motivation
+
+
+
+
+
+ 7
+ 2
+ (:include include:)
(:auto also explicit="
+ 1
+
+ 0
+
+ 21
+
+ reno_context
+
+
+
+
+
+
+ 0
+
+
+
+
+
+ 1
+
+
+
+
+ exception types as simple semantic tags
+
+
+
+
+
+
+
+ 2
+
+ 1
+
+ 0
+
+ 22
+
+ reno_context
+
+
+
+
+
+
+ 1
+ C95CEF2E9D0BAA1E950509471062916DB849A46A19F7692BA478030E79B338EB
+ 1917376632
+ 706
+ 408
+
+
+
+
+
+ 0
+ ../../example/enable_error_info.cpp
+ 0
+ 0
+
+
+
+
+ integrating boost exception in existing exception class hierarchies
+
+
+ tutorial_enable_error_info
+
+
+
+
+ 2
+
+ 1
+
+ 0
+
+ 23
+
+ reno_context
+
+
+
+
+
+
+ 0
+
+
+
+
+
+ 1
+
+
+
+
+ frequently asked questions
+
+
+
+
+
+
+
+ 2
+ ":)
+
+
+
+
+ 0
+
+ 24
+
+ reno_context
+
+
+
+
+
+
+ 0
+
+
+
+
+
+ 1
+
+
+
+
+ using virtual inheritance in exception types
+
+
+
+
+
+
+
+
+ 1
+ 2
+ (:include include:)
(:auto also:)
+
+
+
+
+ 0
+
+ -22
+
+
+
+ 1
+ 2
+ (:include include:)
(:auto also:)
+
+
+
+
+ 0
+
+ -23
+
+
+
+ 1
+ 2
+ (:include include:)
(:auto also:)
+
+
+
+
+ 0
+
+ 25
+
+ reno_context
+
+
+
+
+
+
+ 1
+ 756A81C65A938BEEAD9B576707145748A3DB3BF767CC77ADD5AACD549373856A
+ 904132245
+ 744
+ 363
+
+
+
+
+
+ 0
+ ../../example/info_tuple.cpp
+ 0
+ 0
+
+
+
+
+ adding grouped data to exceptions
+
+
+ grouping_data
+
+
+
+
+
+ 0
+
+
+
+
+ 0
+
+ 26
+
+ reno_context
+
+
+
+
+
+
+ 1
+ 9DF8D57248B036B570603802AAD3E0FC25D94268FCF31A2B395973D93FFE1CF5
+ 1380075423
+ 208
+ 323
+
+
+
+
+
+ 0
+ ../../../../boost/exception/errinfo_nested_exception.hpp
+ 0
+ 0
+
+
+
+
+ boost/exception/errinfo_nested_exception.hpp
+
+
+
+
+
+
+
+
+ 1
+ 2
+ (:include include:)
(:auto also:)
+
+
+
+
+ 0
+
+ 27
+
+ reno_context
+
+
+
+
+
+
+ 1
+ 977045132A532A0071B0B53F737D85367CE9A331402F96790E45B3B6F2FC88A6
+ 1875939463
+ 529
+ 382
+
+
+
+
+
+ 0
+ ../../example/error_info_1.cpp
+ 0
+ 0
+
+
+
+
+ adding of arbitrary data at the point of the throw
+
+
+ adding_data_at_throw
+
+
+
+
+
+ 0
+
+
+
+
+ 0
+
+ 28
+
+ reno_context
+
+
+
+
+
+
+ 1
+ BF7B46FEFA4E2DED7D652BFD40E94DD0B225ADA8D35E28FF4216F72812589835
+ 422843600
+ 756
+ 428
+
+
+
+
+
+ 0
+ ../../../../boost/exception/all.hpp
+ 0
+ 0
+
+
+
+
+ boost/exception/all.hpp
+
+
+
+
+
+
+
+
+ 1
+ 2
+ (:include include:)
(:auto also:)
+
+
+
+
+ 0
+
+ 29
+
+ reno_context
+
+
+
+
+
+
+ 1
+ 8875EEF219AFA740DB131CAB3D8488C477FFAEC04421FD0EE67A6B70A354C9A3
+ 2210100285
+ 4297
+ 323
+
+
+
+
+
+ 0
+ ../../../../boost/exception/info.hpp
+ 0
+ 0
+
+
+
+
+ boost/exception/info.hpp
+
+
+
+
+
+
+
+
+ 1
+ 2
+ (:include include:)
(:auto also:)
+
+
+
+
+ 0
+
+ -21
+
+
+
+ 1
+ 2
+ (:include include:)
(:auto also:)
+
+
+
+
+ 0
+
+ 30reno_context
@@ -2337,7 +1219,7 @@
0
- 56
+ 31reno_context
@@ -2386,7 +1268,7 @@
0
- 57
+ 32reno_context
@@ -2396,14 +1278,206 @@
2
- F7554EEA94C796DF4EC724B2F21CFE92B2A7BEF13097D61CE13CE50CE7192313
- 2034584854
- 4201
- 560
+ ABA4CA0D43528F04AA5429024996E398E31EBC5B283E9ACE09A55D50DF5D1961
+ 3606121577
+ 9890
+ 428
+ 17E691632123EB67BA67D590B49EB8094F462F5A10A66A1C5438E1867EF1478E
+ 765399792
+ 77
+ 5922
+
+
+
+
+
+ 0
+ ../../../../boost/exception/exception.hpp
+ 0
+ 0
+
+
+
+
+ exception::~exception
+
+
+ exception_destructor
+
+
+
+
+
+ 1
+ 2
+ (:include include:)
(:auto also:)
+
+
+
+
+ 0
+
+ 33
+
+ reno_context
+
+
+
+
+
+
+ 2
+ 15CF5BD93D20D62D659C11A69330B06E408398EA488BEF1FD45437AADCDB424E
+ 1232553666
+ 214
+ 345
+ 6262783847165581298EC9500031E6B7A97B2751A9CEF67C4794121A78142C58
+ 3676119191
+ 90
+ 118
+
+
+
+
+
+ 0
+ ../../../../boost/exception/errinfo_file_handle.hpp
+ 0
+ 0
+
+
+
+
+ errinfo_file_handle
+
+
+
+
+
+
+
+
+ 1
+ 2
+ (:include include:)
(:auto also:)
+
+
+
+
+ 0
+
+ 34
+
+ reno_context
+
+
+
+
+
+
+ 1
+ 4EDD3DF2332B6D9D22AC9AD90B850ACC715A24DD466E675014CBED25C63C255F
+ 4175717823
+ 328
+ 323
+
+
+
+
+
+ 0
+ ../../../../boost/exception/errinfo_type_info_name.hpp
+ 0
+ 0
+
+
+
+
+ boost/exception/errinfo_type_info_name.hpp
+
+
+
+
+
+
+
+
+ 1
+ 2
+ (:include include:)
(:auto also:)
+
+
+
+
+ 0
+
+ 35
+
+ reno_context
+
+
+
+
+
+
+ 2
+ C54D0581EB7AF805BD91520EEA0138DF2EAAA07BA1D3E61D07F2F715765FE76F
+ 3159045543
+ 12169
+ 828
+ 0066D4E6E6B189906E6DE04F08509F3737511701A1B1355B37511EC18E8371F4
+ 2078296250
+ 305
+ 10871
+
+
+
+
+
+ 0
+ ../../../../boost/exception/detail/exception_ptr.hpp
+ 0
+ 0
+
+
+
+
+ copy_exception
+
+
+
+
+
+
+
+
+ 1
+ 2
+ (:include include:)
(:auto also:)
+
+
+
+
+ 0
+
+ 36
+
+ reno_context
+
+
+
+
+
+
+ 2
+ 91EBEDBD2582FE27314201DA4E2241CCE82DCB54E3BC027944308C6A58125E0E
+ 615721273
+ 4095
+ 13775738DF31DB52E5E8784199058479E798957794147A099D834110FF821C605EE31133216499490
- 3705
+ 3599
@@ -2435,7 +1509,7 @@
0
- 58
+ 37reno_context
@@ -2448,7 +1522,7 @@
21027A2B73C9AA6FF083752A952D63BBA9B5FD68A3C8915965A7184EA62A5D611523356166537
- 403
+ 64424256E1CE56594FB38D0630858B8947191827CFC57771E8727A6A56F7620745466591750566
@@ -2484,105 +1558,7 @@
0
- 59
-
- reno_context
-
-
-
-
-
-
- 2
- CEB9022E39DA32E612158FF553D383E13D300D1202CEB754E28B716040EFC414
- 1114955626
- 11770
- 723
- 6B3B617AC518A2177BDB89656E726B4E4D79577E289130493A61BAE24FB64838
- 3173127726
- 1101
- 2184
-
-
-
-
-
- 0
- ../../../../boost/exception_ptr.hpp
- 0
- 0
-
-
-
-
- unknown_exception
-
-
-
-
-
-
-
-
- 1
- 2
- (:include include:)
(:auto also:)
-
-
-
-
- 0
-
- 60
-
- reno_context
-
-
-
-
-
-
- 2
- E0BE7EFCD5550582AB95C9EEDA6E68CA0F89B19838DA61876D42161E1EA4AE71
- 2587249979
- 233
- 323
- 92AB508A6B1C2A62CB2ACED423BD04BB5A471674B5A51BFC1E6FB1F5C92AF9AA
- 2372475309
- 70
- 157
-
-
-
-
-
- 0
- ../../../../boost/exception/errinfo_at_line.hpp
- 0
- 0
-
-
-
-
- errinfo_at_line
-
-
-
-
-
-
-
-
- 1
- 2
- (:include include:)
(:auto also:)
-
-
-
-
- 0
-
- 61
+ 38reno_context
@@ -2592,157 +1568,10 @@
1
- 04DDC793002AFCF4F4166D250C67D09B6FE8B86224318ED7847AD6EC423B70CA
- 922651615
- 433
- 1061
-
-
-
-
-
- 0
- ../../../../boost/throw_exception.hpp
- 0
- 0
-
-
-
-
- BOOST_THROW_EXCEPTION
-
-
-
-
-
-
-
-
- 1
- 2
- (:include include:)
(:auto also:)
-
-
-
-
- 0
-
- 62
-
- reno_context
-
-
-
-
-
-
- 2
- CEB9022E39DA32E612158FF553D383E13D300D1202CEB754E28B716040EFC414
- 1114955626
- 11770
- 723
- E23085202D084CBB50F289988A6A592F06D923B77D0AB25D7A98A7188DF5BE3B
- 1414247481
- 766
- 10094
-
-
-
-
-
- 0
- ../../../../boost/exception_ptr.hpp
- 0
- 0
-
-
-
-
- current_exception
-
-
-
-
-
-
-
-
- 1
- 2
- (:include include:)
(:auto also:)
-
-
-
-
- 0
-
- 63
-
- reno_context
-
-
-
-
-
-
- 2
- D58AD357499A5A09FB5D12397CFFC2FFD412AC8A307ABB59C9BC53ACCA3B959D
- 2209414553
- 2926
- 504
- 49F40FF20D66B205C908A8F10BC61DE1BC571E4917A5BD0B4115E3F7FE3923FA
- 638776689
- 2894
- 26
-
-
-
-
-
- 0
- ../../../../boost/exception/get_error_info.hpp
- 0
- 0
-
-
-
-
- get_error_info
-
-
-
-
-
-
-
-
- 1
- 2
- (:include include:)
(:auto also:)
-
-
-
-
- 0
-
- 64
-
- reno_context
-
-
-
-
-
-
- 2
- 6FB85B536F965F137409D5B5D34786DCBF0B9957A7C251D271B717A1156B823D
- 1090406464
- 362
+ 3EF1AF87ABFF1750C31215F2C21A0EB378C2D4A8F9128A7B55A6612BA5969542
+ 2875025381
+ 467323
- D16DAEA8B1792A019AF7FCA362FDC6EFD381AF4C43C076A01C029ECE51F994A6
- 3172941848
- 330
- 26
@@ -2756,7 +1585,7 @@
- current_exception_cast
+ boost/exception/current_exception_cast.hpp
@@ -2774,7 +1603,7 @@
0
- 65
+ 39reno_context
@@ -2784,42 +1613,40 @@
1
- F39D869016327CDFEA720920B2743F47989202BF5814B6556EC54A1B0FE562F8
- 3703518029
- 147
- 323
+ D32E0E4334CE0236B6EDB0EAC484B2DD595860E9FD53701EB5646D62C6A45D4E
+ 1054670543
+ 866
+ 3060
- ../../../../boost/exception.hpp
+ ../../example/error_info_2.cpp00
- boost/exception.hpp
+ adding of arbitrary data to active exception objects
-
+ adding_data_later
- 1
- 2
- (:include include:)
(:auto also:)
+ 00
- 66
+ 40reno_context
@@ -2828,15 +1655,11 @@
- 2
- F7554EEA94C796DF4EC724B2F21CFE92B2A7BEF13097D61CE13CE50CE7192313
- 2034584854
- 4201
- 560
- 2973B09697BC6642C8CBECE8C3DD7C429FA1348B67AAAB47E01B9C1292EE3BB2
- 2629550564
- 3677
- 26
+ 1
+ BA58BD4D96D420ADA2006B5AC2D25B99E1CEBF350813C61DF9FB3754A138D40C
+ 3620239794
+ 5149
+ 323
@@ -2850,7 +1673,7 @@
- diagnostic_information
+ boost/exception/diagnostic_information.hpp
@@ -2868,45 +1691,7 @@
0
- 67
-
- reno_context
-
-
-
-
-
-
- 0
-
-
-
-
-
- 1
-
-
-
-
- Types
-
-
- types
-
-
-
-
-
- 1
- 2
- (:include include:)
(:auto also:)
-
-
-
-
- 0
-
- 68
+ 41reno_context
@@ -2916,24 +1701,24 @@
1
- 283AE6BE0920B1882100C426958FDF998DEE10226546B300B45C1A26B242FC25
- 722381934
- 617
- 323
+ DB156E6A8ACB9FB90C8FB110FC25A5FEB14A619F82EEC47FF913373592E5CC3E
+ 240075319
+ 6209
+ 4120
- ../../../../boost/exception/errinfo_errno.hpp
+ ../../example/example_io.cpp00
- boost/exception/errinfo_errno.hpp
+ diagnostic_information example
@@ -2941,6 +1726,49 @@
+
+ 0
+
+
+
+
+ 0
+
+ 42
+
+ reno_context
+
+
+
+
+
+
+ 1
+ 66E0BD9724AB83012F5B35D887E3313960DC0E69B94E0C03CA1F3C85A0D84A5C
+ 2883671483
+ 311
+ 306
+
+
+
+
+
+ 0
+ ../../example/logging.cpp
+ 0
+ 0
+
+
+
+
+ diagnostic information
+
+
+ tutorial_diagnostic_information
+
+
+
+ 12
@@ -2951,7 +1779,7 @@
0
- 69
+ 43reno_context
@@ -2964,7 +1792,7 @@
9A6D5598D65F1C1B5F913007D1CD1A814F3CDAD07D4AF8C468A0716059B2F7CC35529950871405
- 323
+ 428
@@ -2996,7 +1824,7 @@
0
- 70
+ 44reno_context
@@ -3045,20 +1873,7 @@
0
- -9
-
-
-
- 1
- 2
- (:include include:)
(:auto also:)
-
-
-
-
- 0
-
- 71
+ 45reno_context
@@ -3071,7 +1886,7 @@
DA1CAA5F6BAB712AD89E8A0B7D83961FCE4AF9FD198791C9F6EA299800A64FAC3553871704612
- 1496
+ 1525154AC930BD1FDCADE24CDB07DBD3163CA26378AF4F1D428C34B67D1F68A6089150905072586
@@ -3111,7 +1926,883 @@
0
- 72
+ 46
+
+ reno_context
+
+
+
+
+
+
+ 2
+ C54D0581EB7AF805BD91520EEA0138DF2EAAA07BA1D3E61D07F2F715765FE76F
+ 3159045543
+ 12169
+ 828
+ 6B3B617AC518A2177BDB89656E726B4E4D79577E289130493A61BAE24FB64838
+ 3173127726
+ 1101
+ 2193
+
+
+
+
+
+ 0
+ ../../../../boost/exception/detail/exception_ptr.hpp
+ 0
+ 0
+
+
+
+
+ unknown_exception
+
+
+
+
+
+
+
+
+ 1
+ 2
+ (:include include:)
(:auto also:)
+
+
+
+
+ 0
+
+ 47
+
+ reno_context
+
+
+
+
+
+
+ 1
+ DE766B811244919E8E1EA54FC747A8487BCE57F1AB592932640FC90428B617A5
+ 414875037
+ 427
+ 323
+
+
+
+
+
+ 0
+ ../../../../boost/exception/errinfo_file_open_mode.hpp
+ 0
+ 0
+
+
+
+
+ boost/exception/errinfo_file_open_mode.hpp
+
+
+
+
+
+
+
+
+ 1
+ 2
+ (:include include:)
(:auto also:)
+
+
+
+
+ 0
+
+ 48
+
+ reno_context
+
+
+
+
+
+
+ 0
+
+
+
+
+
+ 1
+
+
+
+
+ boost/exception/enable_error_info.hpp
+
+
+
+
+
+
+
+
+ 1
+ 2
+ (:include include:)
(:auto also:)
+
+
+
+
+ 0
+
+ 49
+
+ reno_context
+
+
+
+
+
+
+ 2
+ 9DF8D57248B036B570603802AAD3E0FC25D94268FCF31A2B395973D93FFE1CF5
+ 1380075423
+ 208
+ 323
+ 83E18B98A15DEF9418E38218D221D10DC093B915D630B51974CCD23A6E1EDC44
+ 849683856
+ 98
+ 104
+
+
+
+
+
+ 0
+ ../../../../boost/exception/errinfo_nested_exception.hpp
+ 0
+ 0
+
+
+
+
+ errinfo_nested_exception
+
+
+
+
+
+
+
+
+ 1
+ 2
+ (:include include:)
(:auto also:)
+
+
+
+
+ 0
+
+ 50
+
+ reno_context
+
+
+
+
+
+
+ 1
+ A1E3F9582095C930245FF6DBA455C6C973F4F025AD6C1D0C3BC7E9494070BAA7
+ 293414988
+ 113
+ 323
+
+
+
+
+
+ 0
+ ../../../../boost/exception.hpp
+ 0
+ 0
+
+
+
+
+ boost/exception.hpp
+
+
+
+
+
+
+
+
+ 1
+ 2
+ (:include include:)
(:auto also:)
+
+
+
+
+ 0
+
+ 51
+
+ reno_context
+
+
+
+
+
+
+ 2
+ 91EBEDBD2582FE27314201DA4E2241CCE82DCB54E3BC027944308C6A58125E0E
+ 615721273
+ 4095
+ 1377
+ BE272E8DD06A23FE305ECCBCDDD8923FCC667DE8A55CE98AA7309A7DBB16DDE5
+ 507026951
+ 3571
+ 26
+
+
+
+
+
+ 0
+ ../../../../boost/exception/diagnostic_information.hpp
+ 0
+ 0
+
+
+
+
+ diagnostic_information
+
+
+
+
+
+
+
+
+ 1
+ 2
+ (:include include:)
(:auto also:)
+
+
+
+
+ 0
+
+ 52
+
+ reno_context
+
+
+
+
+
+
+ 0
+
+
+
+
+
+ 1
+
+
+
+
+ Functions
+
+
+ functions
+
+
+
+
+
+ 1
+ 2
+ (:include include:)
(:auto also:)
+
+
+
+
+ 0
+
+ 53
+
+ reno_context
+
+
+
+
+
+
+ 2
+ 964F6A1CDF157430B6F65ABDD6A590CFA6AE83EAED66B5B59BA829DB07DF97F2
+ 3653363251
+ 731
+ 636
+ 36688510914673386A7870D1D4970B7D74CF9A4B7226F9E225A5607DCBFB12C4
+ 2314308857
+ 446
+ 279
+
+
+
+
+
+ 0
+ ../../../../boost/exception/diagnostic_information.hpp
+ 0
+ 0
+
+
+
+
+ current_exception_diagnostic_information
+
+
+
+
+
+
+
+
+ 1
+ 2
+ (:include include:)
(:auto also:)
+
+
+
+
+ 0
+
+ 54
+
+ reno_context
+
+
+
+
+
+
+ 2
+ C54D0581EB7AF805BD91520EEA0138DF2EAAA07BA1D3E61D07F2F715765FE76F
+ 3159045543
+ 12169
+ 828
+ 1516D0B7E11CBEB60CE4222565ACCAFF2E9857A8A505C1C26E2AE90087250581
+ 3624753243
+ 279
+ 26
+
+
+
+
+
+ 0
+ ../../../../boost/exception/detail/exception_ptr.hpp
+ 0
+ 0
+
+
+
+
+ original_exception_type
+
+
+
+
+
+
+
+
+ 1
+ 2
+ (:include include:)
(:auto also:)
+
+
+
+
+ 0
+
+ 55
+
+ reno_context
+
+
+
+
+
+
+ 1
+ 91CF203512705C8B2CDCBCD1439821CBF93CFC1A4C2EA2CA91F38DAA3F7720B2
+ 1769665510
+ 1558
+ 352
+
+
+
+
+
+ 0
+ ../../example/errinfos.cpp
+ 0
+ 0
+
+
+
+
+ errinfos example
+
+
+
+
+
+
+
+
+ 0
+
+
+
+
+ 0
+
+ 56
+
+ reno_context
+
+
+
+
+
+
+ 1
+ 4D7009F0868C1DF4898EC6ECF9AD2CFEA98E8653B01B066106761807405D4C22
+ 1416707852
+ 3107
+ 428
+
+
+
+
+
+ 0
+ ../../../../boost/exception/get_error_info.hpp
+ 0
+ 0
+
+
+
+
+ boost/exception/get_error_info.hpp
+
+
+
+
+
+
+
+
+ 1
+ 2
+ (:include include:)
(:auto also:)
+
+
+
+
+ 0
+
+ 57
+
+ reno_context
+
+
+
+
+
+
+ 2
+ 8E1ECF1D3D1C141962DD6E7B2070D6415DC3A1C9D35F9981F70DF84A6CCE67C8
+ 3306947758
+ 3968
+ 652
+ 6E325144EF4F41FA3A225EB30729101382C4E99B3D6160E307311E4B4E641010
+ 1097215175
+ 161
+ 240
+
+
+
+
+
+ 0
+ ../../../../boost/exception/info.hpp
+ 0
+ 0
+
+
+
+
+ error_info::error_info
+
+
+
+
+
+
+
+
+ 1
+ 2
+ (:include include:)
(:auto also:)
+
+
+
+
+ 0
+
+ 58
+
+ reno_context
+
+
+
+
+
+
+ 1
+ 66EFC83C830F0B00D0C9399B475099072E2674B3C694F9152645A33E3D7AC303
+ 561674611
+ 417
+ 323
+
+
+
+
+
+ 0
+ ../../../../boost/exception/errinfo_file_name.hpp
+ 0
+ 0
+
+
+
+
+ boost/exception/errinfo_file_name.hpp
+
+
+
+
+
+
+
+
+ 1
+ 2
+ (:include include:)
(:auto also:)
+
+
+
+
+ 0
+
+ 59
+
+ reno_context
+
+
+
+
+
+
+ 0
+
+
+
+
+
+ 1
+
+
+
+
+ Synopsis
+
+
+ synopsis
+
+
+
+
+
+ 1
+ 2
+ (:include include:)
(:auto also:)
+
+
+
+
+ 0
+
+ 60
+
+ reno_context
+
+
+
+
+
+
+ 1
+ 152CB2862365DF3DCC0062071CB97724D8757575B90CF9A8706A57382CA46B0F
+ 4123189442
+ 12674
+ 323
+
+
+
+
+
+ 0
+ ../../../../boost/exception/detail/exception_ptr.hpp
+ 0
+ 0
+
+
+
+
+ boost/exception_ptr.hpp
+
+
+
+
+
+
+
+
+ 1
+ 2
+ (:include include:)
(:auto also:)
+
+
+
+
+ 0
+
+ 61
+
+ reno_context
+
+
+
+
+
+
+ 3
+ AE39C833229D2025795E45693EC41931EF387FA93C636230DBE28F94FAD04760
+ 3442098514
+ 1214
+ 449
+ A27237A743E85C6D6C1E908421AA26DEB9BEFC781D6EE64C31C3DCFBEEF5A4B9
+ 907005134
+ 749
+ 412
+ 5EB718F617CB65548DFF259216ED67278E1B4EA43BF5605D242448780D8C477E
+ 68818004
+ 97
+ 496
+
+
+
+
+
+ 0
+ ../../../../boost/exception/detail/error_info_impl.hpp
+ 0
+ 0
+
+
+
+
+ error_info::value
+
+
+
+
+
+
+
+
+ 1
+ 2
+ (:include include:)
(:auto also:)
+
+
+
+
+ 0
+
+ 62
+
+ reno_context
+
+
+
+
+
+
+ 2
+ ABA4CA0D43528F04AA5429024996E398E31EBC5B283E9ACE09A55D50DF5D1961
+ 3606121577
+ 9890
+ 428
+ C908C7F4E8A72C39F05019127BD3345618C0C00CF168EE584E1BD669B6CE062D
+ 706692100
+ 1961
+ 3959
+
+
+
+
+
+ 0
+ ../../../../boost/exception/exception.hpp
+ 0
+ 0
+
+
+
+
+ exception
+
+
+
+
+
+
+
+
+ 1
+ 2
+ (:include include:)
----
!!!See Also:
(:pagelist link="backlink" except_tags="exception member noalso" mod="w" fmt="h":)
+
+
+
+
+ 0
+
+ 63
+
+ reno_context
+
+
+
+
+
+
+ 2
+ DA1CAA5F6BAB712AD89E8A0B7D83961FCE4AF9FD198791C9F6EA299800A64FAC
+ 3553871704
+ 612
+ 1525
+ 154AC930BD1FDCADE24CDB07DBD3163CA26378AF4F1D428C34B67D1F68A60891
+ 50905072
+ 586
+ 23
+
+
+
+
+
+ 0
+ ../../../../boost/throw_exception.hpp
+ 0
+ 0
+
+
+
+
+ throw_exception
+
+
+
+
+
+
+
+
+ 1
+ 2
+ (:include include:)
(:auto also:)
+
+
+
+
+ 0
+
+ 64
+
+ reno_context
+
+
+
+
+
+
+ 2
+ 307034E20863A00923777A60D9495B4076B7F917D5B97203025299060F0833E0
+ 3948311309
+ 396
+ 344
+ F8ED2052577830AC0C515EC5932BB14445DD5DA714782281FCDB1776961FECB1
+ 3880328768
+ 82
+ 308
+
+
+
+
+
+ 0
+ ../../../../boost/exception/errinfo_file_name.hpp
+ 0
+ 0
+
+
+
+
+ errinfo_file_name
+
+
+
+
+
+
+
+
+ 1
+ 2
+ (:include include:)
(:auto also:)
+
+
+
+
+ 0
+
+ 65reno_context
@@ -3149,7 +2840,7 @@
0
- 73
+ 66reno_context
@@ -3194,7 +2885,7 @@
0
- 74
+ 67reno_context
@@ -3204,14 +2895,14 @@
2
- D6841F0363736F4F8554C35ADD6A9D160C4C49AF6F64FD9E259BC154F779866F
- 1169632142
- 9204
- 323
+ ABA4CA0D43528F04AA5429024996E398E31EBC5B283E9ACE09A55D50DF5D1961
+ 3606121577
+ 9890
+ 428F3FB15CD82336271C6E875BC620385322777D16F0B7C233300783CE35710CCBF3292878997282
- 7317
+ 7828
@@ -3243,7 +2934,7 @@
0
- 75
+ 68reno_context
@@ -3281,7 +2972,88 @@
0
- 76
+ 69
+
+ reno_context
+
+
+
+
+
+
+ 1
+ 27ED18F9B6131B084FEF0C9F932B7027AF449E378B5FD7973CD6642263FCAF27
+ 2867102400
+ 404
+ 307
+
+
+
+
+
+ 0
+ ../../example/cloning_1.cpp
+ 0
+ 0
+
+
+
+
+ using enable_current_exception at the time of the throw
+
+
+ using_enable_cloning
+
+
+
+
+
+ 0
+
+
+
+
+ 0
+
+ 70
+
+ reno_context
+
+
+
+
+
+
+ 0
+
+
+
+
+
+ 1
+
+
+
+
+ transporting of exceptions between threads
+
+
+ tutorial_exception_ptr
+
+
+
+
+
+ 1
+ 2
+ (:include include:)
(:auto also:)
+
+
+
+
+ 0
+
+ 71reno_context
@@ -3291,13 +3063,62 @@
2
- F7633FDCF6615C0199645701EE6E7ACE5CBCD7A7CF6838573791E91ABB3C09F2
- 1668435395
- 1332
- 396
- A1F443AF571973A12005D2F7D4AE09A32AAF686FEEAE272EC21512A65EB943E8
- 3879093659
- 1300
+ C54D0581EB7AF805BD91520EEA0138DF2EAAA07BA1D3E61D07F2F715765FE76F
+ 3159045543
+ 12169
+ 828
+ E23085202D084CBB50F289988A6A592F06D923B77D0AB25D7A98A7188DF5BE3B
+ 1414247481
+ 766
+ 10103
+
+
+
+
+
+ 0
+ ../../../../boost/exception/detail/exception_ptr.hpp
+ 0
+ 0
+
+
+
+
+ current_exception
+
+
+
+
+
+
+
+
+ 1
+ 2
+ (:include include:)
(:auto also:)
+
+
+
+
+ 0
+
+ 72
+
+ reno_context
+
+
+
+
+
+
+ 2
+ D58AD357499A5A09FB5D12397CFFC2FFD412AC8A307ABB59C9BC53ACCA3B959D
+ 2209414553
+ 2926
+ 609
+ 49F40FF20D66B205C908A8F10BC61DE1BC571E4917A5BD0B4115E3F7FE3923FA
+ 638776689
+ 289426
@@ -3305,14 +3126,202 @@
0
- ../../../../boost/exception/info_tuple.hpp
+ ../../../../boost/exception/get_error_info.hpp00
- tuple/operator<<
+ get_error_info
+
+
+
+
+
+
+
+
+ 1
+ 2
+ (:include include:)
(:auto also:)
+
+
+
+
+ 0
+
+ 73
+
+ reno_context
+
+
+
+
+
+
+ 2
+ 6FB85B536F965F137409D5B5D34786DCBF0B9957A7C251D271B717A1156B823D
+ 1090406464
+ 362
+ 428
+ D16DAEA8B1792A019AF7FCA362FDC6EFD381AF4C43C076A01C029ECE51F994A6
+ 3172941848
+ 330
+ 26
+
+
+
+
+
+ 0
+ ../../../../boost/exception/current_exception_cast.hpp
+ 0
+ 0
+
+
+
+
+ current_exception_cast
+
+
+
+
+
+
+
+
+ 1
+ 2
+ (:include include:)
(:auto also:)
+
+
+
+
+ 0
+
+ 74
+
+ reno_context
+
+
+
+
+
+
+ 2
+ E0BE7EFCD5550582AB95C9EEDA6E68CA0F89B19838DA61876D42161E1EA4AE71
+ 2587249979
+ 233
+ 323
+ 92AB508A6B1C2A62CB2ACED423BD04BB5A471674B5A51BFC1E6FB1F5C92AF9AA
+ 2372475309
+ 70
+ 157
+
+
+
+
+
+ 0
+ ../../../../boost/exception/errinfo_at_line.hpp
+ 0
+ 0
+
+
+
+
+ errinfo_at_line
+
+
+
+
+
+
+
+
+ 1
+ 2
+ (:include include:)
(:auto also:)
+
+
+
+
+ 0
+
+ 75
+
+ reno_context
+
+
+
+
+
+
+ 1
+ 04DDC793002AFCF4F4166D250C67D09B6FE8B86224318ED7847AD6EC423B70CA
+ 922651615
+ 433
+ 1090
+
+
+
+
+
+ 0
+ ../../../../boost/throw_exception.hpp
+ 0
+ 0
+
+
+
+
+ BOOST_THROW_EXCEPTION
+
+
+
+
+
+
+
+
+ 1
+ 2
+ (:include include:)
(:auto also:)
+
+
+
+
+ 0
+
+ 76
+
+ reno_context
+
+
+
+
+
+
+ 1
+ 21A43755562CB78B3FFCC49F66B457C1FCD659EE98F25BBFA8DDE453EB89DF0E
+ 2576704708
+ 337
+ 323
+
+
+
+
+
+ 0
+ ../../../../boost/exception/errinfo_api_function.hpp
+ 0
+ 0
+
+
+
+
+ boost/exception/errinfo_api_function.hpp
@@ -3339,36 +3348,28 @@
- 3
- D6841F0363736F4F8554C35ADD6A9D160C4C49AF6F64FD9E259BC154F779866F
- 1169632142
- 9204
+ 1
+ FFF4359EFC66EE6AA729B641F38B4020A55E83A1C099BCA59B1CA9A9875E7F79
+ 366628170
+ 236323
- E8F75513DDED11FD99209774D96C52882C530DC63A1B0527156DF56901DAF5C7
- 1386049295
- 2209
- 3718
- DA154372D8C23BD9EDC30005CA7959CE686D198891097A837D006B5222F04DE9
- 2768248809
- 143
- 600
- ../../../../boost/exception/exception.hpp
+ ../../../../boost/exception/errinfo_file_handle.hpp00
- exception::exception
+ boost/exception/errinfo_file_handle.hpp
- exception_constructors
+
@@ -3392,28 +3393,21 @@
- 1
- D6841F0363736F4F8554C35ADD6A9D160C4C49AF6F64FD9E259BC154F779866F
- 1169632142
- 9204
- 323
+ 0
- 0
- ../../../../boost/exception/exception.hpp
- 0
- 0
+ 1
- boost/exception/exception.hpp
+ Headers
-
+ headers
@@ -3437,34 +3431,40 @@
- 1
- FC684D0DD5A9732B4130F2AB3DB6E0491D0F523E14B7FB738B2019EA2C7F8717
- 2229778754
- 631
- 319
+ 2
+ C54D0581EB7AF805BD91520EEA0138DF2EAAA07BA1D3E61D07F2F715765FE76F
+ 3159045543
+ 12169
+ 828
+ 2690D4D40C3953A637A3F52F8B18714BAE63A13D7D1CB0C91ED00D73EDDDE358
+ 475315732
+ 1762
+ 4290
- ../../example/cloning_2.cpp
+ ../../../../boost/exception/detail/exception_ptr.hpp00
- cloning and re-throwing an exception
+ exception_ptr
- cloning_and_rethrowing
+
- 0
+ 1
+ 2
+ (:include include:)
(:auto also:)
@@ -3481,28 +3481,28 @@
2
- 892ACAF5EB4C2D93ECC578359C6CF16C5DDB159571B19B7EE11CC84ED6828258
- 116592015
- 1062
- 344
- 5D5B59DE2E0728CF19BDD22BF7DE3FADAD08B422B577E0705508F6D9FB6707C7
- 387228411
- 623
- 433
+ 8E1ECF1D3D1C141962DD6E7B2070D6415DC3A1C9D35F9981F70DF84A6CCE67C8
+ 3306947758
+ 3968
+ 652
+ B494F545ED1BD0502F8699D7059DC882495CC0D93A23CFA306E5F39BB14E4A97
+ 259300739
+ 523
+ 34390
- ../../../../boost/exception/detail/error_info_impl.hpp
+ ../../../../boost/exception/info.hpp00
- error_info
+ exception/operator<<
@@ -3574,6 +3574,17 @@
0
+
+
+ 0
+
+ -9
+
+
+
+ 0
+
+ 0
@@ -3582,18 +3593,9 @@
- 5
+ 92
- [@typedef (:link
- 1
-
- 0
-
- -80
-
-
- 2
- :)<struct errinfo_file_name_,std::string> (:link
+ [@template <class Tag,class T>
class
(:link 10
@@ -3602,7 +3604,34 @@
2
- :);@]
+ :)
{
public:
(:include
+ 1
+
+ 0
+
+ -17
+
+
+ 2
+ decl pre_indent="4":)
(:include
+ 1
+
+ 0
+
+ -57
+
+
+ 2
+ decl pre_indent="4":)
(:include
+ 1
+
+ 0
+
+ -61
+
+
+ 2
+ decl pre_indent="4":)
};@]
@@ -3624,7 +3653,27 @@
- 0
+ 5
+ 2
+ [@typedef
+ 1
+
+ 0
+
+ -10
+
+
+ 2
+ <struct errinfo_file_open_mode_,std::string>
+ 1
+
+ 0
+
+ -12
+
+
+ 2
+ ;@]
@@ -3679,36 +3728,7 @@
- 7
- 2
- [@class
(:link
- 1
-
- 0
-
- -17
-
-
- 2
- :)
{
protected:
(:include
- 1
-
- 0
-
- -77
-
-
- 2
- decl pre_indent="4":)
(:include
- 1
-
- 0
-
- -28
-
-
- 2
- decl pre_indent="4":)
};@]
+ 0
@@ -3719,7 +3739,27 @@
- 0
+ 5
+ 2
+ [@typedef (:link
+ 1
+
+ 0
+
+ -10
+
+
+ 2
+ :)<struct errinfo_api_function_,char const *> (:link
+ 1
+
+ 0
+
+ -18
+
+
+ 2
+ :);@]
@@ -3748,7 +3788,7 @@
0
- -21
+ -24
@@ -3777,46 +3817,6 @@
0
-
-
- 0
-
- -24
-
-
-
- 7
- 2
- [@typedef (:link
- 1
-
- 0
-
- -80
-
-
- 2
- :)<struct errinfo_nested_exception_,(:link
- 1
-
- 0
-
- -29
-
-
- 2
- :)> (:link
- 1
-
- 0
-
- -24
-
-
- 2
- :);@]
-
- 0
@@ -3836,27 +3836,7 @@
- 5
- 2
- [@typedef (:link
- 1
-
- 0
-
- -80
-
-
- 2
- :)<struct errinfo_file_handle_,weak_ptr<FILE> > (:link
- 1
-
- 0
-
- -26
-
-
- 2
- :);@]
+ 0
@@ -3892,6 +3872,17 @@
0
+
+
+ 0
+
+ -21
+
+
+
+ 0
+
+ 0
@@ -3911,7 +3902,27 @@
- 0
+ 5
+ 2
+ [@typedef
+ 1
+
+ 0
+
+ -10
+
+
+ 2
+ <struct errinfo_type_info_name_,std::string>
+ 1
+
+ 0
+
+ -31
+
+
+ 2
+ ;@]
@@ -3933,7 +3944,27 @@
- 0
+ 5
+ 2
+ [@typedef (:link
+ 1
+
+ 0
+
+ -10
+
+
+ 2
+ :)<struct errinfo_file_handle_,weak_ptr<FILE> > (:link
+ 1
+
+ 0
+
+ -33
+
+
+ 2
+ :);@]
@@ -3966,27 +3997,7 @@
- 5
- 2
- [@typedef (:link
- 1
-
- 0
-
- -80
-
-
- 2
- :)<struct errinfo_api_function_,char const *> (:link
- 1
-
- 0
-
- -36
-
-
- 2
- :);@]
+ 0
@@ -3997,7 +4008,27 @@
- 0
+ 5
+ 2
+ [@typedef
+ 1
+
+ 0
+
+ -10
+
+
+ 2
+ <struct errinfo_errno_,int>
+ 1
+
+ 0
+
+ -37
+
+
+ 2
+ ;@]
@@ -4129,7 +4160,36 @@
- 0
+ 7
+ 2
+ [@typedef (:link
+ 1
+
+ 0
+
+ -10
+
+
+ 2
+ :)<struct errinfo_nested_exception_,(:link
+ 1
+
+ 0
+
+ -79
+
+
+ 2
+ :)> (:link
+ 1
+
+ 0
+
+ -49
+
+
+ 2
+ :);@]
@@ -4162,27 +4222,7 @@
- 5
- 2
- [@typedef
- 1
-
- 0
-
- -80
-
-
- 2
- <struct errinfo_file_open_mode_,std::string>
- 1
-
- 0
-
- -52
-
-
- 2
- ;@]
+ 0
@@ -4226,27 +4266,7 @@
- 5
- 2
- [@typedef
- 1
-
- 0
-
- -80
-
-
- 2
- <struct errinfo_type_info_name_,std::string>
- 1
-
- 0
-
- -56
-
-
- 2
- ;@]
+ 0
@@ -4268,27 +4288,7 @@
- 5
- 2
- [@typedef
- 1
-
- 0
-
- -80
-
-
- 2
- <struct errinfo_errno_,int>
- 1
-
- 0
-
- -58
-
-
- 2
- ;@]
+ 0
@@ -4310,27 +4310,7 @@
- 5
- 2
- [@typedef (:link
- 1
-
- 0
-
- -80
-
-
- 2
- :)<struct errinfo_at_line_,int> (:link
- 1
-
- 0
-
- -60
-
-
- 2
- :);@]
+ 0
@@ -4352,7 +4332,36 @@
- 0
+ 7
+ 2
+ [@class
(:link
+ 1
+
+ 0
+
+ -62
+
+
+ 2
+ :)
{
protected:
(:include
+ 1
+
+ 0
+
+ -6
+
+
+ 2
+ decl pre_indent="4":)
(:include
+ 1
+
+ 0
+
+ -32
+
+
+ 2
+ decl pre_indent="4":)
};@]
@@ -4374,7 +4383,27 @@
- 0
+ 5
+ 2
+ [@typedef (:link
+ 1
+
+ 0
+
+ -10
+
+
+ 2
+ :)<struct errinfo_file_name_,std::string> (:link
+ 1
+
+ 0
+
+ -64
+
+
+ 2
+ :);@]
@@ -4443,17 +4472,6 @@
0
-
-
- 0
-
- -9
-
-
-
- 0
-
- 0
@@ -4495,7 +4513,27 @@
- 0
+ 5
+ 2
+ [@typedef (:link
+ 1
+
+ 0
+
+ -10
+
+
+ 2
+ :)<struct errinfo_at_line_,int> (:link
+ 1
+
+ 0
+
+ -74
+
+
+ 2
+ :);@]
@@ -4561,45 +4599,7 @@
- 9
- 2
- [@template <class Tag,class T>
class
(:link
- 1
-
- 0
-
- -80
-
-
- 2
- :)
{
public:
(:include
- 1
-
- 0
-
- -31
-
-
- 2
- decl pre_indent="4":)
(:include
- 1
-
- 0
-
- -47
-
-
- 2
- decl pre_indent="4":)
(:include
- 1
-
- 0
-
- -25
-
-
- 2
- decl pre_indent="4":)
};@]
+ 0
@@ -4646,7 +4646,54 @@
- 0
+ 11
+ 2
+ [@(:include
+ 1
+
+ 0
+
+ -62
+
+
+ 2
+ def:)
(:include
+ 1
+
+ 0
+
+ -10
+
+
+ 2
+ decl:)
typedef (:link
+ 1
+
+ 0
+
+ -10
+
+
+ 2
+ :)<struct throw_function_,char const *> throw_function;
typedef (:link
+ 1
+
+ 0
+
+ -10
+
+
+ 2
+ :)<struct throw_file_,char const *> throw_file;
typedef (:link
+ 1
+
+ 0
+
+ -10
+
+
+ 2
+ :)<struct throw_line_,int> throw_line;@]
@@ -4660,6 +4707,17 @@
0
+
+
+ 0
+
+ -9
+
+
+
+ 0
+
+ 0
@@ -4712,7 +4770,18 @@
- 0
+ 3
+ 2
+ [@(:include
+ 1
+
+ 0
+
+ -37
+
+
+ 2
+ def:)@]
@@ -4723,153 +4792,7 @@
- 33
- 2
- [@#include <(:link
- 1
-
- 0
-
- -51
-
-
- 2
- :)>
#include <(:link
- 1
-
- 0
-
- -70
-
-
- 2
- :)>
#include <(:link
- 1
-
- 0
-
- -78
-
-
- 2
- :)>
#include <(:link
- 1
-
- 0
-
- -20
-
-
- 2
- :)>
#include <(:link
- 1
-
- 0
-
- -18
-
-
- 2
- :)>
#include <(:link
- 1
-
- 0
-
- -69
-
-
- 2
- :)>
#include <(:link
- 1
-
- 0
-
- -53
-
-
- 2
- :)>
#include <(:link
- 1
-
- 0
-
- -73
-
-
- 2
- :)>
#include <(:link
- 1
-
- 0
-
- -68
-
-
- 2
- :)>
#include <(:link
- 1
-
- 0
-
- -54
-
-
- 2
- :)>
#include <(:link
- 1
-
- 0
-
- -34
-
-
- 2
- :)>
#include <(:link
- 1
-
- 0
-
- -50
-
-
- 2
- :)>
#include <(:link
- 1
-
- 0
-
- -38
-
-
- 2
- :)>
#ifndef (:link
- 1
-
- 0
-
- -71
-
-
- 2
- |BOOST_NO_EXCEPTIONS:)
#include <(:link
- 1
-
- 0
-
- -45
-
-
- 2
- :)>
#include <(:link
- 1
-
- 0
-
- -21
-
-
- 2
- :)>
#endif@]
+ 0
@@ -4902,27 +4825,7 @@
- 5
- 2
- [@(:include
- 1
-
- 0
-
- -80
-
-
- 2
- def:)
(:include
- 1
-
- 0
-
- -42
-
-
- 2
- decl:)@]
+ 0
@@ -4933,7 +4836,27 @@
- 0
+ 5
+ 2
+ [@(:include
+ 1
+
+ 0
+
+ -75
+
+
+ 2
+ decl:)
namespace
boost
{
(:include
+ 1
+
+ 0
+
+ -63
+
+
+ 2
+ decl:)
}@]
@@ -4944,85 +4867,18 @@
- 3
- 2
- [@(:include
- 1
-
- 0
-
- -63
-
-
- 2
- decl:)@]
+ 00
- -21
+ -24
- 13
- 2
- [@(:include
- 1
-
- 0
-
- -59
-
-
- 2
- decl:)
(:include
- 1
-
- 0
-
- -44
-
-
- 2
- decl:)
(:include
- 1
-
- 0
-
- -29
-
-
- 2
- decl:)
(:include
- 1
-
- 0
-
- -48
-
-
- 2
- decl:)
(:include
- 1
-
- 0
-
- -62
-
-
- 2
- decl:)
(:include
- 1
-
- 0
-
- -30
-
-
- 2
- decl:)@]
+ 0
@@ -5047,17 +4903,6 @@
0
-
-
- 0
-
- -24
-
-
-
- 0
-
- 0
@@ -5077,7 +4922,18 @@
- 0
+ 3
+ 2
+ [@(:include
+ 1
+
+ 0
+
+ -49
+
+
+ 2
+ def:)@]
@@ -5099,7 +4955,153 @@
- 0
+ 33
+ 2
+ [@#include <(:link
+ 1
+
+ 0
+
+ -40
+
+
+ 2
+ :)>
#include <(:link
+ 1
+
+ 0
+
+ -44
+
+
+ 2
+ :)>
#include <(:link
+ 1
+
+ 0
+
+ -7
+
+
+ 2
+ :)>
#include <(:link
+ 1
+
+ 0
+
+ -56
+
+
+ 2
+ :)>
#include <(:link
+ 1
+
+ 0
+
+ -29
+
+
+ 2
+ :)>
#include <(:link
+ 1
+
+ 0
+
+ -43
+
+
+ 2
+ :)>
#include <(:link
+ 1
+
+ 0
+
+ -76
+
+
+ 2
+ :)>
#include <(:link
+ 1
+
+ 0
+
+ -66
+
+
+ 2
+ :)>
#include <(:link
+ 1
+
+ 0
+
+ -14
+
+
+ 2
+ :)>
#include <(:link
+ 1
+
+ 0
+
+ -77
+
+
+ 2
+ :)>
#include <(:link
+ 1
+
+ 0
+
+ -58
+
+
+ 2
+ :)>
#include <(:link
+ 1
+
+ 0
+
+ -47
+
+
+ 2
+ :)>
#include <(:link
+ 1
+
+ 0
+
+ -34
+
+
+ 2
+ :)>
#ifndef (:link
+ 1
+
+ 0
+
+ -45
+
+
+ 2
+ |BOOST_NO_EXCEPTIONS:)
#include <(:link
+ 1
+
+ 0
+
+ -26
+
+
+ 2
+ :)>
#include <(:link
+ 1
+
+ 0
+
+ -60
+
+
+ 2
+ :)>
#endif@]
@@ -5109,6 +5111,37 @@
-29
+
+ 5
+ 2
+ [@(:include
+ 1
+
+ 0
+
+ -10
+
+
+ 2
+ def:)
(:include
+ 1
+
+ 0
+
+ -80
+
+
+ 2
+ decl:)@]
+
+
+
+
+ 0
+
+ -21
+
+ 0
@@ -5121,7 +5154,18 @@
- 0
+ 3
+ 2
+ [@(:include
+ 1
+
+ 0
+
+ -9
+
+
+ 2
+ decl:)@]
@@ -5172,7 +5216,7 @@
0
- -10
+ -312
@@ -5187,18 +5231,7 @@
- 3
- 2
- [@(:include
- 1
-
- 0
-
- -64
-
-
- 2
- decl:)@]
+ 0
@@ -5238,11 +5271,11 @@
0
- -56
+ -732
- def:)@]
+ decl:)@]
@@ -5264,7 +5297,36 @@
- 0
+ 7
+ 2
+ [@(:include
+ 1
+
+ 0
+
+ -51
+
+
+ 2
+ decl:)
(:include
+ 1
+
+ 0
+
+ -36
+
+
+ 2
+ decl:)
(:include
+ 1
+
+ 0
+
+ -53
+
+
+ 2
+ decl:)@]
@@ -5297,7 +5359,18 @@
- 0
+ 3
+ 2
+ [@(:include
+ 1
+
+ 0
+
+ -5
+
+
+ 2
+ decl:)@]
@@ -5308,7 +5381,18 @@
- 0
+ 3
+ 2
+ [@(:include
+ 1
+
+ 0
+
+ -10
+
+
+ 2
+ decl:)@]
@@ -5319,18 +5403,7 @@
- 3
- 2
- [@(:include
- 1
-
- 0
-
- -24
-
-
- 2
- def:)@]
+ 0
@@ -5341,27 +5414,7 @@
- 5
- 2
- [@(:include
- 1
-
- 0
-
- -61
-
-
- 2
- decl:)
namespace
boost
{
(:include
- 1
-
- 0
-
- -11
-
-
- 2
- decl:)
}@]
+ 0
@@ -5371,28 +5424,6 @@
-47
-
- 0
-
-
-
-
- 0
-
- -48
-
-
-
- 0
-
-
-
-
- 0
-
- -49
-
- 32
@@ -5401,29 +5432,7 @@
0
- -74
-
-
- 2
- decl:)@]
-
-
-
-
- 0
-
- -50
-
-
-
- 3
- 2
- [@(:include
- 1
-
- 0
-
- -52
+ -122
@@ -5434,42 +5443,57 @@
0
- -51
+ -48
- 7
+ 32[@(:include 10
- -66
-
-
- 2
- decl:)
(:include
- 1
-
- 0
-
- -57
-
-
- 2
- decl:)
(:include
- 1
-
- 0
-
- -14
+ -672 decl:)@]
+
+
+ 0
+
+ -49
+
+
+
+ 0
+
+
+
+
+ 0
+
+ -50
+
+
+
+ 0
+
+
+
+
+ 0
+
+ -51
+
+
+
+ 0
+
+ 0
@@ -5489,18 +5513,7 @@
- 3
- 2
- [@(:include
- 1
-
- 0
-
- -36
-
-
- 2
- def:)@]
+ 0
@@ -5511,18 +5524,7 @@
- 3
- 2
- [@(:include
- 1
-
- 0
-
- -26
-
-
- 2
- def:)@]
+ 0
@@ -5533,18 +5535,7 @@
- 3
- 2
- [@(:include
- 1
-
- 0
-
- -37
-
-
- 2
- decl:)@]
+ 0
@@ -5555,7 +5546,18 @@
- 0
+ 3
+ 2
+ [@(:include
+ 1
+
+ 0
+
+ -72
+
+
+ 2
+ decl:)@]
@@ -5577,7 +5579,18 @@
- 0
+ 3
+ 2
+ [@(:include
+ 1
+
+ 0
+
+ -64
+
+
+ 2
+ def:)@]
@@ -5599,7 +5612,63 @@
- 0
+ 13
+ 2
+ [@(:include
+ 1
+
+ 0
+
+ -46
+
+
+ 2
+ decl:)
(:include
+ 1
+
+ 0
+
+ -54
+
+
+ 2
+ decl:)
(:include
+ 1
+
+ 0
+
+ -79
+
+
+ 2
+ decl:)
(:include
+ 1
+
+ 0
+
+ -35
+
+
+ 2
+ decl:)
(:include
+ 1
+
+ 0
+
+ -71
+
+
+ 2
+ decl:)
(:include
+ 1
+
+ 0
+
+ -15
+
+
+ 2
+ decl:)@]
@@ -5665,7 +5734,18 @@
- 0
+ 3
+ 2
+ [@(:include
+ 1
+
+ 0
+
+ -74
+
+
+ 2
+ def:)@]
@@ -5687,18 +5767,7 @@
- 3
- 2
- [@(:include
- 1
-
- 0
-
- -58
-
-
- 2
- def:)@]
+ 0
@@ -5709,18 +5778,7 @@
- 3
- 2
- [@(:include
- 1
-
- 0
-
- -76
-
-
- 2
- decl:)@]
+ 0
@@ -5730,28 +5788,6 @@
-70
-
- 3
- 2
- [@(:include
- 1
-
- 0
-
- -80
-
-
- 2
- decl:)@]
-
-
-
-
- 0
-
- -9
-
- 0
@@ -5786,18 +5822,7 @@
- 3
- 2
- [@(:include
- 1
-
- 0
-
- -60
-
-
- 2
- def:)@]
+ 0
@@ -5830,7 +5855,18 @@
- 0
+ 3
+ 2
+ [@(:include
+ 1
+
+ 0
+
+ -18
+
+
+ 2
+ def:)@]
@@ -5841,7 +5877,18 @@
- 0
+ 3
+ 2
+ [@(:include
+ 1
+
+ 0
+
+ -33
+
+
+ 2
+ def:)@]
@@ -5852,54 +5899,7 @@
- 11
- 2
- [@(:include
- 1
-
- 0
-
- -17
-
-
- 2
- def:)
(:include
- 1
-
- 0
-
- -80
-
-
- 2
- decl:)
typedef (:link
- 1
-
- 0
-
- -80
-
-
- 2
- :)<struct throw_function_,char const *> throw_function;
typedef (:link
- 1
-
- 0
-
- -80
-
-
- 2
- :)<struct throw_file_,char const *> throw_file;
typedef (:link
- 1
-
- 0
-
- -80
-
-
- 2
- :)<struct throw_line_,int> throw_line;@]
+ 0
@@ -5946,7 +5946,36 @@
- 0
+ 7
+ 2
+ [@template <class E, class Tag1, class T1, ..., class TagN, class TN>
E const & (:link
+ 1
+
+ 0
+
+ -5
+
+
+ 2
+ mod="/":)( E const & x,
(:link http://www.boost.org/libs/tuple/doc/tuple_users_guide.html|tuple:)<
(:link
+ 1
+
+ 0
+
+ -10
+
+
+ 2
+ :)<Tag1,T1>,
...,
(:link
+ 1
+
+ 0
+
+ -10
+
+
+ 2
+ :)<TagN,TN> > const & v );@]
@@ -5957,7 +5986,36 @@
- 0
+ 7
+ 2
+ [@(:link
+ 1
+
+ 0
+
+ -6
+
+
+ 2
+ mod="m":)();
(:link
+ 1
+
+ 0
+
+ -6
+
+
+ 2
+ mod="m":)( (:link
+ 1
+
+ 0
+
+ -62
+
+
+ 2
+ :) const & x );@]
@@ -5982,6 +6040,28 @@
0
+
+
+ 0
+
+ -9
+
+
+
+ 3
+ 2
+ [@template <class T>
---unspecified--- (:link
+ 1
+
+ 0
+
+ -9
+
+
+ 2
+ :)( T const & e );@]
+
+ 0
@@ -5990,7 +6070,18 @@
- 0
+ 3
+ 2
+ [@template <class Tag,class T>
class (:link
+ 1
+
+ 0
+
+ -10
+
+
+ 2
+ :);@]
@@ -6001,27 +6092,7 @@
- 5
- 2
- [@#ifdef BOOST_NO_EXCEPTIONS
void (:link
- 1
-
- 0
-
- -11
-
-
- 2
- :)( std::exception const & e ); // user defined
#else
template <class E>
void (:link
- 1
-
- 0
-
- -11
-
-
- 2
- :)( E const & e );
#endif@]
+ 0
@@ -6054,18 +6125,7 @@
- 3
- 2
- [@std::string (:link
- 1
-
- 0
-
- -14
-
-
- 2
- :)();@]
+ 0
@@ -6076,7 +6136,27 @@
- 0
+ 5
+ 2
+ [@void (:link
+ 1
+
+ 0
+
+ -15
+
+
+ 2
+ :)( (:link
+ 1
+
+ 0
+
+ -79
+
+
+ 2
+ :) const & ep );
@@ -6100,7 +6180,7 @@
32
- [@class (:link
+ [@typedef T (:link 10
@@ -6109,7 +6189,7 @@
2
- :);@]
+ mod="m":);@]
@@ -6149,7 +6229,7 @@
0
- -21
+ -24
@@ -6178,17 +6258,6 @@
0
-
-
- 0
-
- -24
-
-
-
- 0
-
- 0
@@ -6197,45 +6266,7 @@
- 9
- 2
- [@(:link
- 1
-
- 0
-
- -31
-
-
- 2
- mod="m":) const & (:link
- 1
-
- 0
-
- -25
-
-
- 2
- mod="m":)() const;
(:link
- 1
-
- 0
-
- -31
-
-
- 2
- mod="m":) & (:link
- 1
-
- 0
-
- -25
-
-
- 2
- mod="m":)();@]
+ 0
@@ -6268,18 +6299,7 @@
- 3
- 2
- [@(:link
- 1
-
- 0
-
- -28
-
-
- 2
- mod="m":)();@]
+ 0
@@ -6290,18 +6310,18 @@
- 3
- 2
- [@typedef ---unspecified--- (:link
- 1
-
- 0
-
- -29
-
-
- 2
- :);@]
+ 0
+
+
+
+
+ 0
+
+ -21
+
+
+
+ 0
@@ -6312,27 +6332,7 @@
- 5
- 2
- [@void (:link
- 1
-
- 0
-
- -30
-
-
- 2
- :)( (:link
- 1
-
- 0
-
- -29
-
-
- 2
- :) const & ep );
+ 0
@@ -6343,18 +6343,7 @@
- 3
- 2
- [@typedef T (:link
- 1
-
- 0
-
- -31
-
-
- 2
- mod="m":);@]
+ 0
@@ -6365,7 +6354,18 @@
- 0
+ 3
+ 2
+ [@(:link
+ 1
+
+ 0
+
+ -32
+
+
+ 2
+ mod="m":)();@]
@@ -6398,7 +6398,27 @@
- 0
+ 5
+ 2
+ [@template <class T>
(:link
+ 1
+
+ 0
+
+ -79
+
+
+ 2
+ :) (:link
+ 1
+
+ 0
+
+ -35
+
+
+ 2
+ :)( T const & e );@]
@@ -6409,7 +6429,27 @@
- 0
+ 5
+ 2
+ [@char const *
+ 1
+
+ 0
+
+ -36
+
+
+ 2
+ ( boost::
+ 1
+
+ 0
+
+ -62
+
+
+ 2
+ const & e ) throw();@]
@@ -6420,18 +6460,7 @@
- 3
- 2
- [@template <class T>
---unspecified--- (:link
- 1
-
- 0
-
- -37
-
-
- 2
- :)( T const & e );@]
+ 0
@@ -6486,27 +6515,7 @@
- 5
- 2
- [@template <class E, class Tag, class T>
E const & (:link
- 1
-
- 0
-
- -42
-
-
- 2
- mod="/":)( E const & x, (:link
- 1
-
- 0
-
- -80
-
-
- 2
- :)<Tag,T> const & v );@]
+ 0
@@ -6528,27 +6537,7 @@
- 5
- 2
- [@typedef (:link
- 1
-
- 0
-
- -80
-
-
- 2
- :)<struct tag_original_exception_type,std::type_info const *>
- 1
-
- 0
-
- -44
-
-
- 2
- ;@]
+ 0
@@ -6570,7 +6559,27 @@
- 0
+ 5
+ 2
+ [@class
(:link
+ 1
+
+ 0
+
+ -46
+
+
+ 2
+ :):
public std::exception
public boost::
+ 1
+
+ 0
+
+ -62
+
+
+ 2
+
{
---unspecified---
};@]
@@ -6581,27 +6590,7 @@
- 5
- 2
- [@(:link
- 1
-
- 0
-
- -47
-
-
- 2
- mod="m":)( (:link
- 1
-
- 0
-
- -31
-
-
- 2
- mod="m":) const & v );@]
+ 0
@@ -6612,27 +6601,7 @@
- 5
- 2
- [@template <class T>
(:link
- 1
-
- 0
-
- -29
-
-
- 2
- :) (:link
- 1
-
- 0
-
- -48
-
-
- 2
- :)( T const & e );@]
+ 0
@@ -6665,7 +6634,36 @@
- 0
+ 7
+ 2
+ [@template <class E>
std::string (:link
+ 1
+
+ 0
+
+ -51
+
+
+ 2
+ :)( E const & e );
std::string (:link
+ 1
+
+ 0
+
+ -51
+
+
+ 2
+ :)( (:link
+ 1
+
+ 0
+
+ -79
+
+
+ 2
+ :) const & p );@]
@@ -6687,7 +6685,18 @@
- 0
+ 3
+ 2
+ [@std::string (:link
+ 1
+
+ 0
+
+ -53
+
+
+ 2
+ :)();@]
@@ -6698,7 +6707,27 @@
- 0
+ 5
+ 2
+ [@typedef (:link
+ 1
+
+ 0
+
+ -10
+
+
+ 2
+ :)<struct tag_original_exception_type,std::type_info const *>
+ 1
+
+ 0
+
+ -54
+
+
+ 2
+ ;@]
@@ -6733,7 +6762,7 @@
52
- [@char const *
+ [@(:link 10
@@ -6742,7 +6771,7 @@
2
- ( boost::
+ mod="m":)( (:link 10
@@ -6751,7 +6780,7 @@
2
- const & e ) throw();@]
+ mod="m":) const & v );@]
@@ -6773,27 +6802,7 @@
- 5
- 2
- [@class
(:link
- 1
-
- 0
-
- -59
-
-
- 2
- :):
public std::exception
public boost::
- 1
-
- 0
-
- -17
-
-
- 2
-
{
---unspecified---
};@]
+ 0
@@ -6815,18 +6824,18 @@
- 19
+ 92
- [@#if !defined( BOOST_EXCEPTION_DISABLE )
#include <(:link
+ [@(:link 10
- -78
+ -172
- :)>
#include <boost/current_function.hpp>
#define (:link
+ mod="m":) const & (:link 10
@@ -6835,52 +6844,16 @@
2
- :)(x)\
::boost::(:link
+ mod="m":)() const;
(:link 10
- -11
+ -172
- :)( ::boost::(:link
- 1
-
- 0
-
- -74
-
-
- 2
- :)(x) <<\
::boost::(:link
- 1
-
- 0
-
- -78
-
-
- 2
- |throw_function:)(BOOST_CURRENT_FUNCTION) <<\
::boost::(:link
- 1
-
- 0
-
- -78
-
-
- 2
- |throw_file:)(__FILE__) <<\
::boost::(:link
- 1
-
- 0
-
- -78
-
-
- 2
- |throw_line:)((int)__LINE__) )
#else
#define (:link
+ mod="m":) & (:link 10
@@ -6889,16 +6862,7 @@
2
- :)(x) ::boost::(:link
- 1
-
- 0
-
- -11
-
-
- 2
- :)(x)
#endif@]
+ mod="m":)();@]
@@ -6909,18 +6873,9 @@
- 5
+ 32
- [@(:link
- 1
-
- 0
-
- -29
-
-
- 2
- :) (:link
+ [@class (:link 10
@@ -6929,7 +6884,7 @@
2
- :)();@]
+ :);@]
@@ -6940,9 +6895,27 @@
- 1
+ 52
- [@template <class ErrorInfo,class E>
typename ErrorInfo::(:link error_info::value_type mod="m":) const * (:link get_error_info:)( E const & x );
template <class ErrorInfo,class E>
typename ErrorInfo::(:link error_info::value_type mod="m":) * (:link get_error_info:)( E & x );@]
+ [@#ifdef BOOST_NO_EXCEPTIONS
void (:link
+ 1
+
+ 0
+
+ -63
+
+
+ 2
+ :)( std::exception const & e ); // user defined
#else
template <class E>
void (:link
+ 1
+
+ 0
+
+ -63
+
+
+ 2
+ :)( E const & e );
#endif@]
@@ -6953,18 +6926,7 @@
- 3
- 2
- [@template <class E>
E *
- 1
-
- 0
-
- -64
-
-
- 2
- ();@]
+ 0
@@ -6986,36 +6948,7 @@
- 7
- 2
- [@template <class E>
std::string (:link
- 1
-
- 0
-
- -66
-
-
- 2
- :)( E const & e );
std::string (:link
- 1
-
- 0
-
- -66
-
-
- 2
- :)( (:link
- 1
-
- 0
-
- -29
-
-
- 2
- :) const & p );@]
+ 0
@@ -7026,7 +6959,18 @@
- 0
+ 3
+ 2
+ [@template <class T>
---unspecified--- (:link
+ 1
+
+ 0
+
+ -67
+
+
+ 2
+ :)( T const & x );@]
@@ -7062,17 +7006,6 @@
0
-
-
- 0
-
- -9
-
-
-
- 0
-
- 0
@@ -7081,7 +7014,27 @@
- 0
+ 5
+ 2
+ [@(:link
+ 1
+
+ 0
+
+ -79
+
+
+ 2
+ :) (:link
+ 1
+
+ 0
+
+ -71
+
+
+ 2
+ :)();@]
@@ -7092,7 +7045,9 @@
- 0
+ 1
+ 2
+ [@template <class ErrorInfo,class E>
typename ErrorInfo::(:link error_info::value_type mod="m":) const * (:link get_error_info:)( E const & x );
template <class ErrorInfo,class E>
typename ErrorInfo::(:link error_info::value_type mod="m":) * (:link get_error_info:)( E & x );@]
@@ -7103,7 +7058,18 @@
- 0
+ 3
+ 2
+ [@template <class E>
E *
+ 1
+
+ 0
+
+ -73
+
+
+ 2
+ ();@]
@@ -7114,18 +7080,7 @@
- 3
- 2
- [@template <class T>
---unspecified--- (:link
- 1
-
- 0
-
- -74
-
-
- 2
- :)( T const & x );@]
+ 0
@@ -7136,7 +7091,90 @@
- 0
+ 19
+ 2
+ [@#if !defined( BOOST_EXCEPTION_DISABLE )
#include <(:link
+ 1
+
+ 0
+
+ -7
+
+
+ 2
+ :)>
#include <boost/current_function.hpp>
#define (:link
+ 1
+
+ 0
+
+ -75
+
+
+ 2
+ :)(x)\
::boost::(:link
+ 1
+
+ 0
+
+ -63
+
+
+ 2
+ :)( ::boost::(:link
+ 1
+
+ 0
+
+ -67
+
+
+ 2
+ :)(x) <<\
::boost::(:link
+ 1
+
+ 0
+
+ -7
+
+
+ 2
+ |throw_function:)(BOOST_CURRENT_FUNCTION) <<\
::boost::(:link
+ 1
+
+ 0
+
+ -7
+
+
+ 2
+ |throw_file:)(__FILE__) <<\
::boost::(:link
+ 1
+
+ 0
+
+ -7
+
+
+ 2
+ |throw_line:)((int)__LINE__) )
#else
#define (:link
+ 1
+
+ 0
+
+ -75
+
+
+ 2
+ :)(x) ::boost::(:link
+ 1
+
+ 0
+
+ -63
+
+
+ 2
+ :)(x)
#endif@]
@@ -7147,36 +7185,7 @@
- 7
- 2
- [@template <class E, class Tag1, class T1, ..., class TagN, class TN>
E const & (:link
- 1
-
- 0
-
- -76
-
-
- 2
- mod="/":)( E const & x,
(:link http://www.boost.org/libs/tuple/doc/tuple_users_guide.html|tuple:)<
(:link
- 1
-
- 0
-
- -80
-
-
- 2
- :)<Tag1,T1>,
...,
(:link
- 1
-
- 0
-
- -80
-
-
- 2
- :)<TagN,TN> > const & v );@]
+ 0
@@ -7187,36 +7196,7 @@
- 7
- 2
- [@(:link
- 1
-
- 0
-
- -77
-
-
- 2
- mod="m":)();
(:link
- 1
-
- 0
-
- -77
-
-
- 2
- mod="m":)( (:link
- 1
-
- 0
-
- -17
-
-
- 2
- :) const & x );@]
+ 0
@@ -7238,7 +7218,18 @@
- 0
+ 3
+ 2
+ [@typedef ---unspecified--- (:link
+ 1
+
+ 0
+
+ -79
+
+
+ 2
+ :);@]
@@ -7249,9 +7240,9 @@
- 3
+ 52
- [@template <class Tag,class T>
class (:link
+ [@template <class E, class Tag, class T>
E const & (:link 10
@@ -7260,7 +7251,16 @@
2
- :);@]
+ mod="/":)( E const & x, (:link
+ 1
+
+ 0
+
+ -10
+
+
+ 2
+ :)<Tag,T> const & v );@]
@@ -7287,25 +7287,25 @@
52
- (:auto !!!:)
Exception types should use virtual inheritance when deriving from other exception types. This insight is due to Andrew Koenig. Using virtual inheritance prevents ambiguity problems in the exception handler:
[@#include <iostream>
struct my_exc1 : std::exception { char const* what() const throw(); };
struct my_exc2 : std::exception { char const* what() const throw(); };
struct your_exc3 : my_exc1, my_exc2 {};
int
main()
{
try { throw your_exc3(); }
catch(std::exception const& e) {}
catch(...) { std::cout << "whoops!" << std::endl; }
}@]
The program above outputs "whoops!" because the conversion to std::exception is ambiguous.
The overhead introduced by virtual inheritance is always negligible in the context of exception handling. Note that virtual bases are initialized directly by the constructor of the most-derived-type (the type passed to the throw statement, in case of exceptions.) However, typically this detail is of no concern when boost::(:link
+ (:auto !!!:)
(:include synopsis:)
!!!!Requirements:
E must be boost::(:link 10
- -17
+ -622
- :) is used, because it enables exception types to be trivial structs with no members (there's nothing to initialize.) See (:link
+ :), or a type that derives (indirectly) from boost::(:link 10
- -6
+ -622
- mod="w":).
+ :).
!!!!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:)
@@ -7318,34 +7318,34 @@
72
- (:auto !!!:)
Deriving from boost::(:link
+ (:auto !!!:)
(:include decl:)
!!!!Effects:
* Default constructor: initializes an empty boost::(:link 10
- -17
+ -622
- :) effectively decouples the semantics of a failure from the information that is relevant to each individual instance of reporting a failure with a given semantic.
In other words: with boost::(:link
+ :) object.
* Copy constructor: initializes a boost::(:link 10
- -17
+ -622
- :), what data a given exception object transports depends primarily on the context in which failures are reported (not on its type.) Since exception types need no members, it becomes very natural to throw exceptions that derive from more than one type to indicate multiple appropriate semantics:
[@struct exception_base: virtual std::exception, virtual boost::(:link
+ :) object which shares ownership with x of all data added through (:link 10
- -17
+ -802
- :) { };
struct io_error: virtual exception_base { };
struct file_error: virtual io_error { };
struct read_error: virtual io_error { };
struct file_read_error: virtual file_error, virtual read_error { };@]
Using this approach, exception types become a simple tagging system for categorizing errors and selecting failures in exception handlers.
+ mod="/":), including data that is added at a future time.
!!!!Throws:
Nothing.
@@ -7356,360 +7356,9 @@
- 79
+ 12
- (:auto !!:)
!!!Why doesn't boost::exception derive from std::exception?
Despite that (:link
- 1
-
- 0
-
- -5
-
-
- 2
- |virtual inheritance should be used in deriving from base exception types:), many programmers fail to follow this principle when deriving from std::exception. If boost::(:link
- 1
-
- 0
-
- -17
-
-
- 2
- :) derives from std::exception, using the (:link
- 1
-
- 0
-
- -74
-
-
- 2
- :) function with such user-defined types would introduce dangerous ambiguity which would break all catch(std::exception &) statements.
Of course, boost::(:link
- 1
-
- 0
-
- -17
-
-
- 2
- :) should not be used to replace std::exception as a base type in exception type hierarchies. Instead, it should be included as a virtual base, in addition to std::exception (which should also be derived virtually.)
!!!Why is boost::exception abstract?
To prevent exception-neutral contexts from erroneously erasing the type of the original exception when adding (:link
- 1
-
- 0
-
- -80
-
-
- 2
- :) to an active exception object:
[@catch( boost::(:link
- 1
-
- 0
-
- -17
-
-
- 2
- :) & e )
{
e (:link
- 1
-
- 0
-
- -42
-
-
- 2
- |<<:) foo_info(foo);
throw e; //Compile error: boost::(:link
- 1
-
- 0
-
- -17
-
-
- 2
- :) is abstract
}@]
The correct code is:
[@catch( boost::(:link
- 1
-
- 0
-
- -17
-
-
- 2
- :) & e )
{
e (:link
- 1
-
- 0
-
- -42
-
-
- 2
- |<<:) foo_info(foo);
throw; //Okay, re-throwing the original exception object.
}@]
!!!What is the space overhead of the boost::exception base class?
The space overhead for the boost::exception data members is negligible in the context of exception handling. Throwing objects that derive from boost::(:link
- 1
-
- 0
-
- -17
-
-
- 2
- :) does not by itself cause dynamic memory allocations.
Deriving from boost::(:link
- 1
-
- 0
-
- -17
-
-
- 2
- :) enables any data to be added to exceptions, which usually does allocate memory. However, this memory is reclaimed when the exception has been handled, and since typically user code does not allocate memory during the unrolling of the stack, adding error info to exceptions should not cause memory fragmentation.
!!!Should I use boost::throw_exception or BOOST_THROW_EXCEPTION or just throw?
The benefit of calling boost::(:link
- 1
-
- 0
-
- -11
-
-
- 2
- :) instead of using throw directly is that it ensures that the emitted exception derives from boost::(:link
- 1
-
- 0
-
- -17
-
-
- 2
- :) and that it is compatible with boost::(:link
- 1
-
- 0
-
- -62
-
-
- 2
- :).
The (:link
- 1
-
- 0
-
- -61
-
-
- 2
- :) macro also results in a call to boost::(:link
- 1
-
- 0
-
- -11
-
-
- 2
- :), but in addition it records in the exception object the __FILE__ and __LINE__ of the throw, as well as the pretty name of the function that throws. This has virtually no overhead, yet enables boost::(:link
- 1
-
- 0
-
- -66
-
-
- 2
- :) to compose a more useful, if not user-friendly message.
Typical use of boost::(:link
- 1
-
- 0
-
- -66
-
-
- 2
- :) is:
[@catch( boost::exception & e )
{
std::cerr << "OMG!" << boost::diagnostic_information(e);
}
catch( ... )
{
std::cerr << "OMG!!!";
}@]
This is a possible message it may display, the first line is only possible if (:link
- 1
-
- 0
-
- -61
-
-
- 2
- :) is used:
[@example_io.cpp(70): Throw in function class boost::shared_ptr<struct _iobuf> __cdecl my_fopen(const char *,const char *)
Dynamic exception type: class boost::exception_detail::clone_impl<class fopen_error>
std::exception::what: example_io error
[struct boost::(:link
- 1
-
- 0
-
- -36
-
-
- 2
- :)_ *] = fopen
[struct boost::(:link
- 1
-
- 0
-
- -58
-
-
- 2
- :)_ *] = 2, "No such file or directory"
[struct boost::(:link
- 1
-
- 0
-
- -10
-
-
- 2
- :)_ *] = tmp1.txt
[struct boost::(:link
- 1
-
- 0
-
- -52
-
-
- 2
- :)_ *] = rb@]
!!!Why is boost::exception integrated in boost::throw_exception?
The boost::(:link
- 1
-
- 0
-
- -11
-
-
- 2
- :) function predates the Boost Exception library and there has been some concern about its current behavior of injecting boost::(:link
- 1
-
- 0
-
- -17
-
-
- 2
- :) as a base of any exception passed to boost::(:link
- 1
-
- 0
-
- -11
-
-
- 2
- :). Such concerns are dictated by the typical strict interpretation of a common principle in C and C++, that users only pay for features they actually use.
The problem is that users of Boost Exception can't by themselves cause a library to throw types that derive from boost::(:link
- 1
-
- 0
-
- -17
-
-
- 2
- :), and without this they can't use any of the Boost Exception facilities.
For example, if a user wants to use Boost Serialization in a separate thread, it is desirable to be able to transport exceptions emitted by that library into the main thread where they can be analyzed to generate a user-friendly message. This can be easily achieved using boost::(:link
- 1
-
- 0
-
- -29
-
-
- 2
- :), but this requires that Boost Serialization throws exceptions using boost::(:link
- 1
-
- 0
-
- -37
-
-
- 2
- :). If Boost Serialization calls boost::(:link
- 1
-
- 0
-
- -11
-
-
- 2
- :) to throw, this behavior happens automatically and transparently.
The cost of this integration is:
* In terms of space: a pointer and 3 ints are added to the static size of exception objects.
* In terms of speed: the pointer is initialized to null at the point of the throw.
* In terms of coupling: about 400 self-contained lines of C++ with no external includes.
!!!Why use operator<< overload for adding info to exceptions?
Before throwing an object of type that derives from boost::(:link
- 1
-
- 0
-
- -17
-
-
- 2
- :), it is often desirable to add one or more (:link
- 1
-
- 0
-
- -80
-
-
- 2
- :) objects in it. The syntactic sugar provided by (:link
- 1
-
- 0
-
- -42
-
-
- 2
- :) allows this to be done directly in a throw expression:
[@throw error() (:link
- 1
-
- 0
-
- -42
-
-
- 2
- |<<:) foo_info(foo) (:link
- 1
-
- 0
-
- -42
-
-
- 2
- |<<:) bar_info(bar);@]
which saves typing compared to this possible alternative:
[@error e;
e.add(foo_info(foo));
e.add(bar_info(bar));
throw e;@]
and looks better than something like:
[@throw error().add(foo_info(foo)).add(bar_info(bar));@]
!!!Why is operator<< allowed to throw?
This question is referring to the following issue. Consider this throw statement example:
[@throw file_open_error() (:link
- 1
-
- 0
-
- -42
-
-
- 2
- |<<:) file_name(fn);@]
The intention here is to throw a file_open_error, however if (:link
- 1
-
- 0
-
- -42
-
-
- 2
- mod="/":) fails to copy the std::string contained in the file_name (:link
- 1
-
- 0
-
- -80
-
-
- 2
- :) wrapper, a std::bad_alloc could propagate instead. This behavior seems undesirable to some programmers.
Bjarne Stroustrup, The C++ Programming Language, 3rd Edition, page 371:
->''"Throwing an exception requires an object to throw. A C++ implementation is required to have enough spare memory to be able to throw bad_alloc in case of memory exhaustion. However, it is possible that throwing some other exception will cause memory exhaustion."''
So, an attempt to throw any exception may already result in propagating std::bad_alloc instead.
+ (:auto !!:)
!!!Synopsis
(:include synopsis:)
@@ -7720,108 +7369,247 @@
- 33
+ 372
- (:auto !!!:)
Traditionally, when using exceptions to report failures, the throw site:
*creates an exception object of the appropriate type, and
*stuffs it with data relevant to the detected error.
A higher context in the program contains a catch statement which:
*selects failures based on exception types, and
*inspects exception objects for data required to deal with the problem.
The main issue with this "traditional" approach is that often, the data available at the point of the throw is insufficient for the catch site to handle the failure.
Here is an example of a catch statement:
[@catch( file_read_error & e )
{
std::cerr << e.file_name();
}@]
And here is a possible matching throw:
[@void
read_file( FILE * f )
{
....
size_t nr=fread(buf,1,count,f);
if( ferror(f) )
throw file_read_error(???);
....
}@]
Clearly, the problem is that the handler requires a file name but the read_file function does not have a file name to put in the exception object; all it has is a FILE pointer!
In an attempt to deal with this problem, we could modify read_file to accept a file name:
[@void
read_file( FILE * f, char const * name )
{
....
size_t nr=fread(buf,1,count,f);
if( ferror(f) )
throw file_read_error(name);
....
}@]
This is not a real solution: it simply shifts the burden of supplying a file name to the immediate caller of the read_file function.
->''In general, the data required to handle a given library-emitted exception depends on the program that links to it. Many contexts between the throw and the catch may have relevant information which must be transported to the exception handler.''
!!!Exception wrapping
The idea of exception wrapping is to catch an exception from a lower level function (such as the read_file function above), and throw a new exception object that contains the original exception (and also carries a file name.) This method seems to be particularly popular with C++ programmers with Java background.
Exception wrapping leads to the following problems:
*To wrap an exception object it must be copied, which may result in slicing.
*Wrapping is practically impossible to use in generic contexts.
The second point is actually special case of violating the exception neutrality principle. Most contexts in a program can not handle exceptions; such contexts should not interfere with the process of exception handling.
!!!The boost::exception solution
*Simply derive your exception types from boost::(:link
+ (:auto !!!:)
When you catch an exception, you can call (:link 10
- -17
+ -712
- :).
*Confidently limit the throw site to provide only data that is available naturally.
*Use exception-neutral contexts between the throw and the catch to augment exceptions with more relevant data as they bubble up.
For example, in the throw statement below we only add the errno code, since this is the only failure-relevant information available in this context:
[@struct exception_base: virtual std::exception, virtual boost::(:link
+ :) to get an (:link 10
- -17
+ -792
- :) { };
struct io_error: virtual exception_base { };
struct file_read_error: virtual io_error { };
typedef boost::(:link
+ :) object:
[@#include <(:link 10
- -80
+ -602
- :)<struct tag_errno_code,int> errno_code;
void
read_file( FILE * f )
{
....
size_t nr=fread(buf,1,count,f);
if( ferror(f) )
throw file_read_error() (:link
+ :)>
#include <boost/thread.hpp>
#include <boost/bind.hpp>
void do_work(); //throws cloning-enabled boost::(:link 10
- -42
+ -622
- |<<:) errno_code(errno);
....
}@]
In a higher exception-neutral context, we add the file name to ''any'' exception that derives from boost::(:link
+ :)s
void
worker_thread( boost::(:link 10
- -17
+ -792
- :):
[@typedef boost::(:link
+ :) & error )
{
try
{
do_work();
error = boost::(:link 10
- -80
+ -792
- :)<struct tag_file_name,std::string> file_name;
....
try
{
if( FILE * fp=fopen("foo.txt","rt") )
{
shared_ptr<FILE> f(fp,fclose);
....
read_file(fp); //throws types deriving from boost::(:link
+ :)();
}
catch(
... )
{
error = boost::(:link 10
- -17
+ -712
- :)
do_something();
....
}
else
throw file_open_error() (:link
+ :)();
}
}@]
In the above example, note that (:link 10
- -42
+ -712
- |<<:) errno_code(errno);
}
catch( boost::(:link
+ :) captures the original type of the exception object. The exception can be thrown again using the (:link 10
- -17
+ -152
- :) & e )
{
e (:link
+ :) function:
[@// ...continued
void
work()
{
boost::(:link 10
- -42
+ -792
- |<<:) file_name("foo.txt");
throw;
}@]
Finally here is how the handler retrieves data from exceptions that derive from boost::(:link
+ :) 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 10
- -17
+ -152
- :):
[@catch( io_error & e )
{
std::cerr << "I/O Error!\n";
if( std::string const * fn=(:link
+ :)(error);
}@]
Note that (:link
+ 1
+
+ 0
+
+ -71
+
+
+ 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
+
+ -79
+
+
+ 2
+ :) points to an instance of std::bad_alloc, or
* if (:link
+ 1
+
+ 0
+
+ -9
+
+
+ 2
+ :) was not used in the throw-expression passed to the original throw statement and the current implementation does not have the necessary compiler-specific support to copy the exception automatically, in which case the returned (:link
+ 1
+
+ 0
+
+ -79
+
+
+ 2
+ :) points to an instance of (:link
+ 1
+
+ 0
+
+ -46
+
+
+ 2
+ :).
Regardless, the use of (:link
+ 1
+
+ 0
+
+ -71
+
+
+ 2
+ :) and (:link
+ 1
+
+ 0
+
+ -15
+
+
+ 2
+ :) in the above examples is well-formed.
+
+
+
+
+ 0
+
+ -9
+
+
+
+ 21
+ 2
+ (:auto !!!:)
(:include synopsis:)
!!!!Requirements:
* T must be a class with an accessible no-throw copy constructor.
* If T has any virtual base types, those types must have an accessible default 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
+
+ -79
+
+
+ 2
+ :) support in Boost Exception. For example:
[@class
my_exception:
public std::exception
{
};
....
throw boost::(:link
+ 1
+
+ 0
+
+ -9
+
+
+ 2
+ :)(my_exception());@]
Unless (:link
+ 1
+
+ 0
+
+ -9
+
+
+ 2
+ :) is called at the time an exception object is used in a throw-expression, an attempt to copy it using (:link
+ 1
+
+ 0
+
+ -71
+
+
+ 2
+ :) may return an (:link
+ 1
+
+ 0
+
+ -79
+
+
+ 2
+ :) which refers to an instance of (:link
+ 1
+
+ 0
+
+ -46
+
+
+ 2
+ :). See (:link
+ 1
+
+ 0
+
+ -71
+
+
+ 2
+ :) for details.
!!!!Note:
Instead of using the throw keyword directly, it is preferable to call boost::(:link 10
@@ -7830,43 +7618,25 @@
2
- :)<file_name>(e) )
std::cerr << "File name: " << *fn << "\n";
if( int const * c=(:link
+ :). This is guaranteed to throw an exception that derives from boost::(:link 10
- -63
+ -622
- :)<errno_code>(e) )
std::cerr << "OS says: " << strerror(*c) << "\n";
}@]
In addition, boost::(:link
+ :) and supports the (:link 10
- -66
+ -792
- :) can be used to compose an automatic (if not user-friendly) message that contains all of the (:link
- 1
-
- 0
-
- -80
-
-
- 2
- :) objects added to a boost::(:link
- 1
-
- 0
-
- -17
-
-
- 2
- :). This is useful for inclusion in logs and other diagnostic objects.
+ :) functionality.
@@ -7877,9 +7647,18 @@
- 7
+ 412
- (:auto !!!:)
(:include synopsis:)
This type is designed to be used as a standard (:link
+ (:auto !!!:)
(:include synopsis:)
!!!!Requirements:
T must have accessible copy constructor and must not be a reference (there is no requirement that T's copy constructor does not throw.)
!!!!Description:
This class template is used to associate a Tag type with a value type T. Objects of type (:link
+ 1
+
+ 0
+
+ -10
+
+
+ 2
+ :)<Tag,T> can be passed to (:link 10
@@ -7888,25 +7667,169 @@
2
- :) instance for transporting a relevant file name in exceptions deriving from boost::(:link
+ mod="/":) to be stored in objects of type boost::(:link 10
- -17
+ -622
- :).
!!!Example:
(:include
+ :).
!!!!Usage:
The header <(:link 10
- -39
+ -442
- :)
+ :)> provides a declaration of the (:link
+ 1
+
+ 0
+
+ -10
+
+
+ 2
+ :) template, which is sufficient for the purpose of typedefing an instance for specific Tag and T, for example:
[@#include <(:link
+ 1
+
+ 0
+
+ -44
+
+
+ 2
+ :)>
struct tag_errno;
typedef boost::(:link
+ 1
+
+ 0
+
+ -10
+
+
+ 2
+ :)<tag_errno,int> errno_info;@]
Or, the shorter equivalent:
[@#include <(:link
+ 1
+
+ 0
+
+ -44
+
+
+ 2
+ :)>
typedef boost::(:link
+ 1
+
+ 0
+
+ -10
+
+
+ 2
+ :)<struct tag_errno,int> errno_info;@]
This errno_info typedef can be passed to (:link
+ 1
+
+ 0
+
+ -80
+
+
+ 2
+ mod="/":) (#include <(:link
+ 1
+
+ 0
+
+ -29
+
+
+ 2
+ :)> first) to store an int named tag_errno in exceptions of types that derive from boost::(:link
+ 1
+
+ 0
+
+ -62
+
+
+ 2
+ :):
[@throw file_read_error() (:link
+ 1
+
+ 0
+
+ -80
+
+
+ 2
+ |<<:) errno_info(errno);@]
It can also be passed to (:link
+ 1
+
+ 0
+
+ -72
+
+
+ 2
+ :) (#include <(:link
+ 1
+
+ 0
+
+ -56
+
+
+ 2
+ :)> first) to retrieve the tag_errno int from a boost::(:link
+ 1
+
+ 0
+
+ -62
+
+
+ 2
+ :):
[@catch( boost::(:link
+ 1
+
+ 0
+
+ -62
+
+
+ 2
+ :) & x )
{
if( int const * e=boost::(:link
+ 1
+
+ 0
+
+ -72
+
+
+ 2
+ :)<errno_info>(x) )
....
}@]
For convenience and uniformity, Boost Exception defines the following commonly used (:link
+ 1
+
+ 0
+
+ -10
+
+
+ 2
+ :) typedefs, ready for use with (:link
+ 1
+
+ 0
+
+ -80
+
+
+ 2
+ mod="/":):
(:pagelist tags="error_info_instance":)
@@ -7917,81 +7840,9 @@
- 17
+ 12
- (:auto !!!:)
(:include synopsis:)
!!!!Requirements:
E must derive publicly from std::exception.
!!!!Effects:
* If BOOST_NO_EXCEPTIONS is not defined, boost::(:link
- 1
-
- 0
-
- -11
-
-
- 2
- :)(e) is equivalent to throw boost::(:link
- 1
-
- 0
-
- -37
-
-
- 2
- :)(boost::(:link
- 1
-
- 0
-
- -74
-
-
- 2
- :)(e)), unless BOOST_EXCEPTION_DISABLE is defined, in which case boost::(:link
- 1
-
- 0
-
- -11
-
-
- 2
- :)(e) is equivalent to throw e;
* If BOOST_NO_EXCEPTIONS is defined, the function is left undefined, and the user is expected to supply an appropriate definition. Callers of (:link
- 1
-
- 0
-
- -11
-
-
- 2
- :) are allowed to assume that the function never returns; therefore, if the user-defined (:link
- 1
-
- 0
-
- -11
-
-
- 2
- :) returns, the behavior is undefined.
!!!!Note:
Under BOOST_NO_EXCEPTIONS, unless BOOST_EXCEPTION_DISABLE is also defined, users can examine the passed exception object using boost::
- 1
-
- 0
-
- -63
-
-
- 2
- , or format an automatic diagnostic message using boost::
- 1
-
- 0
-
- -66
-
-
- 2
- .
+ (:auto !:)
This is an alphabetical list of all Boost Exception documentation pages.
(:pagelist fmt="index" except_tags="index noindex" mod="w":)
@@ -8002,153 +7853,27 @@
- 77
+ 72
- !!Synopsis
List of documented definitions, declarations and includes by header file:
`#include <(:link
+ (:auto !!!:)
(:include synopsis:)
This type is designed to be used as a standard (:link 10
- -78
+ -102
- :)>
[@(:include
+ :) instance for transporting the string passed as a second argument to fopen in exceptions indicating fopen failures and deriving from boost::(:link 10
- -78
+ -622
- synopsis:)@]
`#include <(:link
- 1
-
- 0
-
- -70
-
-
- 2
- :)>
[@(:include
- 1
-
- 0
-
- -70
-
-
- 2
- synopsis:)@]
`#include <(:link
- 1
-
- 0
-
- -18
-
-
- 2
- :)>
[@(:include
- 1
-
- 0
-
- -18
-
-
- 2
- synopsis:)@]
`#include <(:link
- 1
-
- 0
-
- -69
-
-
- 2
- :)>
[@(:include
- 1
-
- 0
-
- -69
-
-
- 2
- synopsis:)@]
`#include <(:link
- 1
-
- 0
-
- -49
-
-
- 2
- :)>
[@(:include
- 1
-
- 0
-
- -49
-
-
- 2
- synopsis:)@]
`#include <(:link
- 1
-
- 0
-
- -51
-
-
- 2
- :)>
[@(:include
- 1
-
- 0
-
- -51
-
-
- 2
- synopsis:)@]
`#include <(:link
- 1
-
- 0
-
- -35
-
-
- 2
- :)>
[@(:include
- 1
-
- 0
-
- -35
-
-
- 2
- synopsis:)@]
`#include <(:link
- 1
-
- 0
-
- -21
-
-
- 2
- :)>
[@(:include
- 1
-
- 0
-
- -21
-
-
- 2
- synopsis:)@]
`#include <(:link
+ :).
!!!Example:
(:include 10
@@ -8157,196 +7882,7 @@
2
- :)>
[@(:include
- 1
-
- 0
-
- -55
-
-
- 2
- synopsis:)@]
`#include <(:link
- 1
-
- 0
-
- -46
-
-
- 2
- :)>
[@(:include
- 1
-
- 0
-
- -46
-
-
- 2
- synopsis:)@]
`#include <(:link
- 1
-
- 0
-
- -53
-
-
- 2
- :)>
(:include
- 1
-
- 0
-
- -53
-
-
- 2
- synopsis:)
`#include <(:link
- 1
-
- 0
-
- -73
-
-
- 2
- :)>
(:include
- 1
-
- 0
-
- -73
-
-
- 2
- synopsis:)
`#include <(:link
- 1
-
- 0
-
- -68
-
-
- 2
- :)>
(:include
- 1
-
- 0
-
- -68
-
-
- 2
- synopsis:)
`#include <(:link
- 1
-
- 0
-
- -54
-
-
- 2
- :)>
(:include
- 1
-
- 0
-
- -54
-
-
- 2
- synopsis:)
`#include <(:link
- 1
-
- 0
-
- -34
-
-
- 2
- :)>
(:include
- 1
-
- 0
-
- -34
-
-
- 2
- synopsis:)
`#include <(:link
- 1
-
- 0
-
- -50
-
-
- 2
- :)>
(:include
- 1
-
- 0
-
- -50
-
-
- 2
- synopsis:)
`#include <
- 1
-
- 0
-
- -45
-
-
- 2
- >
(:include
- 1
-
- 0
-
- -45
-
-
- 2
- synopsis:)
`#include <(:link
- 1
-
- 0
-
- -38
-
-
- 2
- :)>
(:include
- 1
-
- 0
-
- -38
-
-
- 2
- synopsis:)
`#include <(:link
- 1
-
- 0
-
- -15
-
-
- 2
- :)>
(:include
- 1
-
- 0
-
- -15
-
-
- 2
- synopsis:)
+ :)
@@ -8357,90 +7893,9 @@
- 19
+ 12
- (: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
-
- -69
-
-
- 2
- :)>
#include <(:link
- 1
-
- 0
-
- -34
-
-
- 2
- :)>
#include <(:link
- 1
-
- 0
-
- -53
-
-
- 2
- :)>
#include <(:link
- 1
-
- 0
-
- -68
-
-
- 2
- :)>
#include <boost/shared_ptr.hpp>
#include <stdio.h>
#include <string>
#include <errno.h>
typedef boost::(:link http://www.boost.org/libs/tuple/doc/tuple_users_guide.html|tuple:)<boost::(:link
- 1
-
- 0
-
- -36
-
-
- 2
- :),boost::(:link
- 1
-
- 0
-
- -58
-
-
- 2
- :)> clib_failure;
struct file_open_error: virtual boost::(:link
- 1
-
- 0
-
- -17
-
-
- 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() <<
boost::(:link
- 1
-
- 0
-
- -10
-
-
- 2
- :)(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
-
- -63
-
-
- 2
- :).
+ (:auto !!:)
(:pagelist fmt="index" tags="type":)
@@ -8451,45 +7906,9 @@
- 9
+ 12
- (:auto !!!:)
(:include synopsis:)
!!!!Requirements:
This function must not be called outside of a catch block.
!!!!Returns:
If the current exception object can be converted to boost::(:link
- 1
-
- 0
-
- -17
-
-
- 2
- :) or std::exception, this function returns the same string value returned by (:link
- 1
-
- 0
-
- -66
-
-
- 2
- :) for the current exception object. Otherwise, an unspecified non-empty string is returned.
Typical use is to call
- 1
-
- 0
-
- -14
-
-
- 2
- from a top-level function to output diagnostic information about unhandled exceptions:
[@int
main()
{
try
{
run_program();
}
catch(
error & e )
{
//handle error
}
catch(
...)
{
std::cerr << "Unhandled exception!" << std::endl <<
boost::
- 1
-
- 0
-
- -14
-
-
- 2
- ();
}
}@]
+ (:auto !!:)
!!!Synopsis
(:include synopsis:)
@@ -8502,7 +7921,7 @@
12
- (:auto !!:)
!!!Synopsis
(:include synopsis:)
+ (:auto !!!:)
(:include synopsis:)
!!!!Precondition:
ep shall not be null.
!!!!Throws:
The exception to which ep refers.
@@ -8513,54 +7932,81 @@
- 17
+ 692
- (:auto !!!:)
The following example demonstrates how errno can be stored in exception objects using Boost Exception:
[@#include <(:link
+ !!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 10
- -15
+ -702
- :)>
#include <iostream>
typedef boost::(:link
+ |copying:) of exception objects, implemented non-intrusively and automatically by the boost::(:link 10
- -80
+ -632
- :)<struct tag_my_info,int> my_info; //(1)
struct my_error: virtual boost::(:link
+ :) function.
!!Contents
#(:link 10
- -17
+ -202
- :), virtual std::exception { }; //(2)
void
f()
{
throw my_error() << my_info(42); //(3)
}@]
First, we instantiate the (:link
+ :)
#Tutorial
##(:link 10
- -80
+ -652
- :) template using a unique identifier -- tag_my_info, 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
+ mod="w":)
##(:link 10
- -17
+ -222
- :).
Finally, (3) illustrates how the typedef from (1) can be used with (:link
+ mod="w":)
##(:link
+ 1
+
+ 0
+
+ -70
+
+
+ 2
+ mod="w":)
##(:link
+ 1
+
+ 0
+
+ -21
+
+
+ 2
+ mod="w":)
##(:link
+ 1
+
+ 0
+
+ -24
+
+
+ 2
+ mod="w":)
##(:link 10
@@ -8569,7 +8015,25 @@
2
- |operator<<:) to store values in exception objects at the point of the throw.
The stored my_info value can be recovered at a later time like this:
[@// ...continued
void
g()
{
try
{
f();
}
catch(
my_error & x )
{
if( int const * mi=boost::(:link
+ mod="w":)
#Documentation
##Class (:link
+ 1
+
+ 0
+
+ -62
+
+
+ 2
+ :)
##Throwing Exceptions
###(:link
+ 1
+
+ 0
+
+ -75
+
+
+ 2
+ :)
###(:link 10
@@ -8578,16 +8042,205 @@
2
- :)<my_info>(x) )
std::cerr << "My info: " << *mi;
}
}@]
The (:link
+ :)
##Transporting of Arbitrary Data to the Catch Site
###(:link 10
- -63
+ -102
- :) 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, err will point to it; otherwise a null pointer is returned.
+ :)
###(:link
+ 1
+
+ 0
+
+ -80
+
+
+ 2
+ :)
###(:link
+ 1
+
+ 0
+
+ -5
+
+
+ 2
+ :)
###(:link
+ 1
+
+ 0
+
+ -72
+
+
+ 2
+ :)
###(:link
+ 1
+
+ 0
+
+ -67
+
+
+ 2
+ :)
##(:link http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2179.html|N2179:) Transporting of Exceptions between Threads
###(:link
+ 1
+
+ 0
+
+ -79
+
+
+ 2
+ :)
###(:link
+ 1
+
+ 0
+
+ -9
+
+
+ 2
+ :)
###(:link
+ 1
+
+ 0
+
+ -71
+
+
+ 2
+ :)
###(:link
+ 1
+
+ 0
+
+ -35
+
+
+ 2
+ :)
###(:link
+ 1
+
+ 0
+
+ -15
+
+
+ 2
+ :)
###(:link
+ 1
+
+ 0
+
+ -46
+
+
+ 2
+ :)
##Diagnostic Information
###(:link
+ 1
+
+ 0
+
+ -51
+
+
+ 2
+ :)
###(:link
+ 1
+
+ 0
+
+ -53
+
+
+ 2
+ :)
##(:link
+ 1
+
+ 0
+
+ -73
+
+
+ 2
+ :)
#API
##(:link
+ 1
+
+ 0
+
+ -59
+
+
+ 2
+ :)
##(:link
+ 1
+
+ 0
+
+ -78
+
+
+ 2
+ :)
##(:link
+ 1
+
+ 0
+
+ -13
+
+
+ 2
+ :)
##(:link
+ 1
+
+ 0
+
+ -52
+
+
+ 2
+ :)
##(:link
+ 1
+
+ 0
+
+ -68
+
+
+ 2
+ :)
##(:link
+ 1
+
+ 0
+
+ -45
+
+
+ 2
+ mod="w":)
#(:link
+ 1
+
+ 0
+
+ -23
+
+
+ 2
+ mod="w":)
#(:link
+ 1
+
+ 0
+
+ -11
+
+
+ 2
+ mod="w":)
!!!Acknowledgements
Thanks to Peter Dimov for his continuing help. Also thanks to Tobias Schwinger, Tom Brinkman, Pavel Vozenilek and everyone who participated in the review process.
@@ -8598,9 +8251,18 @@
- 13
+ 52
- (:auto !!!:)
(:include synopsis:)
Class boost::(:link
+ (:auto !!!:)
(:include synopsis:)
!!!!Definition:
The expression
+ 1
+
+ 0
+
+ -10
+
+
+ 2
+ <Tag,T>::(:link 10
@@ -8609,52 +8271,7 @@
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
-
- -17
-
-
- 2
- :) can store data of arbitrary types, using the (:link
- 1
-
- 0
-
- -80
-
-
- 2
- :) wrapper and (:link
- 1
-
- 0
-
- -42
-
-
- 2
- mod="/":).
To retrieve data from a boost::(:link
- 1
-
- 0
-
- -17
-
-
- 2
- :) object, use the (:link
- 1
-
- 0
-
- -63
-
-
- 2
- :) function template.
+ mod="m":) evaluates to T.
@@ -8664,6 +8281,46 @@
-18
+
+ 7
+ 2
+ (:auto !!!:)
(:include synopsis:)
This type is designed to be used as a standard (:link
+ 1
+
+ 0
+
+ -10
+
+
+ 2
+ :) instance for transporting the name of a relevant API function (which does not use exceptions to report errors) in exceptions deriving from boost::(:link
+ 1
+
+ 0
+
+ -62
+
+
+ 2
+ :).
!!!Example:
(:include
+ 1
+
+ 0
+
+ -55
+
+
+ 2
+ :)
+
+
+
+
+ 0
+
+ -19
+
+ 12
@@ -8674,13 +8331,511 @@
0
- -19
+ -20
- 15
+ 332
- (:auto !!!:)
Here is how cloning can be enabled in a throw-expression (15.1):
[@#include <(:link
+ (:auto !!!:)
Traditionally, when using exceptions to report failures, the throw site:
*creates an exception object of the appropriate type, and
*stuffs it with data relevant to the detected error.
A higher context in the program contains a catch statement which:
*selects failures based on exception types, and
*inspects exception objects for data required to deal with the problem.
The main issue with this "traditional" approach is that often, the data available at the point of the throw is insufficient for the catch site to handle the failure.
Here is an example of a catch statement:
[@catch( file_read_error & e )
{
std::cerr << e.file_name();
}@]
And here is a possible matching throw:
[@void
read_file( FILE * f )
{
....
size_t nr=fread(buf,1,count,f);
if( ferror(f) )
throw file_read_error(???);
....
}@]
Clearly, the problem is that the handler requires a file name but the read_file function does not have a file name to put in the exception object; all it has is a FILE pointer!
In an attempt to deal with this problem, we could modify read_file to accept a file name:
[@void
read_file( FILE * f, char const * name )
{
....
size_t nr=fread(buf,1,count,f);
if( ferror(f) )
throw file_read_error(name);
....
}@]
This is not a real solution: it simply shifts the burden of supplying a file name to the immediate caller of the read_file function.
->''In general, the data required to handle a given library-emitted exception depends on the program that links to it. Many contexts between the throw and the catch may have relevant information which must be transported to the exception handler.''
!!!Exception wrapping
The idea of exception wrapping is to catch an exception from a lower level function (such as the read_file function above), and throw a new exception object that contains the original exception (and also carries a file name.) This method seems to be particularly popular with C++ programmers with Java background.
Exception wrapping leads to the following problems:
*To wrap an exception object it must be copied, which may result in slicing.
*Wrapping is practically impossible to use in generic contexts.
The second point is actually special case of violating the exception neutrality principle. Most contexts in a program can not handle exceptions; such contexts should not interfere with the process of exception handling.
!!!The boost::exception solution
*Simply derive your exception types from boost::(:link
+ 1
+
+ 0
+
+ -62
+
+
+ 2
+ :).
*Confidently limit the throw site to provide only data that is available naturally.
*Use exception-neutral contexts between the throw and the catch to augment exceptions with more relevant data as they bubble up.
For example, in the throw statement below we only add the errno code, since this is the only failure-relevant information available in this context:
[@struct exception_base: virtual std::exception, virtual boost::(:link
+ 1
+
+ 0
+
+ -62
+
+
+ 2
+ :) { };
struct io_error: virtual exception_base { };
struct file_read_error: virtual io_error { };
typedef boost::(:link
+ 1
+
+ 0
+
+ -10
+
+
+ 2
+ :)<struct tag_errno_code,int> errno_code;
void
read_file( FILE * f )
{
....
size_t nr=fread(buf,1,count,f);
if( ferror(f) )
throw file_read_error() (:link
+ 1
+
+ 0
+
+ -80
+
+
+ 2
+ |<<:) errno_code(errno);
....
}@]
In a higher exception-neutral context, we add the file name to ''any'' exception that derives from boost::(:link
+ 1
+
+ 0
+
+ -62
+
+
+ 2
+ :):
[@typedef boost::(:link
+ 1
+
+ 0
+
+ -10
+
+
+ 2
+ :)<struct tag_file_name,std::string> file_name;
....
try
{
if( FILE * fp=fopen("foo.txt","rt") )
{
shared_ptr<FILE> f(fp,fclose);
....
read_file(fp); //throws types deriving from boost::(:link
+ 1
+
+ 0
+
+ -62
+
+
+ 2
+ :)
do_something();
....
}
else
throw file_open_error() (:link
+ 1
+
+ 0
+
+ -80
+
+
+ 2
+ |<<:) errno_code(errno);
}
catch( boost::(:link
+ 1
+
+ 0
+
+ -62
+
+
+ 2
+ :) & e )
{
e (:link
+ 1
+
+ 0
+
+ -80
+
+
+ 2
+ |<<:) file_name("foo.txt");
throw;
}@]
Finally here is how the handler retrieves data from exceptions that derive from boost::(:link
+ 1
+
+ 0
+
+ -62
+
+
+ 2
+ :):
[@catch( io_error & e )
{
std::cerr << "I/O Error!\n";
if( std::string const * fn=(:link
+ 1
+
+ 0
+
+ -72
+
+
+ 2
+ :)<file_name>(e) )
std::cerr << "File name: " << *fn << "\n";
if( int const * c=(:link
+ 1
+
+ 0
+
+ -72
+
+
+ 2
+ :)<errno_code>(e) )
std::cerr << "OS says: " << strerror(*c) << "\n";
}@]
In addition, boost::(:link
+ 1
+
+ 0
+
+ -51
+
+
+ 2
+ :) can be used to compose an automatic (if not user-friendly) message that contains all of the (:link
+ 1
+
+ 0
+
+ -10
+
+
+ 2
+ :) objects added to a boost::(:link
+ 1
+
+ 0
+
+ -62
+
+
+ 2
+ :). This is useful for inclusion in logs and other diagnostic objects.
+
+
+
+
+ 0
+
+ -24
+
+
+
+ 5
+ 2
+ (:auto !!!:)
Exception types should use virtual inheritance when deriving from other exception types. This insight is due to Andrew Koenig. Using virtual inheritance prevents ambiguity problems in the exception handler:
[@#include <iostream>
struct my_exc1 : std::exception { char const* what() const throw(); };
struct my_exc2 : std::exception { char const* what() const throw(); };
struct your_exc3 : my_exc1, my_exc2 {};
int
main()
{
try { throw your_exc3(); }
catch(std::exception const& e) {}
catch(...) { std::cout << "whoops!" << std::endl; }
}@]
The program above outputs "whoops!" because the conversion to std::exception is ambiguous.
The overhead introduced by virtual inheritance is always negligible in the context of exception handling. Note that virtual bases are initialized directly by the constructor of the most-derived-type (the type passed to the throw statement, in case of exceptions.) However, typically this detail is of no concern when boost::(:link
+ 1
+
+ 0
+
+ -62
+
+
+ 2
+ :) is used, because it enables exception types to be trivial structs with no members (there's nothing to initialize.) See (:link
+ 1
+
+ 0
+
+ -21
+
+
+ 2
+ mod="w":).
+
+
+
+
+ 0
+
+ -22
+
+
+
+ 27
+ 2
+ (:auto !!:)
Some exception hierarchies can not be modified to make boost::(:link
+ 1
+
+ 0
+
+ -62
+
+
+ 2
+ :) a base type. In this case, the (:link
+ 1
+
+ 0
+
+ -67
+
+
+ 2
+ :) function template can be used to make exception objects derive from boost::(:link
+ 1
+
+ 0
+
+ -62
+
+
+ 2
+ :) anyway. Here is an example:
[@#include <(:link
+ 1
+
+ 0
+
+ -28
+
+
+ 2
+ :)>
#include <stdexcept>
typedef boost::(:link
+ 1
+
+ 0
+
+ -10
+
+
+ 2
+ :)<struct tag_std_range_min,size_t> std_range_min;
typedef boost::(:link
+ 1
+
+ 0
+
+ -10
+
+
+ 2
+ :)<struct tag_std_range_max,size_t> std_range_max;
typedef boost::(:link
+ 1
+
+ 0
+
+ -10
+
+
+ 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
+
+ -67
+
+
+ 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
+
+ -67
+
+
+ 2
+ :)<T> gets us an object of ''unspecified type'' which is guaranteed to derive from both boost::(:link
+ 1
+
+ 0
+
+ -62
+
+
+ 2
+ :) and T. This makes it possible to use (:link
+ 1
+
+ 0
+
+ -80
+
+
+ 2
+ mod="/":) to store additional information in the exception object. The exception can be intercepted as T &, so existing exception handling will not break. It can also be intercepted as boost::(:link
+ 1
+
+ 0
+
+ -62
+
+
+ 2
+ :) &, so that (:link
+ 1
+
+ 0
+
+ -65
+
+
+ 2
+ |more information can be added to the exception at a later time:).
+
+
+
+
+ 0
+
+ -23
+
+
+
+ 79
+ 2
+ (:auto !!:)
!!!Why doesn't boost::exception derive from std::exception?
Despite that (:link
+ 1
+
+ 0
+
+ -24
+
+
+ 2
+ |virtual inheritance should be used in deriving from base exception types:), many programmers fail to follow this principle when deriving from std::exception. If boost::(:link
+ 1
+
+ 0
+
+ -62
+
+
+ 2
+ :) derives from std::exception, using the (:link
+ 1
+
+ 0
+
+ -67
+
+
+ 2
+ :) function with such user-defined types would introduce dangerous ambiguity which would break all catch(std::exception &) statements.
Of course, boost::(:link
+ 1
+
+ 0
+
+ -62
+
+
+ 2
+ :) should not be used to replace std::exception as a base type in exception type hierarchies. Instead, it should be included as a virtual base, in addition to std::exception (which should also be derived virtually.)
!!!Why is boost::exception abstract?
To prevent exception-neutral contexts from erroneously erasing the type of the original exception when adding (:link
+ 1
+
+ 0
+
+ -10
+
+
+ 2
+ :) to an active exception object:
[@catch( boost::(:link
+ 1
+
+ 0
+
+ -62
+
+
+ 2
+ :) & e )
{
e (:link
+ 1
+
+ 0
+
+ -80
+
+
+ 2
+ |<<:) foo_info(foo);
throw e; //Compile error: boost::(:link
+ 1
+
+ 0
+
+ -62
+
+
+ 2
+ :) is abstract
}@]
The correct code is:
[@catch( boost::(:link
+ 1
+
+ 0
+
+ -62
+
+
+ 2
+ :) & e )
{
e (:link
+ 1
+
+ 0
+
+ -80
+
+
+ 2
+ |<<:) foo_info(foo);
throw; //Okay, re-throwing the original exception object.
}@]
!!!What is the space overhead of the boost::exception base class?
The space overhead for the boost::exception data members is negligible in the context of exception handling. Throwing objects that derive from boost::(:link
+ 1
+
+ 0
+
+ -62
+
+
+ 2
+ :) does not by itself cause dynamic memory allocations.
Deriving from boost::(:link
+ 1
+
+ 0
+
+ -62
+
+
+ 2
+ :) enables any data to be added to exceptions, which usually does allocate memory. However, this memory is reclaimed when the exception has been handled, and since typically user code does not allocate memory during the unrolling of the stack, adding error info to exceptions should not cause memory fragmentation.
!!!Should I use boost::throw_exception or BOOST_THROW_EXCEPTION or just throw?
The benefit of calling boost::(:link
+ 1
+
+ 0
+
+ -63
+
+
+ 2
+ :) instead of using throw directly is that it ensures that the emitted exception derives from boost::(:link
+ 1
+
+ 0
+
+ -62
+
+
+ 2
+ :) and that it is compatible with boost::(:link
+ 1
+
+ 0
+
+ -71
+
+
+ 2
+ :).
The (:link
+ 1
+
+ 0
+
+ -75
+
+
+ 2
+ :) macro also results in a call to boost::(:link
+ 1
+
+ 0
+
+ -63
+
+
+ 2
+ :), but in addition it records in the exception object the __FILE__ and __LINE__ of the throw, as well as the pretty name of the function that throws. This has virtually no overhead, yet enables boost::(:link
+ 1
+
+ 0
+
+ -51
+
+
+ 2
+ :) to compose a more useful, if not user-friendly message.
Typical use of boost::(:link
+ 1
+
+ 0
+
+ -51
+
+
+ 2
+ :) is:
[@catch( boost::exception & e )
{
std::cerr << "OMG!" << boost::diagnostic_information(e);
}
catch( ... )
{
std::cerr << "OMG!!!";
}@]
This is a possible message it may display, the first line is only possible if (:link
+ 1
+
+ 0
+
+ -75
+
+
+ 2
+ :) is used:
[@example_io.cpp(70): Throw in function class boost::shared_ptr<struct _iobuf> __cdecl my_fopen(const char *,const char *)
Dynamic exception type: class boost::exception_detail::clone_impl<class fopen_error>
std::exception::what: example_io error
[struct boost::(:link 10
@@ -8689,25 +8844,7 @@
2
- :)>
#include <(:link
- 1
-
- 0
-
- -68
-
-
- 2
- :)>
#include <stdio.h>
#include <errno.h>
struct file_read_error: virtual boost::(:link
- 1
-
- 0
-
- -17
-
-
- 2
- :) { };
void
file_read( FILE * f, void * buffer, size_t size )
{
if( size!=fread(buffer,1,size,f) )
throw boost::(:link
+ :)_ *] = fopen
[struct boost::(:link 10
@@ -8716,7 +8853,182 @@
2
- :)(file_read_error()) <<
boost::(:link
+ :)_ *] = 2, "No such file or directory"
[struct boost::(:link
+ 1
+
+ 0
+
+ -64
+
+
+ 2
+ :)_ *] = tmp1.txt
[struct boost::(:link
+ 1
+
+ 0
+
+ -12
+
+
+ 2
+ :)_ *] = rb@]
!!!Why is boost::exception integrated in boost::throw_exception?
The boost::(:link
+ 1
+
+ 0
+
+ -63
+
+
+ 2
+ :) function predates the Boost Exception library and there has been some concern about its current behavior of injecting boost::(:link
+ 1
+
+ 0
+
+ -62
+
+
+ 2
+ :) as a base of any exception passed to boost::(:link
+ 1
+
+ 0
+
+ -63
+
+
+ 2
+ :). Such concerns are dictated by the typical strict interpretation of a common principle in C and C++, that users only pay for features they actually use.
The problem is that users of Boost Exception can't by themselves cause a library to throw types that derive from boost::(:link
+ 1
+
+ 0
+
+ -62
+
+
+ 2
+ :), and without this they can't use any of the Boost Exception facilities.
For example, if a user wants to use Boost Serialization in a separate thread, it is desirable to be able to transport exceptions emitted by that library into the main thread where they can be analyzed to generate a user-friendly message. This can be easily achieved using boost::(:link
+ 1
+
+ 0
+
+ -79
+
+
+ 2
+ :), but this requires that Boost Serialization throws exceptions using boost::(:link
+ 1
+
+ 0
+
+ -9
+
+
+ 2
+ :). If Boost Serialization calls boost::(:link
+ 1
+
+ 0
+
+ -63
+
+
+ 2
+ :) to throw, this behavior happens automatically and transparently.
The cost of this integration is:
* In terms of space: a pointer and 3 ints are added to the static size of exception objects.
* In terms of speed: the pointer is initialized to null at the point of the throw.
* In terms of coupling: about 400 self-contained lines of C++ with no external includes.
!!!Why use operator<< overload for adding info to exceptions?
Before throwing an object of type that derives from boost::(:link
+ 1
+
+ 0
+
+ -62
+
+
+ 2
+ :), it is often desirable to add one or more (:link
+ 1
+
+ 0
+
+ -10
+
+
+ 2
+ :) objects in it. The syntactic sugar provided by (:link
+ 1
+
+ 0
+
+ -80
+
+
+ 2
+ :) allows this to be done directly in a throw expression:
[@throw error() (:link
+ 1
+
+ 0
+
+ -80
+
+
+ 2
+ |<<:) foo_info(foo) (:link
+ 1
+
+ 0
+
+ -80
+
+
+ 2
+ |<<:) bar_info(bar);@]
which saves typing compared to this possible alternative:
[@error e;
e.add(foo_info(foo));
e.add(bar_info(bar));
throw e;@]
and looks better than something like:
[@throw error().add(foo_info(foo)).add(bar_info(bar));@]
!!!Why is operator<< allowed to throw?
This question is referring to the following issue. Consider this throw statement example:
[@throw file_open_error() (:link
+ 1
+
+ 0
+
+ -80
+
+
+ 2
+ |<<:) file_name(fn);@]
The intention here is to throw a file_open_error, however if (:link
+ 1
+
+ 0
+
+ -80
+
+
+ 2
+ mod="/":) fails to copy the std::string contained in the file_name (:link
+ 1
+
+ 0
+
+ -10
+
+
+ 2
+ :) wrapper, a std::bad_alloc could propagate instead. This behavior seems undesirable to some programmers.
Bjarne Stroustrup, The C++ Programming Language, 3rd Edition, page 371:
->''"Throwing an exception requires an object to throw. A C++ implementation is required to have enough spare memory to be able to throw bad_alloc in case of memory exhaustion. However, it is possible that throwing some other exception will cause memory exhaustion."''
So, an attempt to throw any exception may already result in propagating std::bad_alloc instead.
+
+
+
+
+ 0
+
+ -25
+
+
+
+ 19
+ 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
+
+ -43
+
+
+ 2
+ :)>
#include <(:link 10
@@ -8725,7 +9037,34 @@
2
- :)(errno);
}@]
Of course, (:link
+ :)>
#include <(:link
+ 1
+
+ 0
+
+ -76
+
+
+ 2
+ :)>
#include <(:link
+ 1
+
+ 0
+
+ -14
+
+
+ 2
+ :)>
#include <boost/shared_ptr.hpp>
#include <stdio.h>
#include <string>
#include <errno.h>
typedef boost::(:link http://www.boost.org/libs/tuple/doc/tuple_users_guide.html|tuple:)<boost::(:link
+ 1
+
+ 0
+
+ -18
+
+
+ 2
+ :),boost::(:link 10
@@ -8734,12 +9073,30 @@
2
- :) may be used with any exception type; there is no requirement that it should derive from boost::(:link
+ :)> clib_failure;
struct file_open_error: virtual boost::(:link 10
- -17
+ -62
+
+
+ 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() <<
boost::(:link
+ 1
+
+ 0
+
+ -64
+
+
+ 2
+ :)(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
+
+ -722
@@ -8750,7 +9107,118 @@
0
- -20
+ -26
+
+
+
+ 1
+ 2
+ (:auto !!:)
!!!Synopsis
(:include synopsis:)
+
+
+
+
+ 0
+
+ -27
+
+
+
+ 17
+ 2
+ (:auto !!!:)
The following example demonstrates how errno can be stored in exception objects using Boost Exception:
[@#include <(:link
+ 1
+
+ 0
+
+ -28
+
+
+ 2
+ :)>
#include <iostream>
typedef boost::(:link
+ 1
+
+ 0
+
+ -10
+
+
+ 2
+ :)<struct tag_my_info,int> my_info; //(1)
struct my_error: virtual boost::(:link
+ 1
+
+ 0
+
+ -62
+
+
+ 2
+ :), virtual std::exception { }; //(2)
void
f()
{
throw my_error() << my_info(42); //(3)
}@]
First, we instantiate the (:link
+ 1
+
+ 0
+
+ -10
+
+
+ 2
+ :) template using a unique identifier -- tag_my_info, 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
+
+ -62
+
+
+ 2
+ :).
Finally, (3) illustrates how the typedef from (1) can be used with (:link
+ 1
+
+ 0
+
+ -80
+
+
+ 2
+ |operator<<:) to store values in exception objects at the point of the throw.
The stored my_info value can be recovered at a later time like this:
[@// ...continued
void
g()
{
try
{
f();
}
catch(
my_error & x )
{
if( int const * mi=boost::(:link
+ 1
+
+ 0
+
+ -72
+
+
+ 2
+ :)<my_info>(x) )
std::cerr << "My info: " << *mi;
}
}@]
The (:link
+ 1
+
+ 0
+
+ -72
+
+
+ 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, err will point to it; otherwise a null pointer is returned.
+
+
+
+
+ 0
+
+ -28
+
+
+
+ 1
+ 2
+ (:auto !!:)
!!!Synopsis
(:include synopsis:)
+
+
+
+
+ 0
+
+ -29
@@ -8767,193 +9235,9 @@
- 1
+ 72
- (:auto !!:)
!!!Synopsis
(:include synopsis:)
-
-
-
-
- 0
-
- -22
-
-
-
- 69
- 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
-
- -27
-
-
- 2
- |copying:) of exception objects, implemented non-intrusively and automatically by the boost::(:link
- 1
-
- 0
-
- -11
-
-
- 2
- :) function.
!!Contents
#(:link
- 1
-
- 0
-
- -8
-
-
- 2
- :)
#Tutorial
##(:link
- 1
-
- 0
-
- -72
-
-
- 2
- mod="w":)
##(:link
- 1
-
- 0
-
- -9
-
-
- 2
- mod="w":)
##(:link
- 1
-
- 0
-
- -27
-
-
- 2
- mod="w":)
##(:link
- 1
-
- 0
-
- -6
-
-
- 2
- mod="w":)
##(:link
- 1
-
- 0
-
- -5
-
-
- 2
- mod="w":)
##(:link
- 1
-
- 0
-
- -32
-
-
- 2
- mod="w":)
#Documentation
##Class (:link
- 1
-
- 0
-
- -17
-
-
- 2
- :)
##Throwing Exceptions
###(:link
- 1
-
- 0
-
- -61
-
-
- 2
- :)
###(:link
- 1
-
- 0
-
- -11
-
-
- 2
- :)
##Transporting of Arbitrary Data to the Catch Site
###(:link
- 1
-
- 0
-
- -80
-
-
- 2
- :)
###(:link
- 1
-
- 0
-
- -42
-
-
- 2
- :)
###(:link
- 1
-
- 0
-
- -76
-
-
- 2
- :)
###(:link
- 1
-
- 0
-
- -63
-
-
- 2
- :)
###(:link
- 1
-
- 0
-
- -74
-
-
- 2
- :)
##(:link http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2179.html|N2179:) Transporting of Exceptions between Threads
###(:link
- 1
-
- 0
-
- -29
-
-
- 2
- :)
###(:link
- 1
-
- 0
-
- -37
-
-
- 2
- :)
###(:link
+ (:auto !!!:)
Deriving from boost::(:link 10
@@ -8962,413 +9246,7 @@
2
- :)
###(:link
- 1
-
- 0
-
- -48
-
-
- 2
- :)
###(:link
- 1
-
- 0
-
- -30
-
-
- 2
- :)
###(:link
- 1
-
- 0
-
- -59
-
-
- 2
- :)
##Diagnostic Information
###(:link
- 1
-
- 0
-
- -66
-
-
- 2
- :)
###(:link
- 1
-
- 0
-
- -14
-
-
- 2
- :)
##(:link
- 1
-
- 0
-
- -64
-
-
- 2
- :)
#API
##(:link
- 1
-
- 0
-
- -12
-
-
- 2
- :)
##(:link
- 1
-
- 0
-
- -41
-
-
- 2
- :)
##(:link
- 1
-
- 0
-
- -67
-
-
- 2
- :)
##(:link
- 1
-
- 0
-
- -43
-
-
- 2
- :)
##(:link
- 1
-
- 0
-
- -75
-
-
- 2
- :)
##(:link
- 1
-
- 0
-
- -71
-
-
- 2
- mod="w":)
#(:link
- 1
-
- 0
-
- -7
-
-
- 2
- mod="w":)
#(:link
- 1
-
- 0
-
- -23
-
-
- 2
- mod="w":)
!!!Acknowledgements
Thanks to Peter Dimov for his continuing help. Also thanks to Tobias Schwinger, Tom Brinkman, Pavel Vozenilek and everyone who participated in the review process.
-
-
-
-
- 0
-
- -23
-
-
-
- 1
- 2
- (:auto !:)
This is an alphabetical list of all Boost Exception documentation pages.
(:pagelist fmt="index" except_tags="index noindex" mod="w":)
-
-
-
-
- 0
-
- -24
-
-
-
- 7
- 2
- (:auto !!!:)
(:include synopsis:)
This type is designed to be used as a standard (:link
- 1
-
- 0
-
- -80
-
-
- 2
- :) instance for transporting (in exceptions deriving from boost::(:link
- 1
-
- 0
-
- -17
-
-
- 2
- :)) an
- 1
-
- 0
-
- -29
-
-
- 2
- to an exception nested into another exception.
-
-
-
-
- 0
-
- -25
-
-
-
- 5
- 2
- (:auto !!!:)
(:include synopsis:)
!!!!Description:
Returns a (const) reference to the copy of the value passed to (:link
- 1
-
- 0
-
- -80
-
-
- 2
- :)'s constructor stored in the (:link
- 1
-
- 0
-
- -80
-
-
- 2
- :) object.
!!!!Throws:
Nothing.
-
-
-
-
- 0
-
- -26
-
-
-
- 7
- 2
- (:auto !!!:)
(:include synopsis:)
This type is designed to be used as a standard (:link
- 1
-
- 0
-
- -80
-
-
- 2
- :) instance for transporting a relevant FILE pointer managed by a boost::shared_ptr<FILE> in exceptions deriving from boost::(:link
- 1
-
- 0
-
- -17
-
-
- 2
- :).
!!!Example:
(:include
- 1
-
- 0
-
- -39
-
-
- 2
- :)
-
-
-
-
- 0
-
- -27
-
-
-
- 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
-
- -37
-
-
- 2
- :) at the time of the throw is required in order to use cloning.
!!!!Note:
All exceptions emitted by the familiar function boost::(:link
- 1
-
- 0
-
- -11
-
-
- 2
- :) are guaranteed to derive from boost::(:link
- 1
-
- 0
-
- -17
-
-
- 2
- :) and to support cloning.
(:include
- 1
-
- 0
-
- -19
-
-
- 2
- :)
(:include
- 1
-
- 0
-
- -79
-
-
- 2
- :)
-
-
-
-
- 0
-
- -28
-
-
-
- 3
- 2
- (:auto !!!:)
(:include decl:)
!!!!Effects:
Frees all resources associated with a boost::(:link
- 1
-
- 0
-
- -17
-
-
- 2
- :) object.
!!!!Throws:
Nothing.
-
-
-
-
- 0
-
- -29
-
-
-
- 25
- 2
- (:auto !!!:)
(:include synopsis:)
The (:link
- 1
-
- 0
-
- -29
-
-
- 2
- :) type can be used to refer to a copy of an exception object. It is Default Constructible, Copy Constructible, Assignable and Equality Comparable; (:link
- 1
-
- 0
-
- -29
-
-
- 2
- :)'s operations do not throw.
The referenced object remains valid at least as long as there is an (:link
- 1
-
- 0
-
- -29
-
-
- 2
- :) object that refers to it.
Two instances of (:link
- 1
-
- 0
-
- -29
-
-
- 2
- :) are equivalent and compare equal if and only if they refer to the same exception.
The default constructor of (:link
- 1
-
- 0
-
- -29
-
-
- 2
- :) produces the null value of the type. The null value is equivalent only to itself.
!!!!Thread safety
* It is legal for multiple threads to hold (:link
- 1
-
- 0
-
- -29
-
-
- 2
- :) references to the same exception object.
* It is illegal for multiple threads to modify the same (:link
- 1
-
- 0
-
- -29
-
-
- 2
- :) object concurrently.
* While calling (:link
+ :) effectively decouples the semantics of a failure from the information that is relevant to each individual instance of reporting a failure with a given semantic.
In other words: with boost::(:link 10
@@ -9377,43 +9255,16 @@
2
- :) makes a copy of the current exception object, it is still possible for the two copies to share internal state. Therefore, in general it is not safe to call (:link
+ :), what data a given exception object transports depends primarily on the context in which failures are reported (not on its type.) Since exception types need no members, it becomes very natural to throw exceptions that derive from more than one type to indicate multiple appropriate semantics:
[@struct exception_base: virtual std::exception, virtual boost::(:link 10
- -30
+ -622
- :) concurrently to throw the same exception object into multiple threads.
!!!!Nesting of exceptions:
An (:link
- 1
-
- 0
-
- -29
-
-
- 2
- :) can be added as (:link
- 1
-
- 0
-
- -80
-
-
- 2
- :) to any boost::(:link
- 1
-
- 0
-
- -17
-
-
- 2
- :). This is a convenient way to nest exceptions. There is no limit on the depth of the nesting, however cyclic references result in undefined behavior.
+ :) { };
struct io_error: virtual exception_base { };
struct file_error: virtual io_error { };
struct read_error: virtual io_error { };
struct file_read_error: virtual file_error, virtual read_error { };@]
Using this approach, exception types become a simple tagging system for categorizing errors and selecting failures in exception handlers.
@@ -9426,7 +9277,7 @@
12
- (:auto !!!:)
(:include synopsis:)
!!!!Precondition:
ep shall not be null.
!!!!Throws:
The exception to which ep refers.
+ (:auto !!!:)
!!!Synopsis
(:include synopsis:)
@@ -9439,25 +9290,25 @@
52
- (:auto !!!:)
(:include synopsis:)
!!!!Definition:
The expression
+ (:auto !!!:)
(:include synopsis:)
This type is designed to be used as a standard 10
- -80
+ -102
- <Tag,T>::(:link
+ instance for transporting strings returned by std::type_info::name in exceptions deriving from boost::10
- -31
+ -622
- mod="m":) evaluates to T.
+ objects.
@@ -9468,90 +9319,18 @@
- 19
+ 32
- (:auto !!:)
Boost Exception provides a namespace-scope function (:link
+ (:auto !!!:)
(:include decl:)
!!!!Effects:
Frees all resources associated with a boost::(:link 10
- -66
+ -622
- :) which takes a boost::(:link
- 1
-
- 0
-
- -17
-
-
- 2
- :). The returned string contains:
*the string representation of all data objects added to the boost::(:link
- 1
-
- 0
-
- -17
-
-
- 2
- :) through (:link
- 1
-
- 0
-
- -42
-
-
- 2
- mod="/":);
*the output from std::exception::what;
*additional platform-specific diagnostic information.
The returned string is not presentable as a friendly user message, but because it is generated automatically, it is useful for debugging or logging purposes. Here is an example:
[@#include <(:link
- 1
-
- 0
-
- -15
-
-
- 2
- :)>
#include <iostream>
void f(); //throws unknown types that derive from boost::(:link
- 1
-
- 0
-
- -17
-
-
- 2
- :).
void
g()
{
try
{
f();
}
catch(
boost::(:link
- 1
-
- 0
-
- -17
-
-
- 2
- :) & e )
{
std::cerr << (:link
- 1
-
- 0
-
- -66
-
-
- 2
- :)(e);
}
}@]
(:include
- 1
-
- 0
-
- -33
-
-
- 2
- :)
+ :) object.
!!!!Throws:
Nothing.
@@ -9562,36 +9341,9 @@
- 11
+ 72
- !!!!Example:
this is a possible output from the (:link
- 1
-
- 0
-
- -66
-
-
- 2
- :) function, as used in ''libs/exception/example/example_io.cpp:''
[@example_io.cpp(70): Throw in function class boost::shared_ptr<struct _iobuf> __cdecl my_fopen(const char *,const char *)
Dynamic exception type: class boost::exception_detail::clone_impl<struct fopen_error>
std::exception::what: example_io error
[struct boost::(:link
- 1
-
- 0
-
- -36
-
-
- 2
- :)_ *] = fopen
[struct boost::(:link
- 1
-
- 0
-
- -58
-
-
- 2
- :)_ *] = 2, "No such file or directory"
[struct boost::(:link
+ (:auto !!!:)
(:include synopsis:)
This type is designed to be used as a standard (:link 10
@@ -9600,16 +9352,25 @@
2
- :)_ *] = tmp1.txt
[struct boost::(:link
+ :) instance for transporting a relevant FILE pointer managed by a boost::shared_ptr<FILE> in exceptions deriving from boost::(:link 10
- -52
+ -622
- :)_ *] = rb@]
+ :).
!!!Example:
(:include
+ 1
+
+ 0
+
+ -55
+
+
+ 2
+ :)
@@ -9633,9 +9394,27 @@
- 1
+ 52
- (:auto !!:)
!!!Synopsis
(:include synopsis:)
+ (:auto !!!:)
(:include synopsis:)
!!!!Effects:
As if
[@try
{
throw
+ 1
+
+ 0
+
+ -9
+
+
+ 2
+ (e);
}
catch(...)
{
return (:link
+ 1
+
+ 0
+
+ -71
+
+
+ 2
+ :)();
}@]
@@ -9648,34 +9427,34 @@
72
- (:auto !!!:)
(:include synopsis:)
This type is designed to be used as a standard (:link
+ (:auto !!!:)
(:include synopsis:)
The 10
- -80
+ -362
- :) instance for transporting the name of a relevant API function (which does not use exceptions to report errors) in exceptions deriving from boost::(:link
+ function is intended to be called from a user-defined std::exception::what() override. This allows diagnostic information to be returned as the what() string.
!!!!Returns:
A pointer to a zero-terminated buffer that contains a string similar to the std::string returned by the 10
- -17
+ -512
- :).
!!!Example:
(:include
+ function, or null to indicate a failure.
!!!!Throws:
Nothing.
!!!!Note:
The returned pointer becomes invalid if any 10
- -39
+ -102
- :)
+ is modified or added to the exception object, or if another diagnostic information function is called.
@@ -9686,36 +9465,18 @@
- 21
+ 72
- (:auto !!!:)
(:include synopsis:)
!!!!Requirements:
* T must be a class with an accessible no-throw copy constructor.
* If T has any virtual base types, those types must have an accessible default 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
+ (:auto !!!:)
(:include synopsis:)
This type is designed to be used as a standard (:link 10
- -29
+ -102
- :) support in Boost Exception. For example:
[@class
my_exception:
public std::exception
{
};
....
throw boost::(:link
- 1
-
- 0
-
- -37
-
-
- 2
- :)(my_exception());@]
Unless (:link
- 1
-
- 0
-
- -37
-
-
- 2
- :) is called at the time an exception object is used in a throw-expression, an attempt to copy it using (:link
+ :) instance for transporting a relevant errno value in exceptions deriving from boost::(:link 10
@@ -9724,61 +9485,16 @@
2
- :) may return an (:link
+ :).
!!!Example:
(:include 10
- -29
+ -552
- :) which refers to an instance of (:link
- 1
-
- 0
-
- -59
-
-
- 2
- :). See (:link
- 1
-
- 0
-
- -62
-
-
- 2
- :) for details.
!!!!Note:
Instead of using the throw keyword directly, it is preferable to call boost::(:link
- 1
-
- 0
-
- -11
-
-
- 2
- :). This is guaranteed to throw an exception that derives from boost::(:link
- 1
-
- 0
-
- -17
-
-
- 2
- :) and supports the (:link
- 1
-
- 0
-
- -29
-
-
- 2
- :) functionality.
+ :)
@@ -9801,181 +9517,6 @@
-39
-
- 37
- 2
- [@#include <(:link
- 1
-
- 0
-
- -53
-
-
- 2
- :)>
#include <(:link
- 1
-
- 0
-
- -73
-
-
- 2
- :)>
#include <(:link
- 1
-
- 0
-
- -68
-
-
- 2
- :)>
#include <(:link
- 1
-
- 0
-
- -54
-
-
- 2
- :)>
#include <(:link
- 1
-
- 0
-
- -34
-
-
- 2
- :)>
#include <(:link
- 1
-
- 0
-
- -50
-
-
- 2
- :)>
#include <(:link
- 1
-
- 0
-
- -18
-
-
- 2
- :)>
#include <(:link
- 1
-
- 0
-
- -46
-
-
- 2
- :)>
#include <boost/shared_ptr.hpp>
#include <boost/weak_ptr.hpp>
#include <stdio.h>
#include <errno.h>
#include <exception>
struct error : virtual std::exception, virtual boost::(:link
- 1
-
- 0
-
- -17
-
-
- 2
- :) { };
struct file_error : virtual error { };
struct file_open_error: virtual file_error { };
struct file_read_error: virtual file_error { };
boost::shared_ptr<FILE>
open_file( char const * file, char const * mode )
{
if( FILE * f=fopen(file,mode) )
return boost::shared_ptr<FILE>(f,fclose);
else
(:link
- 1
-
- 0
-
- -61
-
-
- 2
- :)(
file_open_error() <<
boost::(:link
- 1
-
- 0
-
- -36
-
-
- 2
- :)("fopen") <<
boost::(:link
- 1
-
- 0
-
- -58
-
-
- 2
- :)(errno) <<
boost::(:link
- 1
-
- 0
-
- -10
-
-
- 2
- :)(file) <<
boost::(:link
- 1
-
- 0
-
- -52
-
-
- 2
- :)(mode) );
}
size_t
read_file( boost::shared_ptr<FILE> const & f, void * buf, size_t size )
{
size_t nr=fread(buf,1,size,f.get());
if( ferror(f.get()) )
(:link
- 1
-
- 0
-
- -61
-
-
- 2
- :)(
file_read_error() <<
boost::(:link
- 1
-
- 0
-
- -36
-
-
- 2
- :)("fread") <<
boost::(:link
- 1
-
- 0
-
- -58
-
-
- 2
- :)(errno) <<
boost::(:link
- 1
-
- 0
-
- -26
-
-
- 2
- :)(f) );
return nr;
}@]
-
-
-
-
- 0
-
- -40
-
- 192
@@ -9984,7 +9525,7 @@
0
- -17
+ -622
@@ -9993,7 +9534,7 @@
0
- -15
+ -282
@@ -10002,7 +9543,7 @@
0
- -17
+ -622
@@ -10011,7 +9552,7 @@
0
- -58
+ -372
@@ -10020,7 +9561,7 @@
0
- -15
+ -282
@@ -10029,7 +9570,7 @@
0
- -17
+ -622
@@ -10038,7 +9579,7 @@
0
- -10
+ -642
@@ -10047,7 +9588,7 @@
0
- -17
+ -622
@@ -10056,7 +9597,7 @@
0
- -17
+ -622
@@ -10067,13 +9608,71 @@
0
- -41
+ -4012
- (:auto !!:)
(:pagelist tags="hpp" except_tags="noindex":)
+ (:auto !!:)
!!!Synopsis
(:include synopsis:)
+
+
+
+
+ 0
+
+ -41
+
+
+
+ 11
+ 2
+ !!!!Example:
this is a possible output from the (:link
+ 1
+
+ 0
+
+ -51
+
+
+ 2
+ :) function, as used in ''libs/exception/example/example_io.cpp:''
[@example_io.cpp(70): Throw in function class boost::shared_ptr<struct _iobuf> __cdecl my_fopen(const char *,const char *)
Dynamic exception type: class boost::exception_detail::clone_impl<struct fopen_error>
std::exception::what: example_io error
[struct boost::(:link
+ 1
+
+ 0
+
+ -18
+
+
+ 2
+ :)_ *] = fopen
[struct boost::(:link
+ 1
+
+ 0
+
+ -37
+
+
+ 2
+ :)_ *] = 2, "No such file or directory"
[struct boost::(:link
+ 1
+
+ 0
+
+ -64
+
+
+ 2
+ :)_ *] = tmp1.txt
[struct boost::(:link
+ 1
+
+ 0
+
+ -12
+
+
+ 2
+ :)_ *] = rb@]
@@ -10084,27 +9683,36 @@
- 7
+ 192
- (:auto !!!:)
(:include synopsis:)
!!!!Requirements:
E must be boost::(:link
+ (:auto !!:)
Boost Exception provides a namespace-scope function (:link 10
- -17
+ -512
- :), or a type that derives (indirectly) from boost::(:link
+ :) which takes a boost::(:link 10
- -17
+ -622
- :).
!!!!Postcondition:
A copy of v is stored into x. If x already contains data of type (:link
+ :). The returned string contains:
*the string representation of all data objects added to the boost::(:link
+ 1
+
+ 0
+
+ -62
+
+
+ 2
+ :) through (:link 10
@@ -10113,7 +9721,52 @@
2
- :)<Tag,T>, that data is overwritten. Basic exception safety guarantee.
!!!!Returns:
x.
(:include throws:)
+ mod="/":);
*the output from std::exception::what;
*additional platform-specific diagnostic information.
The returned string is not presentable as a friendly user message, but because it is generated automatically, it is useful for debugging or logging purposes. Here is an example:
[@#include <(:link
+ 1
+
+ 0
+
+ -28
+
+
+ 2
+ :)>
#include <iostream>
void f(); //throws unknown types that derive from boost::(:link
+ 1
+
+ 0
+
+ -62
+
+
+ 2
+ :).
void
g()
{
try
{
f();
}
catch(
boost::(:link
+ 1
+
+ 0
+
+ -62
+
+
+ 2
+ :) & e )
{
std::cerr << (:link
+ 1
+
+ 0
+
+ -51
+
+
+ 2
+ :)(e);
}
}@]
(:include
+ 1
+
+ 0
+
+ -41
+
+
+ 2
+ :)
@@ -10126,7 +9779,7 @@
12
- (:auto !!:)
(:pagelist fmt="index" tags="function":)
+ (:auto !!:)
!!!Synopsis
(:include synopsis:)
@@ -10137,45 +9790,9 @@
- 9
+ 12
- (:auto !!!:)
(:include synopsis:)
This
- 1
-
- 0
-
- -80
-
-
- 2
- typedef is used by
- 1
-
- 0
-
- -62
-
-
- 2
- if it defaults to returning an
- 1
-
- 0
-
- -29
-
-
- 2
- that refers to an object of type
- 1
-
- 0
-
- -59
-
-
- 2
- , to record in it the std::type_info of the original exception object.
+ (:auto !!:)
!!!Synopsis
(:include synopsis:)
@@ -10186,9 +9803,90 @@
- 1
+ 192
- (:auto !!:)
!!!Synopsis
(:include synopsis:)
+ (:auto !!:)
Boost Exception responds to the following configuration macros:
'''BOOST_NO_RTTI'''\\
'''BOOST_NO_TYPEID'''
The first macro prevents Boost Exception from using dynamic_cast and dynamic typeid. If the second macro is also defined, Boost Exception does not use static typeid either. There are no observable degrading effects on the library functionality, except for the following:
->By default, the (:link
+ 1
+
+ 0
+
+ -72
+
+
+ 2
+ :) function template can be called with any exception type. If BOOST_NO_RTTI is defined, (:link
+ 1
+
+ 0
+
+ -72
+
+
+ 2
+ :) can be used only with objects of type boost::(:link
+ 1
+
+ 0
+
+ -62
+
+
+ 2
+ :).
!!!!Note:
The library needs RTTI functionality. Disabling the language RTTI support enables an internal RTTI system, which may have more or less overhead depending on the platform.
'''BOOST_EXCEPTION_DISABLE'''
By default, (:link
+ 1
+
+ 0
+
+ -9
+
+
+ 2
+ :) and (:link
+ 1
+
+ 0
+
+ -67
+
+
+ 2
+ :) are integrated directly in the (:link
+ 1
+
+ 0
+
+ -63
+
+
+ 2
+ :) function. Defining BOOST_EXCEPTION_DISABLE disables this integration.
Note that on some non-conformant compilers, for example MSVC 7.0 and older, as well as BCC, BOOST_EXCEPTION_DISABLE is implicitly defined in (:link
+ 1
+
+ 0
+
+ -19
+
+
+ 2
+ :).
'''BOOST_NO_EXCEPTIONS'''
This macro disables exception handling in Boost, forwarding all exceptions to a user-defined non-template version of boost::
+ 1
+
+ 0
+
+ -63
+
+
+ 2
+ . However, unless BOOST_EXCEPTION_DISABLE is also defined, users can still examine the exception object for any data added at the point of the throw, or use boost::
+ 1
+
+ 0
+
+ -51
+
+
+ 2
+ (of course under BOOST_NO_EXCEPTIONS, the user-defined boost::throw_exception is not allowed to return to the caller.)
@@ -10198,301 +9896,6 @@
-46
-
- 1
- 2
- (:auto !!:)
!!!Synopsis
(:include synopsis:)
-
-
-
-
- 0
-
- -47
-
-
-
- 3
- 2
- (:auto !!!:)
(:include synopsis:)
!!!!Effects:
Stores a copy of v in the
- 1
-
- 0
-
- -80
-
-
- 2
- object.
(:include throws:)
-
-
-
-
- 0
-
- -48
-
-
-
- 5
- 2
- (:auto !!!:)
(:include synopsis:)
!!!!Effects:
As if
[@try
{
throw
- 1
-
- 0
-
- -37
-
-
- 2
- (e);
}
catch(...)
{
return (:link
- 1
-
- 0
-
- -62
-
-
- 2
- :)();
}@]
-
-
-
-
- 0
-
- -49
-
-
-
- 1
- 2
- (:auto !!!:)
!!!Synopsis
(:include synopsis:)
-
-
-
-
- 0
-
- -50
-
-
-
- 1
- 2
- (:auto !!:)
!!!Synopsis
(:include synopsis:)
-
-
-
-
- 0
-
- -51
-
-
-
- 1
- 2
- (:auto !!:)
!!!Synopsis
(:include synopsis:)
-
-
-
-
- 0
-
- -52
-
-
-
- 7
- 2
- (:auto !!!:)
(:include synopsis:)
This type is designed to be used as a standard (:link
- 1
-
- 0
-
- -80
-
-
- 2
- :) instance for transporting the string passed as a second argument to fopen in exceptions indicating fopen failures and deriving from boost::(:link
- 1
-
- 0
-
- -17
-
-
- 2
- :).
!!!Example:
(:include
- 1
-
- 0
-
- -39
-
-
- 2
- :)
-
-
-
-
- 0
-
- -53
-
-
-
- 1
- 2
- (:auto !!:)
!!!Synopsis
(:include synopsis:)
-
-
-
-
- 0
-
- -54
-
-
-
- 1
- 2
- (:auto !!:)
!!!Synopsis
(:include synopsis:)
-
-
-
-
- 0
-
- -55
-
-
-
- 1
- 2
- (:auto !!!:)
!!!Synopsis
(:include synopsis:)
-
-
-
-
- 0
-
- -56
-
-
-
- 5
- 2
- (:auto !!!:)
(:include synopsis:)
This type is designed to be used as a standard
- 1
-
- 0
-
- -80
-
-
- 2
- instance for transporting strings returned by std::type_info::name in exceptions deriving from boost::
- 1
-
- 0
-
- -17
-
-
- 2
- objects.
-
-
-
-
- 0
-
- -57
-
-
-
- 7
- 2
- (:auto !!!:)
(:include synopsis:)
The
- 1
-
- 0
-
- -57
-
-
- 2
- function is intended to be called from a user-defined std::exception::what() override. This allows diagnostic information to be returned as the what() string.
!!!!Returns:
A pointer to a zero-terminated buffer that contains a string similar to the std::string returned by the
- 1
-
- 0
-
- -66
-
-
- 2
- function, or null to indicate a failure.
!!!!Throws:
Nothing.
!!!!Note:
The returned pointer becomes invalid if any
- 1
-
- 0
-
- -80
-
-
- 2
- is modified or added to the exception object, or if another diagnostic information function is called.
-
-
-
-
- 0
-
- -58
-
-
-
- 7
- 2
- (:auto !!!:)
(:include synopsis:)
This type is designed to be used as a standard (:link
- 1
-
- 0
-
- -80
-
-
- 2
- :) instance for transporting a relevant errno value in exceptions deriving from boost::(:link
- 1
-
- 0
-
- -17
-
-
- 2
- :).
!!!Example:
(:include
- 1
-
- 0
-
- -39
-
-
- 2
- :)
-
-
-
-
- 0
-
- -59
-
- 52
@@ -10501,316 +9904,12 @@
0
- -29
+ -792:) support in Boost Exception. Please see (:link 1
-
- 0
-
- -62
-
-
- 2
- :).
-
-
-
-
- 0
-
- -60
-
-
-
- 7
- 2
- (:auto !!!:)
(:include synopsis:)
This type is designed to be used as a standard (:link
- 1
-
- 0
-
- -80
-
-
- 2
- :) instance for transporting a relevant text file line number, for example in parse error exceptions deriving from boost::(:link
- 1
-
- 0
-
- -17
-
-
- 2
- :).
!!!Example:
(:include
- 1
-
- 0
-
- -39
-
-
- 2
- :)
-
-
-
-
- 0
-
- -61
-
-
-
- 7
- 2
- (:auto !!!:)
(:include synopsis:)
This macro takes an exception object, records BOOST_CURRENT_FUNCTION, __FILE__ and __LINE__ in it, and forwards it to
- 1
-
- 0
-
- -11
-
-
- 2
- . To recover this information at the catch site, use
- 1
-
- 0
-
- -63
-
-
- 2
- ; the information is also included in the message returned by
- 1
-
- 0
-
- -66
-
-
- 2
- .
-
-
-
-
- 0
-
- -62
-
-
-
- 33
- 2
- (:auto !!!:)
(:include synopsis:)
!!!!Requirements:
The (:link
- 1
-
- 0
-
- -62
-
-
- 2
- :) function must not be called outside of a catch block.
!!!!Returns:
* An (:link
- 1
-
- 0
-
- -29
-
-
- 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
-
- -29
-
-
- 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
-
- -62
-
-
- 2
- :) refer to the same exception object.
* Correct implementation of (:link
- 1
-
- 0
-
- -62
-
-
- 2
- :) may require compiler support, unless (:link
- 1
-
- 0
-
- -37
-
-
- 2
- :) was used at the time the currently handled exception object was passed to throw. Whenever
- 1
-
- 0
-
- -62
-
-
- 2
- fails to properly copy the current exception object, it returns an
- 1
-
- 0
-
- -29
-
-
- 2
- to an object of type that is as close as possible to the original exception type, using
- 1
-
- 0
-
- -59
-
-
- 2
- as a final fallback. All such types derive from boost::
- 1
-
- 0
-
- -17
-
-
- 2
- , and:
** if the original exception object derives from boost::(:link
- 1
-
- 0
-
- -17
-
-
- 2
- :), then the boost::(:link
- 1
-
- 0
-
- -17
-
-
- 2
- :) sub-object of the object referred to by the returned
- 1
-
- 0
-
- -29
-
-
- 2
- is initialized by the boost::(:link
- 1
-
- 0
-
- -17
-
-
- 2
- :) copy constructor;
** if available, the exception contains the std::type_info of the original exception object, accessible through
- 1
-
- 0
-
- -63
-
-
- 2
- <
- 1
-
- 0
-
- -44
-
-
- 2
- >.
-
-
-
-
- 0
-
- -63
-
-
-
- 13
- 2
- (:auto !!!:)
(:include synopsis:)
!!!!Requirements:
* ErrorInfo must be an instance of the (:link
- 1
-
- 0
-
- -80
-
-
- 2
- :) template.
* E must be polymorphic.
!!!!Returns:
* If dynamic_cast<boost::(:link
- 1
-
- 0
-
- -17
-
-
- 2
- :) const *>(&x) is 0, or if x does not store an object of type ErrorInfo, the returned value is null.
* Otherwise, the returned pointer points to the stored value (use (:link
- 1
-
- 0
-
- -42
-
-
- 2
- mod="/":) to store values in exception objects.) When x is destroyed, any pointers returned by (:link
- 1
-
- 0
-
- -63
-
-
- 2
- :) become invalid.
!!!!Throws:
Nothing.
!!!!Note:
The interface of (:link
- 1
-
- 0
-
- -63
-
-
- 2
- :) may be affected by the build (:link
- 10
@@ -10825,20 +9924,73 @@
0
- -64
+ -4712
- (:auto !!!:)
(:include synopsis:)
!!!!Requirements:
This function must not be called outside of a catch block.
!!!!Returns:
A pointer of type E to the current exception object, or null if the current exception object can not be converted to E *.
!!!!Throws:
Nothing.
+ (:auto !!:)
!!!Synopsis
(:include synopsis:)
0
- -65
+ -48
+
+
+
+ 1
+ 2
+ (:auto !!!:)
!!!Synopsis
(:include synopsis:)
+
+
+
+
+ 0
+
+ -49
+
+
+
+ 7
+ 2
+ (:auto !!!:)
(:include synopsis:)
This type is designed to be used as a standard (:link
+ 1
+
+ 0
+
+ -10
+
+
+ 2
+ :) instance for transporting (in exceptions deriving from boost::(:link
+ 1
+
+ 0
+
+ -62
+
+
+ 2
+ :)) an
+ 1
+
+ 0
+
+ -79
+
+
+ 2
+ to an exception nested into another exception.
+
+
+
+
+ 0
+
+ -50
@@ -10849,7 +10001,7 @@
0
- -15
+ -282
@@ -10860,7 +10012,7 @@
0
- -66
+ -51
@@ -10871,7 +10023,7 @@
0
- -17
+ -622
@@ -10880,7 +10032,7 @@
0
- -80
+ -102
@@ -10889,7 +10041,7 @@
0
- -17
+ -622
@@ -10898,16 +10050,16 @@
0
- -42
+ -802
- mod="/":), along with other diagnostic information relevant to the exception. If e can be dynamically converted to std::exception, the returned value also contains the what() string.
*Otherwise, if E can be statically converted std::exception:
**if e can be dynamically converted to boost::exception, the returned value is the same as if E could be statically converted to boost::(:link
+ mod="/":), along with other diagnostic information relevant to the exception. If e can be dynamically converted to std::exception, the returned value also contains the what() string.
*Otherwise, if E can be statically converted to std::exception:
**if e can be dynamically converted to boost::exception, the returned value is the same as if E could be statically converted to boost::(:link 10
- -17
+ -622
@@ -10916,7 +10068,7 @@
0
- -66
+ -512
@@ -10925,7 +10077,7 @@
0
- -80
+ -102
@@ -10934,7 +10086,7 @@
0
- -80
+ -102
@@ -10943,7 +10095,7 @@
0
- -80
+ -102
@@ -10952,7 +10104,7 @@
0
- -25
+ -612
@@ -10961,7 +10113,7 @@
0
- -25
+ -612
@@ -10970,7 +10122,7 @@
0
- -66
+ -512
@@ -10979,7 +10131,7 @@
0
- -80
+ -102
@@ -10988,7 +10140,7 @@
0
- -29
+ -792
@@ -10997,7 +10149,7 @@
0
- -66
+ -512
@@ -11006,7 +10158,7 @@
0
- -30
+ -152
@@ -11015,7 +10167,7 @@
0
- -14
+ -532
@@ -11024,7 +10176,7 @@
0
- -33
+ -412
@@ -11035,13 +10187,1027 @@
0
- -67
+ -5212
- (:auto !!:)
(:pagelist fmt="index" tags="type":)
+ (:auto !!:)
(:pagelist fmt="index" tags="function":)
+
+
+
+
+ 0
+
+ -53
+
+
+
+ 9
+ 2
+ (:auto !!!:)
(:include synopsis:)
!!!!Requirements:
This function must not be called outside of a catch block.
!!!!Returns:
If the current exception object can be converted to boost::(:link
+ 1
+
+ 0
+
+ -62
+
+
+ 2
+ :) or std::exception, this function returns the same string value returned by (:link
+ 1
+
+ 0
+
+ -51
+
+
+ 2
+ :) for the current exception object. Otherwise, an unspecified non-empty string is returned.
Typical use is to call
+ 1
+
+ 0
+
+ -53
+
+
+ 2
+ from a top-level function to output diagnostic information about unhandled exceptions:
[@int
main()
{
try
{
run_program();
}
catch(
error & e )
{
//handle error
}
catch(
...)
{
std::cerr << "Unhandled exception!" << std::endl <<
boost::
+ 1
+
+ 0
+
+ -53
+
+
+ 2
+ ();
}
}@]
+
+
+
+
+ 0
+
+ -54
+
+
+
+ 9
+ 2
+ (:auto !!!:)
(:include synopsis:)
This
+ 1
+
+ 0
+
+ -10
+
+
+ 2
+ typedef is used by
+ 1
+
+ 0
+
+ -71
+
+
+ 2
+ if it defaults to returning an
+ 1
+
+ 0
+
+ -79
+
+
+ 2
+ that refers to an object of type
+ 1
+
+ 0
+
+ -46
+
+
+ 2
+ , to record in it the std::type_info of the original exception object.
+
+
+
+
+ 0
+
+ -55
+
+
+
+ 37
+ 2
+ [@#include <(:link
+ 1
+
+ 0
+
+ -76
+
+
+ 2
+ :)>
#include <(:link
+ 1
+
+ 0
+
+ -66
+
+
+ 2
+ :)>
#include <(:link
+ 1
+
+ 0
+
+ -14
+
+
+ 2
+ :)>
#include <(:link
+ 1
+
+ 0
+
+ -77
+
+
+ 2
+ :)>
#include <(:link
+ 1
+
+ 0
+
+ -58
+
+
+ 2
+ :)>
#include <(:link
+ 1
+
+ 0
+
+ -47
+
+
+ 2
+ :)>
#include <(:link
+ 1
+
+ 0
+
+ -29
+
+
+ 2
+ :)>
#include <(:link
+ 1
+
+ 0
+
+ -19
+
+
+ 2
+ :)>
#include <boost/shared_ptr.hpp>
#include <boost/weak_ptr.hpp>
#include <stdio.h>
#include <errno.h>
#include <exception>
struct error : virtual std::exception, virtual boost::(:link
+ 1
+
+ 0
+
+ -62
+
+
+ 2
+ :) { };
struct file_error : virtual error { };
struct file_open_error: virtual file_error { };
struct file_read_error: virtual file_error { };
boost::shared_ptr<FILE>
open_file( char const * file, char const * mode )
{
if( FILE * f=fopen(file,mode) )
return boost::shared_ptr<FILE>(f,fclose);
else
(:link
+ 1
+
+ 0
+
+ -75
+
+
+ 2
+ :)(
file_open_error() <<
boost::(:link
+ 1
+
+ 0
+
+ -18
+
+
+ 2
+ :)("fopen") <<
boost::(:link
+ 1
+
+ 0
+
+ -37
+
+
+ 2
+ :)(errno) <<
boost::(:link
+ 1
+
+ 0
+
+ -64
+
+
+ 2
+ :)(file) <<
boost::(:link
+ 1
+
+ 0
+
+ -12
+
+
+ 2
+ :)(mode) );
}
size_t
read_file( boost::shared_ptr<FILE> const & f, void * buf, size_t size )
{
size_t nr=fread(buf,1,size,f.get());
if( ferror(f.get()) )
(:link
+ 1
+
+ 0
+
+ -75
+
+
+ 2
+ :)(
file_read_error() <<
boost::(:link
+ 1
+
+ 0
+
+ -18
+
+
+ 2
+ :)("fread") <<
boost::(:link
+ 1
+
+ 0
+
+ -37
+
+
+ 2
+ :)(errno) <<
boost::(:link
+ 1
+
+ 0
+
+ -33
+
+
+ 2
+ :)(f) );
return nr;
}@]
+
+
+
+
+ 0
+
+ -56
+
+
+
+ 1
+ 2
+ (:auto !!:)
!!!Synopsis
(:include synopsis:)
+
+
+
+
+ 0
+
+ -57
+
+
+
+ 3
+ 2
+ (:auto !!!:)
(:include synopsis:)
!!!!Effects:
Stores a copy of v in the
+ 1
+
+ 0
+
+ -10
+
+
+ 2
+ object.
(:include throws:)
+
+
+
+
+ 0
+
+ -58
+
+
+
+ 1
+ 2
+ (:auto !!:)
!!!Synopsis
(:include synopsis:)
+
+
+
+
+ 0
+
+ -59
+
+
+
+ 77
+ 2
+ !!Synopsis
List of documented definitions, declarations and includes by header file:
`#include <(:link
+ 1
+
+ 0
+
+ -7
+
+
+ 2
+ :)>
[@(:include
+ 1
+
+ 0
+
+ -7
+
+
+ 2
+ synopsis:)@]
`#include <(:link
+ 1
+
+ 0
+
+ -44
+
+
+ 2
+ :)>
[@(:include
+ 1
+
+ 0
+
+ -44
+
+
+ 2
+ synopsis:)@]
`#include <(:link
+ 1
+
+ 0
+
+ -29
+
+
+ 2
+ :)>
[@(:include
+ 1
+
+ 0
+
+ -29
+
+
+ 2
+ synopsis:)@]
`#include <(:link
+ 1
+
+ 0
+
+ -43
+
+
+ 2
+ :)>
[@(:include
+ 1
+
+ 0
+
+ -43
+
+
+ 2
+ synopsis:)@]
`#include <(:link
+ 1
+
+ 0
+
+ -48
+
+
+ 2
+ :)>
[@(:include
+ 1
+
+ 0
+
+ -48
+
+
+ 2
+ synopsis:)@]
`#include <(:link
+ 1
+
+ 0
+
+ -40
+
+
+ 2
+ :)>
[@(:include
+ 1
+
+ 0
+
+ -40
+
+
+ 2
+ synopsis:)@]
`#include <(:link
+ 1
+
+ 0
+
+ -38
+
+
+ 2
+ :)>
[@(:include
+ 1
+
+ 0
+
+ -38
+
+
+ 2
+ synopsis:)@]
`#include <(:link
+ 1
+
+ 0
+
+ -60
+
+
+ 2
+ :)>
[@(:include
+ 1
+
+ 0
+
+ -60
+
+
+ 2
+ synopsis:)@]
`#include <(:link
+ 1
+
+ 0
+
+ -30
+
+
+ 2
+ :)>
[@(:include
+ 1
+
+ 0
+
+ -30
+
+
+ 2
+ synopsis:)@]
`#include <(:link
+ 1
+
+ 0
+
+ -19
+
+
+ 2
+ :)>
[@(:include
+ 1
+
+ 0
+
+ -19
+
+
+ 2
+ synopsis:)@]
`#include <(:link
+ 1
+
+ 0
+
+ -76
+
+
+ 2
+ :)>
(:include
+ 1
+
+ 0
+
+ -76
+
+
+ 2
+ synopsis:)
`#include <(:link
+ 1
+
+ 0
+
+ -66
+
+
+ 2
+ :)>
(:include
+ 1
+
+ 0
+
+ -66
+
+
+ 2
+ synopsis:)
`#include <(:link
+ 1
+
+ 0
+
+ -14
+
+
+ 2
+ :)>
(:include
+ 1
+
+ 0
+
+ -14
+
+
+ 2
+ synopsis:)
`#include <(:link
+ 1
+
+ 0
+
+ -77
+
+
+ 2
+ :)>
(:include
+ 1
+
+ 0
+
+ -77
+
+
+ 2
+ synopsis:)
`#include <(:link
+ 1
+
+ 0
+
+ -58
+
+
+ 2
+ :)>
(:include
+ 1
+
+ 0
+
+ -58
+
+
+ 2
+ synopsis:)
`#include <(:link
+ 1
+
+ 0
+
+ -47
+
+
+ 2
+ :)>
(:include
+ 1
+
+ 0
+
+ -47
+
+
+ 2
+ synopsis:)
`#include <
+ 1
+
+ 0
+
+ -26
+
+
+ 2
+ >
(:include
+ 1
+
+ 0
+
+ -26
+
+
+ 2
+ synopsis:)
`#include <(:link
+ 1
+
+ 0
+
+ -34
+
+
+ 2
+ :)>
(:include
+ 1
+
+ 0
+
+ -34
+
+
+ 2
+ synopsis:)
`#include <(:link
+ 1
+
+ 0
+
+ -28
+
+
+ 2
+ :)>
(:include
+ 1
+
+ 0
+
+ -28
+
+
+ 2
+ synopsis:)
+
+
+
+
+ 0
+
+ -60
+
+
+
+ 1
+ 2
+ (:auto !!:)
!!!Synopsis
(:include synopsis:)
+
+
+
+
+ 0
+
+ -61
+
+
+
+ 5
+ 2
+ (:auto !!!:)
(:include synopsis:)
!!!!Description:
Returns a (const) reference to the copy of the value passed to (:link
+ 1
+
+ 0
+
+ -10
+
+
+ 2
+ :)'s constructor stored in the (:link
+ 1
+
+ 0
+
+ -10
+
+
+ 2
+ :) object.
!!!!Throws:
Nothing.
+
+
+
+
+ 0
+
+ -62
+
+
+
+ 13
+ 2
+ (:auto !!!:)
(:include synopsis:)
Class boost::(:link
+ 1
+
+ 0
+
+ -62
+
+
+ 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
+
+ -62
+
+
+ 2
+ :) can store data of arbitrary types, using the (:link
+ 1
+
+ 0
+
+ -10
+
+
+ 2
+ :) wrapper and (:link
+ 1
+
+ 0
+
+ -80
+
+
+ 2
+ mod="/":).
To retrieve data from a boost::(:link
+ 1
+
+ 0
+
+ -62
+
+
+ 2
+ :) object, use the (:link
+ 1
+
+ 0
+
+ -72
+
+
+ 2
+ :) function template.
+
+
+
+
+ 0
+
+ -63
+
+
+
+ 17
+ 2
+ (:auto !!!:)
(:include synopsis:)
!!!!Requirements:
E must derive publicly from std::exception.
!!!!Effects:
* If BOOST_NO_EXCEPTIONS is not defined, boost::(:link
+ 1
+
+ 0
+
+ -63
+
+
+ 2
+ :)(e) is equivalent to throw boost::(:link
+ 1
+
+ 0
+
+ -9
+
+
+ 2
+ :)(boost::(:link
+ 1
+
+ 0
+
+ -67
+
+
+ 2
+ :)(e)), unless BOOST_EXCEPTION_DISABLE is defined, in which case boost::(:link
+ 1
+
+ 0
+
+ -63
+
+
+ 2
+ :)(e) is equivalent to throw e;
* If BOOST_NO_EXCEPTIONS is defined, the function is left undefined, and the user is expected to supply an appropriate definition. Callers of (:link
+ 1
+
+ 0
+
+ -63
+
+
+ 2
+ :) are allowed to assume that the function never returns; therefore, if the user-defined (:link
+ 1
+
+ 0
+
+ -63
+
+
+ 2
+ :) returns, the behavior is undefined.
!!!!Note:
Under BOOST_NO_EXCEPTIONS, unless BOOST_EXCEPTION_DISABLE is also defined, users can examine the passed exception object using boost::
+ 1
+
+ 0
+
+ -72
+
+
+ 2
+ , or format an automatic diagnostic message using boost::
+ 1
+
+ 0
+
+ -51
+
+
+ 2
+ .
+
+
+
+
+ 0
+
+ -64
+
+
+
+ 7
+ 2
+ (:auto !!!:)
(:include synopsis:)
This type is designed to be used as a standard (:link
+ 1
+
+ 0
+
+ -10
+
+
+ 2
+ :) instance for transporting a relevant file name in exceptions deriving from boost::(:link
+ 1
+
+ 0
+
+ -62
+
+
+ 2
+ :).
!!!Example:
(:include
+ 1
+
+ 0
+
+ -55
+
+
+ 2
+ :)
+
+
+
+
+ 0
+
+ -65
+
+
+
+ 11
+ 2
+ (:auto !!:)
All exception types that derive from boost::(:link
+ 1
+
+ 0
+
+ -62
+
+
+ 2
+ :) can be used as type-safe containers of arbitrary data objects, while complying with the no-throw requirements (15.5.1) of the ANSI C++ standard for exception types.
When exceptions derive from boost::(:link
+ 1
+
+ 0
+
+ -62
+
+
+ 2
+ :), arbitrary data can be added to exception objects:
*At the point of the throw;
*At a later time as exceptions bubble up the call stack.
(:include
+ 1
+
+ 0
+
+ -27
+
+
+ 2
+ :)
(:include
+ 1
+
+ 0
+
+ -39
+
+
+ 2
+ :)
(:include
+ 1
+
+ 0
+
+ -25
+
+
+ 2
+ :)
+
+
+
+
+ 0
+
+ -66
+
+
+
+ 1
+ 2
+ (:auto !!:)
!!!Synopsis
(:include synopsis:)
+
+
+
+
+ 0
+
+ -67
+
+
+
+ 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
+
+ -62
+
+
+ 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
+
+ -62
+
+
+ 2
+ :). The T sub-object is initialized from x by the T copy constructor.
!!!!Throws:
Nothing.
@@ -11054,7 +11220,7 @@
12
- (:auto !!:)
!!!Synopsis
(:include synopsis:)
+ (:auto !!:)
(:pagelist tags="macro":)
@@ -11065,9 +11231,72 @@
- 1
+ 152
- (:auto !!:)
!!!Synopsis
(:include synopsis:)
+ (:auto !!!:)
Here is how cloning can be enabled in a throw-expression (15.1):
[@#include <(:link
+ 1
+
+ 0
+
+ -29
+
+
+ 2
+ :)>
#include <(:link
+ 1
+
+ 0
+
+ -14
+
+
+ 2
+ :)>
#include <stdio.h>
#include <errno.h>
struct file_read_error: virtual boost::(:link
+ 1
+
+ 0
+
+ -62
+
+
+ 2
+ :) { };
void
file_read( FILE * f, void * buffer, size_t size )
{
if( size!=fread(buffer,1,size,f) )
throw boost::(:link
+ 1
+
+ 0
+
+ -9
+
+
+ 2
+ :)(file_read_error()) <<
boost::(:link
+ 1
+
+ 0
+
+ -37
+
+
+ 2
+ :)(errno);
}@]
Of course, (:link
+ 1
+
+ 0
+
+ -9
+
+
+ 2
+ :) may be used with any exception type; there is no requirement that it should derive from boost::(:link
+ 1
+
+ 0
+
+ -62
+
+
+ 2
+ :).
@@ -11078,139 +11307,54 @@
- 1
+ 112
- (:auto !!:)
!!!Synopsis
(:include synopsis:)
-
-
-
-
- 0
-
- -9
-
-
-
- 27
- 2
- (:auto !!:)
Some exception hierarchies can not be modified to make boost::(:link
+ (: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 10
- -17
+ -92
- :) a base type. In this case, the (:link
+ :) at the time of the throw is required in order to use cloning.
!!!!Note:
All exceptions emitted by the familiar function boost::(:link 10
- -74
+ -632
- :) function template can be used to make exception objects derive from boost::(:link
+ :) are guaranteed to derive from boost::(:link 10
- -17
+ -622
- :) anyway. Here is an example:
[@#include <(:link
+ :) and to support cloning.
(:include 10
- -15
+ -692
- :)>
#include <stdexcept>
typedef boost::(:link
+ :)
(:include 10
- -80
+ -82
- :)<struct tag_std_range_min,size_t> std_range_min;
typedef boost::(:link
- 1
-
- 0
-
- -80
-
-
- 2
- :)<struct tag_std_range_max,size_t> std_range_max;
typedef boost::(:link
- 1
-
- 0
-
- -80
-
-
- 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
-
- -74
-
-
- 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
-
- -74
-
-
- 2
- :)<T> gets us an object of ''unspecified type'' which is guaranteed to derive from both boost::(:link
- 1
-
- 0
-
- -17
-
-
- 2
- :) and T. This makes it possible to use (:link
- 1
-
- 0
-
- -42
-
-
- 2
- mod="/":) to store additional information in the exception object. The exception can be intercepted as T &, so existing exception handling will not break. It can also be intercepted as boost::(:link
- 1
-
- 0
-
- -17
-
-
- 2
- :) &, so that (:link
- 1
-
- 0
-
- -72
-
-
- 2
- |more information can be added to the exception at a later time:).
+ :)
@@ -11221,63 +11365,81 @@
- 19
+ 332
- (:auto !!:)
Boost Exception responds to the following configuration macros:
'''BOOST_NO_RTTI'''\\
'''BOOST_NO_TYPEID'''
The first macro prevents Boost Exception from using dynamic_cast and dynamic typeid. If the second macro is also defined, Boost Exception does not use static typeid either. There are no observable degrading effects on the library functionality, except for the following:
->By default, the (:link
+ (:auto !!!:)
(:include synopsis:)
!!!!Requirements:
The (:link 10
- -63
+ -712
- :) function template can be called with any exception type. If BOOST_NO_RTTI is defined, (:link
+ :) function must not be called outside of a catch block.
!!!!Returns:
* An (:link 10
- -63
+ -792
- :) can be used only with objects of type boost::(:link
+ :) that refers to the currently handled exception or a copy of the currently handled exception.
* If the function needs to allocate memory and the attempt fails, it returns an (:link 10
- -17
+ -792
- :).
!!!!Note:
The library needs RTTI functionality. Disabling the language RTTI support enables an internal RTTI system, which may have more or less overhead depending on the platform.
'''BOOST_EXCEPTION_DISABLE'''
By default, (:link
+ :) that refers to an instance of std::bad_alloc.
!!!!Throws:
Nothing.
!!!!Notes:
* It is unspecified whether the return values of two successive calls to (:link 10
- -37
+ -712
- :) and (:link
+ :) refer to the same exception object.
* Correct implementation of (:link 10
- -74
+ -712
- :) are integrated directly in the (:link
+ :) may require compiler support, unless (:link 10
- -11
+ -92
- :) function. Defining BOOST_EXCEPTION_DISABLE disables this integration.
Note that on some non-conformant compilers, for example MSVC 7.0 and older, as well as BCC, BOOST_EXCEPTION_DISABLE is implicitly defined in (:link
+ :) was used at the time the currently handled exception object was passed to throw. Whenever
+ 1
+
+ 0
+
+ -71
+
+
+ 2
+ fails to properly copy the current exception object, it returns an
+ 1
+
+ 0
+
+ -79
+
+
+ 2
+ to an object of type that is as close as possible to the original exception type, using 10
@@ -11286,25 +11448,70 @@
2
- :).
'''BOOST_NO_EXCEPTIONS'''
This macro disables exception handling in Boost, forwarding all exceptions to a user-defined non-template version of boost::
+ as a final fallback. All such types derive from boost::10
- -11
+ -622
- . However, unless BOOST_EXCEPTION_DISABLE is also defined, users can still examine the exception object for any data added at the point of the throw, or use boost::
+ , and:
** if the original exception object derives from boost::(:link 10
- -66
+ -622
- (of course under BOOST_NO_EXCEPTIONS, the user-defined boost::throw_exception is not allowed to return to the caller.)
+ :), then the boost::(:link
+ 1
+
+ 0
+
+ -62
+
+
+ 2
+ :) sub-object of the object referred to by the returned
+ 1
+
+ 0
+
+ -79
+
+
+ 2
+ is initialized by the boost::(:link
+ 1
+
+ 0
+
+ -62
+
+
+ 2
+ :) copy constructor;
** if available, the exception contains the std::type_info of the original exception object, accessible through
+ 1
+
+ 0
+
+ -72
+
+
+ 2
+ <
+ 1
+
+ 0
+
+ -54
+
+
+ 2
+ >.
@@ -11315,54 +11522,63 @@
- 11
+ 132
- (:auto !!:)
All exception types that derive from boost::(:link
+ (:auto !!!:)
(:include synopsis:)
!!!!Requirements:
* ErrorInfo must be an instance of the (:link 10
- -17
+ -102
- :) can be used as type-safe containers of arbitrary data objects, while complying with the no-throw requirements (15.5.1) of the ANSI C++ standard for exception types.
When exceptions derive from boost::(:link
+ :) template.
* E must be polymorphic.
!!!!Returns:
* If dynamic_cast<boost::(:link 10
- -17
+ -622
- :), arbitrary data can be added to exception objects:
*At the point of the throw;
*At a later time as exceptions bubble up the call stack.
(:include
+ :) const *>(&x) is 0, or if x does not store an object of type ErrorInfo, the returned value is null.
* Otherwise, the returned pointer points to the stored value (use (:link 10
- -16
+ -802
- :)
(:include
+ mod="/":) to store values in exception objects.) When x is destroyed, any pointers returned by (:link 10
- -40
+ -722
- :)
(:include
+ :) become invalid.
!!!!Throws:
Nothing.
!!!!Note:
The interface of (:link 10
- -13
+ -722
- :)
+ :) may be affected by the build (:link
+ 1
+
+ 0
+
+ -45
+
+
+ 2
+ :).
@@ -11375,7 +11591,7 @@
12
- (:auto !!:)
!!!Synopsis
(:include synopsis:)
+ (:auto !!!:)
(:include synopsis:)
!!!!Requirements:
This function must not be called outside of a catch block.
!!!!Returns:
A pointer of type E to the current exception object, or null if the current exception object can not be converted to E *.
!!!!Throws:
Nothing.
@@ -11386,27 +11602,36 @@
- 5
+ 72
- (:auto !!!:)
(:include synopsis:)
!!!!Requirements:
T must be a class with an accessible no-throw copy constructor as per (15.5.1).
!!!!Returns:
* If T derives from boost::(:link
+ (:auto !!!:)
(:include synopsis:)
This type is designed to be used as a standard (:link 10
- -17
+ -102
- :), 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
+ :) instance for transporting a relevant text file line number, for example in parse error exceptions deriving from boost::(:link 10
- -17
+ -622
- :). The T sub-object is initialized from x by the T copy constructor.
!!!!Throws:
Nothing.
+ :).
!!!Example:
(:include
+ 1
+
+ 0
+
+ -55
+
+
+ 2
+ :)
@@ -11417,9 +11642,36 @@
- 1
+ 72
- (:auto !!:)
(:pagelist tags="macro":)
+ (:auto !!!:)
(:include synopsis:)
This macro takes an exception object, records BOOST_CURRENT_FUNCTION, __FILE__ and __LINE__ in it, and forwards it to
+ 1
+
+ 0
+
+ -63
+
+
+ 2
+ . To recover this information at the catch site, use
+ 1
+
+ 0
+
+ -72
+
+
+ 2
+ ; the information is also included in the message returned by
+ 1
+
+ 0
+
+ -51
+
+
+ 2
+ .
@@ -11430,27 +11682,9 @@
- 5
+ 12
- (:auto !!!:)
(:include synopsis:)
!!!!Requirements:
E must be boost::(:link
- 1
-
- 0
-
- -17
-
-
- 2
- :), or a type that derives (indirectly) from boost::(:link
- 1
-
- 0
-
- -17
-
-
- 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:)
+ (:auto !!:)
!!!Synopsis
(:include synopsis:)
@@ -11461,36 +11695,9 @@
- 7
+ 12
- (:auto !!!:)
(:include decl:)
!!!!Effects:
* Default constructor: initializes an empty boost::(:link
- 1
-
- 0
-
- -17
-
-
- 2
- :) object.
* Copy constructor: initializes a boost::(:link
- 1
-
- 0
-
- -17
-
-
- 2
- :) object which shares ownership with x of all data added through (:link
- 1
-
- 0
-
- -42
-
-
- 2
- mod="/":), including data that is added at a future time.
!!!!Throws:
Nothing.
+ (:auto !!:)
!!!Synopsis
(:include synopsis:)
@@ -11503,7 +11710,7 @@
12
- (:auto !!:)
!!!Synopsis
(:include synopsis:)
+ (:auto !!:)
(:pagelist tags="hpp" except_tags="noindex":)
@@ -11514,9 +11721,108 @@
- 37
+ 252
- (:auto !!!:)
When you catch an exception, you can call (:link
+ (:auto !!!:)
(:include synopsis:)
The (:link
+ 1
+
+ 0
+
+ -79
+
+
+ 2
+ :) type can be used to refer to a copy of an exception object. It is Default Constructible, Copy Constructible, Assignable and Equality Comparable; (:link
+ 1
+
+ 0
+
+ -79
+
+
+ 2
+ :)'s operations do not throw.
The referenced object remains valid at least as long as there is an (:link
+ 1
+
+ 0
+
+ -79
+
+
+ 2
+ :) object that refers to it.
Two instances of (:link
+ 1
+
+ 0
+
+ -79
+
+
+ 2
+ :) are equivalent and compare equal if and only if they refer to the same exception.
The default constructor of (:link
+ 1
+
+ 0
+
+ -79
+
+
+ 2
+ :) produces the null value of the type. The null value is equivalent only to itself.
!!!!Thread safety
* It is legal for multiple threads to hold (:link
+ 1
+
+ 0
+
+ -79
+
+
+ 2
+ :) references to the same exception object.
* It is illegal for multiple threads to modify the same (:link
+ 1
+
+ 0
+
+ -79
+
+
+ 2
+ :) object concurrently.
* While calling (:link
+ 1
+
+ 0
+
+ -71
+
+
+ 2
+ :) makes a copy of the current exception object, it is still possible for the two copies to share internal state. Therefore, in general it is not safe to call (:link
+ 1
+
+ 0
+
+ -15
+
+
+ 2
+ :) concurrently to throw the same exception object into multiple threads.
!!!!Nesting of exceptions:
An (:link
+ 1
+
+ 0
+
+ -79
+
+
+ 2
+ :) can be added as (:link
+ 1
+
+ 0
+
+ -10
+
+
+ 2
+ :) to any boost::(:link 10
@@ -11525,160 +11831,7 @@
2
- :) to get an (:link
- 1
-
- 0
-
- -29
-
-
- 2
- :) object:
[@#include <(:link
- 1
-
- 0
-
- -21
-
-
- 2
- :)>
#include <boost/thread.hpp>
#include <boost/bind.hpp>
void do_work(); //throws cloning-enabled boost::(:link
- 1
-
- 0
-
- -17
-
-
- 2
- :)s
void
worker_thread( boost::(:link
- 1
-
- 0
-
- -29
-
-
- 2
- :) & error )
{
try
{
do_work();
error = boost::(:link
- 1
-
- 0
-
- -29
-
-
- 2
- :)();
}
catch(
... )
{
error = boost::(:link
- 1
-
- 0
-
- -62
-
-
- 2
- :)();
}
}@]
In the above example, note that (:link
- 1
-
- 0
-
- -62
-
-
- 2
- :) captures the original type of the exception object. The exception can be thrown again using the (:link
- 1
-
- 0
-
- -30
-
-
- 2
- :) function:
[@// ...continued
void
work()
{
boost::(:link
- 1
-
- 0
-
- -29
-
-
- 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
-
- -30
-
-
- 2
- :)(error);
}@]
Note that (:link
- 1
-
- 0
-
- -62
-
-
- 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
-
- -29
-
-
- 2
- :) points to an instance of std::bad_alloc, or
* if (:link
- 1
-
- 0
-
- -37
-
-
- 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
-
- -29
-
-
- 2
- :) points to an instance of (:link
- 1
-
- 0
-
- -59
-
-
- 2
- :).
Regardless, the use of (:link
- 1
-
- 0
-
- -62
-
-
- 2
- :) and (:link
- 1
-
- 0
-
- -30
-
-
- 2
- :) in the above examples is well-formed.
+ :). This is a convenient way to nest exceptions. There is no limit on the depth of the nesting, however cyclic references result in undefined behavior.
@@ -11689,189 +11842,36 @@
- 41
+ 72
- (:auto !!!:)
(:include synopsis:)
!!!!Requirements:
T must have accessible copy constructor and must not be a reference (there is no requirement that T's copy constructor does not throw.)
!!!!Description:
This class template is used to associate a Tag type with a value type T. Objects of type (:link
+ (:auto !!!:)
(:include synopsis:)
!!!!Requirements:
E must be boost::(:link 10
- -80
+ -622
- :)<Tag,T> can be passed to (:link
+ :), or a type that derives (indirectly) from boost::(:link 10
- -42
+ -622
- mod="/":) to be stored in objects of type boost::(:link
+ :).
!!!!Postcondition:
A copy of v is stored into x. If x already contains data of type (:link 10
- -17
+ -102
- :).
!!!!Usage:
The header <(:link
- 1
-
- 0
-
- -70
-
-
- 2
- :)> provides a declaration of the (:link
- 1
-
- 0
-
- -80
-
-
- 2
- :) template, which is sufficient for the purpose of typedefing an instance for specific Tag and T, for example:
[@#include <(:link
- 1
-
- 0
-
- -70
-
-
- 2
- :)>
struct tag_errno;
typedef boost::(:link
- 1
-
- 0
-
- -80
-
-
- 2
- :)<tag_errno,int> errno_info;@]
Or, the shorter equivalent:
[@#include <(:link
- 1
-
- 0
-
- -70
-
-
- 2
- :)>
typedef boost::(:link
- 1
-
- 0
-
- -80
-
-
- 2
- :)<struct tag_errno,int> errno_info;@]
This errno_info typedef can be passed to (:link
- 1
-
- 0
-
- -42
-
-
- 2
- mod="/":) (#include <(:link
- 1
-
- 0
-
- -18
-
-
- 2
- :)> first) to store an int named tag_errno in exceptions of types that derive from boost::(:link
- 1
-
- 0
-
- -17
-
-
- 2
- :):
[@throw file_read_error() (:link
- 1
-
- 0
-
- -42
-
-
- 2
- |<<:) errno_info(errno);@]
It can also be passed to (:link
- 1
-
- 0
-
- -63
-
-
- 2
- :) (#include <(:link
- 1
-
- 0
-
- -20
-
-
- 2
- :)> first) to retrieve the tag_errno int from a boost::(:link
- 1
-
- 0
-
- -17
-
-
- 2
- :):
[@catch( boost::(:link
- 1
-
- 0
-
- -17
-
-
- 2
- :) & x )
{
if( int const * e=boost::(:link
- 1
-
- 0
-
- -63
-
-
- 2
- :)<errno_info>(x) )
....
}@]
For convenience and uniformity, Boost Exception defines the following commonly used (:link
- 1
-
- 0
-
- -80
-
-
- 2
- :) typedefs, ready for use with (:link
- 1
-
- 0
-
- -42
-
-
- 2
- mod="/":):
(:pagelist tags="error_info_instance":)
+ :)<Tag,T>, that data is overwritten. Basic exception safety guarantee.
!!!!Returns:
x.
(:include throws:)
@@ -11896,7 +11896,9 @@
- 0
+ 1
+ 2
+ !!!!Throws:
std::bad_alloc, or any exception emitted by T1..TN copy constructor.
@@ -11932,6 +11934,17 @@
0
+
+
+ 0
+
+ -9
+
+
+
+ 0
+
+ 0
@@ -12057,7 +12070,7 @@
0
- -21
+ -24
@@ -12086,17 +12099,6 @@
0
-
-
- 0
-
- -24
-
-
-
- 0
-
- 0
@@ -12152,6 +12154,17 @@
0
+
+
+ 0
+
+ -21
+
+
+
+ 0
+
+ 0
@@ -12292,9 +12305,7 @@
- 1
- 2
- !!!!Throws:
std::bad_alloc, or any exception emitted by the T copy constructor.
+ 0
@@ -12349,9 +12360,7 @@
- 1
- 2
- !!!!Throws:
Any exception emitted by v's copy constructor.
+ 0
@@ -12461,7 +12470,9 @@
- 0
+ 1
+ 2
+ !!!!Throws:
Any exception emitted by v's copy constructor.
@@ -12607,17 +12618,6 @@
0
-
-
- 0
-
- -9
-
-
-
- 0
-
- 0
@@ -12681,9 +12681,7 @@
- 1
- 2
- !!!!Throws:
std::bad_alloc, or any exception emitted by T1..TN copy constructor.
+ 0
@@ -12727,7 +12725,9 @@
- 0
+ 1
+ 2
+ !!!!Throws:
std::bad_alloc, or any exception emitted by the T copy constructor.
@@ -12752,7 +12752,27 @@
- 0
+ 5
+ 2
+ `#include <(:link
+ 1
+
+ 0
+
+ -43
+
+
+ 2
+ :)>
[@namespace
boost
{
(:include
+ 1
+
+ 0
+
+ -5
+
+
+ 2
+ decl pre_indent="4":)
}@]
@@ -12774,7 +12794,9 @@
- 0
+ 1
+ 2
+ [@namespace
boost
{
(:include api pre_indent="4":)
}@]
@@ -12792,38 +12814,29 @@
0
- -10
+ -9
- 5
+ 32
- `#include <(:link
+ `#include <10
- -34
+ -302
- :)>
(:include
- 1
-
- 0
-
- -34
-
-
- 2
- synopsis:)
+ >
[@namespace
boost
{
(:include decl pre_indent="4":)
}@]
0
- -11
+ -10
@@ -12834,11 +12847,22 @@
0
- -46
+ -292
- :)>
[@namespace
boost
{
(:include decl:)
}@]
+ :)>
[@namespace
boost
{
(:include def pre_indent="4":)
}@]
+
+
+
+
+ 0
+
+ -11
+
+
+
+ 0
@@ -12849,7 +12873,27 @@
- 0
+ 5
+ 2
+ `#include <
+ 1
+
+ 0
+
+ -47
+
+
+ 2
+ >
(:include
+ 1
+
+ 0
+
+ -47
+
+
+ 2
+ synopsis:)
@@ -12873,16 +12917,16 @@
32
- `#include <(:link
+ [@#include <10
- -51
+ -442
- :)>\\
[@namespace
boost
{
(:include decl pre_indent="4":)
}@]
+ >
#include <errno.h>
namespace
boost
{
(:include api pre_indent="4":)
}@]
@@ -12893,9 +12937,18 @@
- 1
+ 32
- [@(:include api:)@]
+ `#include <(:link
+ 1
+
+ 0
+
+ -60
+
+
+ 2
+ :)>
[@namespace
boost
{
(:include decl pre_indent="4":)
}@]
@@ -12924,11 +12977,11 @@
0
- -78
+ -292
- :)>
[@namespace
boost
{
(:include def pre_indent="4":)
}@]
+ :)>
[@(:include decl:)@]
@@ -12939,18 +12992,27 @@
- 3
+ 52
- [@#include <(:link
+ `#include <10
- -78
+ -762
- :)>
namespace
boost
{
(:include api pre_indent="4":)
}@]
+ >
(:include
+ 1
+
+ 0
+
+ -76
+
+
+ 2
+ synopsis:)
@@ -12961,7 +13023,9 @@
- 0
+ 1
+ 2
+ (:include api:)
@@ -12972,31 +13036,18 @@
- 1
- 2
- [@#include <boost/shared_ptr.hpp>
namespace
boost
{
(:include api pre_indent="4":)
}@]
+ 00
- -21
+ -24
- 3
- 2
- [@#include <(:link
- 1
-
- 0
-
- -78
-
-
- 2
- :)>
namespace
boost
{
(:include api pre_indent="4":)
}@]
+ 0
@@ -13021,37 +13072,6 @@
0
-
-
- 0
-
- -24
-
-
-
- 5
- 2
- `#include <
- 1
-
- 0
-
- -45
-
-
- 2
- >
(:include
- 1
-
- 0
-
- -45
-
-
- 2
- synopsis:)
-
- 0
@@ -13060,18 +13080,7 @@
- 3
- 2
- `#include <(:link
- 1
-
- 0
-
- -18
-
-
- 2
- :)>
[@(:include decl:)@]
+ 0
@@ -13084,25 +13093,25 @@
52
- `#include <(:link
+ [@#include <(:link 10
- -54
+ -442
- :)>
(:include
+ :)>
namespace
boost
{
(:include 10
- -54
+ -792
- synopsis:)
+ decl pre_indent="4":)
(:include api pre_indent="4":)
}@]
@@ -13124,7 +13133,9 @@
- 0
+ 1
+ 2
+ [@(:include api:)@]
@@ -13137,16 +13148,27 @@
32
- `#include <(:link
+ [@#include <(:link 10
- -21
+ -72
- :)>
[@namespace
boost
{
(:include decl pre_indent="4":)
}@]
+ :)>
namespace
boost
{
(:include api pre_indent="4":)
}@]
+
+
+
+
+ 0
+
+ -21
+
+
+
+ 0
@@ -13159,16 +13181,16 @@
32
- `#include <(:link
+ [@#include <10
- -21
+ -72
- :)>
[@namespace
boost
{
(:include decl pre_indent="4":)
}@]
+ >
namespace
boost
{
(:include api pre_indent="4":)
}@]
@@ -13179,18 +13201,27 @@
- 3
+ 52
- `#include <(:link
+ `#include <10
- -18
+ -342
- :)>
[@(:include decl:)@]
+ >
(:include
+ 1
+
+ 0
+
+ -34
+
+
+ 2
+ synopsis:)
@@ -13212,7 +13243,27 @@
- 0
+ 5
+ 2
+ `#include <(:link
+ 1
+
+ 0
+
+ -77
+
+
+ 2
+ :)>
(:include
+ 1
+
+ 0
+
+ -77
+
+
+ 2
+ synopsis:)
@@ -13225,16 +13276,16 @@
32
- [@#include <(:link
+ [@#include <10
- -70
+ -442
- :)>
#include <string>
namespace
boost
{
(:include api pre_indent="4":)
}@]
+ >
#include <string>
namespace
boost
{
(:include api pre_indent="4":)
}@]
@@ -13245,9 +13296,18 @@
- 1
+ 32
- [@namespace
boost
{
(:include api pre_indent="4":)
}@]
+ `#include <(:link
+ 1
+
+ 0
+
+ -60
+
+
+ 2
+ :)>
[@namespace
boost
{
(:include decl pre_indent="4":)
}@]
@@ -13258,27 +13318,18 @@
- 5
+ 32
- `#include <
+ `#include <(:link 10
- -53
+ -402
- >
(:include
- 1
-
- 0
-
- -53
-
-
- 2
- synopsis:)
+ :)>\\
[@namespace
boost
{
(:include decl pre_indent="4":)
}@]
@@ -13289,18 +13340,27 @@
- 3
+ 52`#include <10
- -55
+ -142
- >
[@namespace
boost
{
(:include decl pre_indent="4":)
}@]
+ >
(:include
+ 1
+
+ 0
+
+ -14
+
+
+ 2
+ synopsis:)
@@ -13311,18 +13371,9 @@
- 3
+ 12
- [@#include <
- 1
-
- 0
-
- -70
-
-
- 2
- >
#include <string>
namespace
boost
{
(:include api pre_indent="4":)
}@]
+ [@namespace
boost
{
(:include api pre_indent="4":)
}@]
@@ -13344,7 +13395,18 @@
- 0
+ 3
+ 2
+ [@#include <string>
namespace
boost
{
(:include
+ 1
+
+ 0
+
+ -62
+
+
+ 2
+ decl pre_indent="4":)
(:include api pre_indent="4":)
}@]
@@ -13366,18 +13428,7 @@
- 3
- 2
- `#include <(:link
- 1
-
- 0
-
- -18
-
-
- 2
- :)>\\
[@namespace
boost
{
(:include decl pre_indent="4":)
}@]
+ 0
@@ -13388,7 +13439,18 @@
- 0
+ 3
+ 2
+ [@#include <
+ 1
+
+ 0
+
+ -29
+
+
+ 2
+ >
#include <boost/tuple/tuple.hpp>
namespace
boost
{
(:include api pre_indent="4":)
}@]
@@ -13399,18 +13461,9 @@
- 3
+ 12
- `#include <
- 1
-
- 0
-
- -21
-
-
- 2
- >
[@namespace
boost
{
(:include decl pre_indent="4":)
}@]
+ [@namespace
boost
{
(:include api pre_indent="4":)
}@]
@@ -13421,27 +13474,7 @@
- 5
- 2
- [@#include <(:link
- 1
-
- 0
-
- -70
-
-
- 2
- :)>
namespace
boost
{
(:include
- 1
-
- 0
-
- -29
-
-
- 2
- decl pre_indent="4":)
(:include api pre_indent="4":)
}@]
+ 0
@@ -13452,9 +13485,18 @@
- 1
+ 32
- (:include api:)
+ `#include <(:link
+ 1
+
+ 0
+
+ -60
+
+
+ 2
+ :)>
[@namespace
boost
{
(:include decl pre_indent="4":)
}@]
@@ -13467,16 +13509,16 @@
32
- `#include <(:link
+ [@#include <10
- -18
+ -442
- :)>
[@(:include decl:)@]
+ >
#include <string>
namespace
boost
{
(:include api pre_indent="4":)
}@]
@@ -13486,28 +13528,6 @@
-48
-
- 3
- 2
- `#include <(:link
- 1
-
- 0
-
- -21
-
-
- 2
- :)>
[@namespace
boost
{
(:include decl pre_indent="4":)
}@]
-
-
-
-
- 0
-
- -49
-
- 32
@@ -13516,7 +13536,7 @@
0
- -78
+ -72
@@ -13527,51 +13547,7 @@
0
- -50
-
-
-
- 3
- 2
- [@#include <
- 1
-
- 0
-
- -70
-
-
- 2
- >
#include <string>
namespace
boost
{
(:include api pre_indent="4":)
}@]
-
-
-
-
- 0
-
- -51
-
-
-
- 3
- 2
- [@#include <string>
namespace
boost
{
(:include
- 1
-
- 0
-
- -17
-
-
- 2
- decl pre_indent="4":)
(:include api pre_indent="4":)
}@]
-
-
-
-
- 0
-
- -52
+ -49
@@ -13582,7 +13558,7 @@
0
- -50
+ -262
@@ -13591,13 +13567,66 @@
0
- -50
+ -262 synopsis:)
+
+
+ 0
+
+ -50
+
+
+
+ 0
+
+
+
+
+ 0
+
+ -51
+
+
+
+ 5
+ 2
+ `#include <(:link
+ 1
+
+ 0
+
+ -40
+
+
+ 2
+ :)>\\
`#include <
+ 1
+
+ 0
+
+ -60
+
+
+ 2
+ >\\
[@namespace
boost
{
(:include decl pre_indent="4":)
}@]
+
+
+
+
+ 0
+
+ -52
+
+
+
+ 0
+
+ 0
@@ -13608,16 +13637,16 @@
32
- [@#include <(:link
+ `#include <(:link 10
- -70
+ -402
- :)>
namespace
boost
{
(:include api pre_indent="4":)
}@]
+ :)>\\
[@namespace
boost
{
(:include decl pre_indent="4":)
}@]
@@ -13630,16 +13659,16 @@
32
- [@#include <(:link
+ `#include <10
- -70
+ -602
- :)>
namespace
boost
{
template <class> class weak_ptr;
(:include api pre_indent="4":)
}@]
+ >
[@namespace
boost
{
(:include decl pre_indent="4":)
}@]
@@ -13650,18 +13679,7 @@
- 3
- 2
- [@#include <
- 1
-
- 0
-
- -78
-
-
- 2
- >
namespace
boost
{
(:include api pre_indent="4":)
}@]
+ 0
@@ -13672,27 +13690,9 @@
- 5
+ 12
- `#include <
- 1
-
- 0
-
- -38
-
-
- 2
- >
(:include
- 1
-
- 0
-
- -38
-
-
- 2
- synopsis:)
+ [@#include <boost/shared_ptr.hpp>
namespace
boost
{
(:include api pre_indent="4":)
}@]
@@ -13710,11 +13710,11 @@
0
- -51
+ -292
- :)>\\
[@namespace
boost
{
(:include decl pre_indent="4":)
}@]
+ :)>
[@(:include decl:)@]
@@ -13725,27 +13725,18 @@
- 5
+ 32
- `#include <
+ [@#include <(:link 10
- -68
+ -442
- >
(:include
- 1
-
- 0
-
- -68
-
-
- 2
- synopsis:)
+ :)>
#include <string>
namespace
boost
{
(:include api pre_indent="4":)
}@]
@@ -13756,18 +13747,7 @@
- 3
- 2
- `#include <(:link
- 1
-
- 0
-
- -21
-
-
- 2
- :)>
[@namespace
boost
{
(:include decl pre_indent="4":)
}@]
+ 0
@@ -13778,27 +13758,18 @@
- 5
+ 32
- `#include <(:link
+ [@#include <(:link 10
- -73
+ -72
- :)>
(:include
- 1
-
- 0
-
- -73
-
-
- 2
- synopsis:)
+ :)>
namespace
boost
{
(:include api pre_indent="4":)
}@]
@@ -13811,16 +13782,16 @@
32
- `#include <
+ `#include <(:link 10
- -46
+ -292
- >
(:include decl:)
+ :)>
[@(:include decl:)@]
@@ -13838,11 +13809,11 @@
0
- -21
+ -72
- :)>
[@namespace
boost
{
(:include decl pre_indent="4":)
}@]
+ :)>
[@namespace
boost
{
(:include def pre_indent="4":)
}@]
@@ -13853,9 +13824,18 @@
- 1
+ 32
- [@namespace
boost
{
(:include decl pre_indent="4":)
}@]
+ `#include <(:link
+ 1
+
+ 0
+
+ -19
+
+
+ 2
+ :)>
[@namespace
boost
{
(:include decl:)
}@]
@@ -13866,18 +13846,27 @@
- 3
+ 52
- `#include <
+ `#include <(:link 10
- -35
+ -582
- >
[@namespace
boost
{
(:include decl pre_indent="4":)
}@]
+ :)>
(:include
+ 1
+
+ 0
+
+ -58
+
+
+ 2
+ synopsis:)
@@ -13901,16 +13890,16 @@
32
- `#include <(:link
+ [@#include <(:link 10
- -51
+ -442
- :)>\\
[@namespace
boost
{
(:include decl pre_indent="4":)
}@]
+ :)>
namespace
boost
{
(:include api pre_indent="4":)
}@]
@@ -13921,7 +13910,18 @@
- 0
+ 3
+ 2
+ `#include <
+ 1
+
+ 0
+
+ -48
+
+
+ 2
+ >
[@namespace
boost
{
(:include decl pre_indent="4":)
}@]
@@ -13932,18 +13932,7 @@
- 3
- 2
- [@#include <
- 1
-
- 0
-
- -70
-
-
- 2
- >
#include <errno.h>
namespace
boost
{
(:include api pre_indent="4":)
}@]
+ 0
@@ -13954,18 +13943,7 @@
- 3
- 2
- [@#include <
- 1
-
- 0
-
- -18
-
-
- 2
- >
#include <boost/tuple/tuple.hpp>
namespace
boost
{
(:include api pre_indent="4":)
}@]
+ 0
@@ -13975,19 +13953,6 @@
-70
-
- 1
- 2
- [@namespace
boost
{
(:include api pre_indent="4":)
}@]
-
-
-
-
- 0
-
- -9
-
- 0
@@ -14000,7 +13965,18 @@
- 0
+ 3
+ 2
+ `#include <(:link
+ 1
+
+ 0
+
+ -60
+
+
+ 2
+ :)>
[@namespace
boost
{
(:include decl pre_indent="4":)
}@]
@@ -14011,7 +13987,9 @@
- 0
+ 1
+ 2
+ [@namespace
boost
{
(:include decl pre_indent="4":)
}@]
@@ -14021,28 +13999,6 @@
-73
-
- 3
- 2
- [@#include <(:link
- 1
-
- 0
-
- -70
-
-
- 2
- :)>
namespace
boost
{
(:include api pre_indent="4":)
}@]
-
-
-
-
- 0
-
- -74
-
- 32
@@ -14051,7 +14007,7 @@
0
- -49
+ -382
@@ -14062,18 +14018,7 @@
0
- -75
-
-
-
- 0
-
-
-
-
- 0
-
- -76
+ -74
@@ -14084,20 +14029,64 @@
0
- -69
+ -662
- :)>
[@namespace
boost
{
(:include
+ :)>
(:include 10
- -76
+ -662
- decl pre_indent="4":)
}@]
+ synopsis:)
+
+
+
+
+ 0
+
+ -75
+
+
+
+ 3
+ 2
+ `#include <
+ 1
+
+ 0
+
+ -19
+
+
+ 2
+ >
(:include decl:)
+
+
+
+
+ 0
+
+ -76
+
+
+
+ 3
+ 2
+ [@#include <(:link
+ 1
+
+ 0
+
+ -44
+
+
+ 2
+ :)>
namespace
boost
{
(:include api pre_indent="4":)
}@]
@@ -14108,7 +14097,18 @@
- 0
+ 3
+ 2
+ [@#include <(:link
+ 1
+
+ 0
+
+ -44
+
+
+ 2
+ :)>
namespace
boost
{
template <class> class weak_ptr;
(:include api pre_indent="4":)
}@]
@@ -14119,9 +14119,7 @@
- 1
- 2
- [@namespace
boost
{
(:include api pre_indent="4":)
}@]
+ 0
@@ -14132,7 +14130,18 @@
- 0
+ 3
+ 2
+ `#include <(:link
+ 1
+
+ 0
+
+ -60
+
+
+ 2
+ :)>
[@namespace
boost
{
(:include decl pre_indent="4":)
}@]
@@ -14150,11 +14159,11 @@
0
- -18
+ -292
- :)>
[@namespace
boost
{
(:include def pre_indent="4":)
}@]
+ :)>\\
[@namespace
boost
{
(:include decl pre_indent="4":)
}@]
@@ -14187,6 +14196,9 @@
-8
+
+ -9
+ -10
@@ -14221,7 +14233,7 @@
-20
- -21
+ -24-22
@@ -14229,9 +14241,6 @@
-23
-
- -24
- -25
@@ -14247,6 +14256,9 @@
-29
+
+ -21
+ -30
@@ -14370,9 +14382,6 @@
-70
-
- -9
- -71
@@ -14422,7 +14431,7 @@
- -22
+ -16
@@ -14439,7 +14448,7 @@
- -27
+ -70
@@ -14456,7 +14465,109 @@
- -72
+ -65
+
+
+
+
+
+
+ 0
+
+
+
+
+
+ 1
+
+
+
+ -11
+
+
+
+
+
+
+ 0
+
+
+
+
+
+ 1
+
+
+
+ -48
+
+
+
+
+
+
+ 0
+
+
+
+
+
+ 1
+
+
+
+ -30
+
+
+
+
+
+
+ 0
+
+
+
+
+
+ 1
+
+
+
+ -20
+
+
+
+
+
+
+ 0
+
+
+
+
+
+ 1
+
+
+
+ -24
+
+
+
+
+
+
+ 0
+
+
+
+
+
+ 1
+
+
+
+ -21
@@ -14490,7 +14601,7 @@
- -49
+ -52
@@ -14507,7 +14618,7 @@
- -55
+ -78
@@ -14524,7 +14635,7 @@
- -8
+ -13
@@ -14541,7 +14652,7 @@
- -5
+ -68
@@ -14558,133 +14669,7 @@
- -6
-
-
-
-
-
-
- 0
-
-
-
-
-
- 1
-
-
-
- -7
-
-
-
-
-
-
- 0
-
-
-
-
-
- 1
-
-
-
- -43
-
-
-
-
-
-
- 0
-
-
-
-
-
- 1
-
-
-
- -41
-
-
-
-
-
-
- 0
-
-
-
-
-
- 1
-
-
-
- -67
-
-
-
-
-
-
- 0
-
-
-
-
-
- 1
-
-
-
- -75
-
-
-
-
-
-
- 0
-
-
-
-
-
- 1
-
-
-
- -12
-
-
-
-
-
-
- 1
- 21E8093D2AF6946EAE135823066EF38B9DC8870432B44C81E585FF63A72F9903
- 3352783584
- 12170
- 323
-
-
-
-
-
- 0
- ../../../../boost/exception_ptr.hpp
- 0
- 0
-
-
-
- -21
+ -59
@@ -14708,7 +14693,7 @@
- -34
+ -58
@@ -14736,7 +14721,87 @@
- -52
+ -12
+
+
+
+
+
+
+ 1
+ BA58BD4D96D420ADA2006B5AC2D25B99E1CEBF350813C61DF9FB3754A138D40C
+ 3620239794
+ 5149
+ 323
+
+
+
+
+
+ 0
+ ../../../../boost/exception/diagnostic_information.hpp
+ 0
+ 0
+
+
+
+ -40
+
+
+
+
+
+
+ 2
+ 91EBEDBD2582FE27314201DA4E2241CCE82DCB54E3BC027944308C6A58125E0E
+ 615721273
+ 4095
+ 1377
+ 5738DF31DB52E5E8784199058479E798957794147A099D834110FF821C605EE3
+ 1133216499
+ 490
+ 3599
+
+
+
+
+
+ 0
+ ../../../../boost/exception/diagnostic_information.hpp
+ 0
+ 0
+
+
+
+ -36
+
+
+
+
+
+
+ 2
+ 91EBEDBD2582FE27314201DA4E2241CCE82DCB54E3BC027944308C6A58125E0E
+ 615721273
+ 4095
+ 1377
+ BE272E8DD06A23FE305ECCBCDDD8923FCC667DE8A55CE98AA7309A7DBB16DDE5
+ 507026951
+ 3571
+ 26
+
+
+
+
+
+ 0
+ ../../../../boost/exception/diagnostic_information.hpp
+ 0
+ 0
+
+
+
+ -51
@@ -14760,231 +14825,31 @@
- -53
+ -76
- 2
- F7554EEA94C796DF4EC724B2F21CFE92B2A7BEF13097D61CE13CE50CE7192313
- 2034584854
- 4201
- 560
- 2973B09697BC6642C8CBECE8C3DD7C429FA1348B67AAAB47E01B9C1292EE3BB2
- 2629550564
- 3677
- 26
+ 1
+ 152CB2862365DF3DCC0062071CB97724D8757575B90CF9A8706A57382CA46B0F
+ 4123189442
+ 12674
+ 3230
- ../../../../boost/exception/diagnostic_information.hpp
+ ../../../../boost/exception/detail/exception_ptr.hpp00
- -66
-
-
-
-
-
-
- 2
- F7554EEA94C796DF4EC724B2F21CFE92B2A7BEF13097D61CE13CE50CE7192313
- 2034584854
- 4201
- 560
- 5738DF31DB52E5E8784199058479E798957794147A099D834110FF821C605EE3
- 1133216499
- 490
- 3705
-
-
-
-
-
- 0
- ../../../../boost/exception/diagnostic_information.hpp
- 0
- 0
-
-
-
- -57
-
-
-
-
-
-
- 2
- CEB9022E39DA32E612158FF553D383E13D300D1202CEB754E28B716040EFC414
- 1114955626
- 11770
- 723
- 6B3B617AC518A2177BDB89656E726B4E4D79577E289130493A61BAE24FB64838
- 3173127726
- 1101
- 2184
-
-
-
-
-
- 0
- ../../../../boost/exception_ptr.hpp
- 0
- 0
-
-
-
- -59
-
-
-
-
-
-
- 2
- CEB9022E39DA32E612158FF553D383E13D300D1202CEB754E28B716040EFC414
- 1114955626
- 11770
- 723
- E23085202D084CBB50F289988A6A592F06D923B77D0AB25D7A98A7188DF5BE3B
- 1414247481
- 766
- 10094
-
-
-
-
-
- 0
- ../../../../boost/exception_ptr.hpp
- 0
- 0
-
-
-
- -62
-
-
-
-
-
-
- 2
- CEB9022E39DA32E612158FF553D383E13D300D1202CEB754E28B716040EFC414
- 1114955626
- 11770
- 723
- AF894656AC8CED6190EEEE08B051DBF2106A393E313BB5BB1C17D4808EFED761
- 1496105832
- 1753
- 429
-
-
-
-
-
- 0
- ../../../../boost/exception_ptr.hpp
- 0
- 0
-
-
-
- -29
-
-
-
-
-
-
- 2
- CEB9022E39DA32E612158FF553D383E13D300D1202CEB754E28B716040EFC414
- 1114955626
- 11770
- 723
- 1516D0B7E11CBEB60CE4222565ACCAFF2E9857A8A505C1C26E2AE90087250581
- 3624753243
- 279
- 26
-
-
-
-
-
- 0
- ../../../../boost/exception_ptr.hpp
- 0
- 0
-
-
-
- -44
-
-
-
-
-
-
- 2
- CEB9022E39DA32E612158FF553D383E13D300D1202CEB754E28B716040EFC414
- 1114955626
- 11770
- 723
- B20A3D4631F3B2415EED1888B65FA33D7AED20F86BE196159D9297AAED115787
- 3293519666
- 117
- 11169
-
-
-
-
-
- 0
- ../../../../boost/exception_ptr.hpp
- 0
- 0
-
-
-
- -30
-
-
-
-
-
-
- 2
- CEB9022E39DA32E612158FF553D383E13D300D1202CEB754E28B716040EFC414
- 1114955626
- 11770
- 723
- 0066D4E6E6B189906E6DE04F08509F3737511701A1B1355B37511EC18E8371F4
- 2078296250
- 305
- 10862
-
-
-
-
-
- 0
- ../../../../boost/exception_ptr.hpp
- 0
- 0
-
-
-
- -48
+ -60
@@ -15008,7 +14873,7 @@
- -79
+ -8
@@ -15036,7 +14901,7 @@
- -56
+ -31
@@ -15047,7 +14912,7 @@
4D7009F0868C1DF4898EC6ECF9AD2CFEA98E8653B01B066106761807405D4C2214167078523107
- 323
+ 428
@@ -15060,31 +14925,7 @@
- -20
-
-
-
-
-
-
- 1
- 283AE6BE0920B1882100C426958FDF998DEE10226546B300B45C1A26B242FC25
- 722381934
- 617
- 323
-
-
-
-
-
- 0
- ../../../../boost/exception/errinfo_errno.hpp
- 0
- 0
-
-
-
- -68
+ -56
@@ -15108,7 +14949,7 @@
- -19
+ -69
@@ -15119,7 +14960,7 @@
BF7B46FEFA4E2DED7D652BFD40E94DD0B225ADA8D35E28FF4216F72812589835422843600756
- 323
+ 428
@@ -15132,7 +14973,7 @@
- -15
+ -28
@@ -15143,7 +14984,7 @@
6FB85B536F965F137409D5B5D34786DCBF0B9957A7C251D271B717A1156B823D1090406464362
- 323
+ 428D16DAEA8B1792A019AF7FCA362FDC6EFD381AF4C43C076A01C029ECE51F994A63172941848330
@@ -15160,7 +15001,7 @@
- -64
+ -73
@@ -15184,7 +15025,7 @@
- -33
+ -41
@@ -15192,9 +15033,9 @@
1
- A2BF537B251039FA1AF972D55F975E8FDDD14F2731A47FBDEBF3E001F7CF5245
- 2585086703
- 4165
+ 3EF1AF87ABFF1750C31215F2C21A0EB378C2D4A8F9128A7B55A6612BA5969542
+ 2875025381
+ 467323
@@ -15202,13 +15043,13 @@
0
- ../../../../boost/exception/info.hpp
+ ../../../../boost/exception/current_exception_cast.hpp00
- -18
+ -38
@@ -15236,7 +15077,7 @@
- -26
+ -33
@@ -15260,99 +15101,31 @@
- -40
+ -39
- 2
- 892ACAF5EB4C2D93ECC578359C6CF16C5DDB159571B19B7EE11CC84ED6828258
- 116592015
- 1062
- 344
- 5D5B59DE2E0728CF19BDD22BF7DE3FADAD08B422B577E0705508F6D9FB6707C7
- 387228411
- 623
- 433
+ 1
+ 741493399544444FAFD8024809F7086A586C3F93AAC48AAE99A5A62BA6D89657
+ 3934324527
+ 908
+ 3230
- ../../../../boost/exception/detail/error_info_impl.hpp
+ ../../../../boost/exception/errinfo_errno.hpp00
- -80
-
-
-
-
-
-
- 3
- 892ACAF5EB4C2D93ECC578359C6CF16C5DDB159571B19B7EE11CC84ED6828258
- 116592015
- 1062
- 344
- 5D5B59DE2E0728CF19BDD22BF7DE3FADAD08B422B577E0705508F6D9FB6707C7
- 387228411
- 623
- 433
- 38B566F2C6678B8724D18086A6F76E077DC2ADC1BB69A4B83BF0A2C3B7D31B50
- 2218658069
- 31
- 143
-
-
-
-
-
- 0
- ../../../../boost/exception/detail/error_info_impl.hpp
- 0
- 0
-
-
-
- -31
-
-
-
-
-
-
- 3
- 892ACAF5EB4C2D93ECC578359C6CF16C5DDB159571B19B7EE11CC84ED6828258
- 116592015
- 1062
- 344
- 5D5B59DE2E0728CF19BDD22BF7DE3FADAD08B422B577E0705508F6D9FB6707C7
- 387228411
- 623
- 433
- 98B33BE76679E3A4831241335CD5DFF6F634429F36BABF96C1D4DC2296C5ECC5
- 1584672077
- 208
- 259
-
-
-
-
-
- 0
- ../../../../boost/exception/detail/error_info_impl.hpp
- 0
- 0
-
-
-
- -25
+ -14
@@ -15376,7 +15149,7 @@
- -32
+ -42
@@ -15400,7 +15173,267 @@
- -38
+ -34
+
+
+
+
+
+
+ 2
+ AE39C833229D2025795E45693EC41931EF387FA93C636230DBE28F94FAD04760
+ 3442098514
+ 1214
+ 449
+ A27237A743E85C6D6C1E908421AA26DEB9BEFC781D6EE64C31C3DCFBEEF5A4B9
+ 907005134
+ 749
+ 412
+
+
+
+
+
+ 0
+ ../../../../boost/exception/detail/error_info_impl.hpp
+ 0
+ 0
+
+
+
+ -10
+
+
+
+
+
+
+ 3
+ AE39C833229D2025795E45693EC41931EF387FA93C636230DBE28F94FAD04760
+ 3442098514
+ 1214
+ 449
+ A27237A743E85C6D6C1E908421AA26DEB9BEFC781D6EE64C31C3DCFBEEF5A4B9
+ 907005134
+ 749
+ 412
+ 38B566F2C6678B8724D18086A6F76E077DC2ADC1BB69A4B83BF0A2C3B7D31B50
+ 2218658069
+ 31
+ 269
+
+
+
+
+
+ 0
+ ../../../../boost/exception/detail/error_info_impl.hpp
+ 0
+ 0
+
+
+
+ -17
+
+
+
+
+
+
+ 3
+ AE39C833229D2025795E45693EC41931EF387FA93C636230DBE28F94FAD04760
+ 3442098514
+ 1214
+ 449
+ A27237A743E85C6D6C1E908421AA26DEB9BEFC781D6EE64C31C3DCFBEEF5A4B9
+ 907005134
+ 749
+ 412
+ 5EB718F617CB65548DFF259216ED67278E1B4EA43BF5605D242448780D8C477E
+ 68818004
+ 97
+ 496
+
+
+
+
+
+ 0
+ ../../../../boost/exception/detail/error_info_impl.hpp
+ 0
+ 0
+
+
+
+ -61
+
+
+
+
+
+
+ 1
+ ABA4CA0D43528F04AA5429024996E398E31EBC5B283E9ACE09A55D50DF5D1961
+ 3606121577
+ 9890
+ 428
+
+
+
+
+
+ 0
+ ../../../../boost/exception/exception.hpp
+ 0
+ 0
+
+
+
+ -7
+
+
+
+
+
+
+ 2
+ ABA4CA0D43528F04AA5429024996E398E31EBC5B283E9ACE09A55D50DF5D1961
+ 3606121577
+ 9890
+ 428
+ C908C7F4E8A72C39F05019127BD3345618C0C00CF168EE584E1BD669B6CE062D
+ 706692100
+ 1961
+ 3959
+
+
+
+
+
+ 0
+ ../../../../boost/exception/exception.hpp
+ 0
+ 0
+
+
+
+ -62
+
+
+
+
+
+
+ 3
+ ABA4CA0D43528F04AA5429024996E398E31EBC5B283E9ACE09A55D50DF5D1961
+ 3606121577
+ 9890
+ 428
+ C908C7F4E8A72C39F05019127BD3345618C0C00CF168EE584E1BD669B6CE062D
+ 706692100
+ 1961
+ 3959
+ DA154372D8C23BD9EDC30005CA7959CE686D198891097A837D006B5222F04DE9
+ 2768248809
+ 143
+ 60
+
+
+
+
+
+ 0
+ ../../../../boost/exception/exception.hpp
+ 0
+ 0
+
+
+
+ -6
+
+
+
+
+
+
+ 2
+ ABA4CA0D43528F04AA5429024996E398E31EBC5B283E9ACE09A55D50DF5D1961
+ 3606121577
+ 9890
+ 428
+ 17E691632123EB67BA67D590B49EB8094F462F5A10A66A1C5438E1867EF1478E
+ 765399792
+ 77
+ 5922
+
+
+
+
+
+ 0
+ ../../../../boost/exception/exception.hpp
+ 0
+ 0
+
+
+
+ -32
+
+
+
+
+
+
+ 2
+ ABA4CA0D43528F04AA5429024996E398E31EBC5B283E9ACE09A55D50DF5D1961
+ 3606121577
+ 9890
+ 428
+ DF9EA87B0140AACF4422F1B76F6A6A409C15F32858BBBA85A35981A824C56BA9
+ 1137981799
+ 192
+ 9692
+
+
+
+
+
+ 0
+ ../../../../boost/exception/exception.hpp
+ 0
+ 0
+
+
+
+ -9
+
+
+
+
+
+
+ 2
+ ABA4CA0D43528F04AA5429024996E398E31EBC5B283E9ACE09A55D50DF5D1961
+ 3606121577
+ 9890
+ 428
+ F3FB15CD82336271C6E875BC620385322777D16F0B7C233300783CE35710CCBF
+ 3292878997
+ 282
+ 7828
+
+
+
+
+
+ 0
+ ../../../../boost/exception/exception.hpp
+ 0
+ 0
+
+
+
+ -67
@@ -15411,7 +15444,7 @@
21027A2B73C9AA6FF083752A952D63BBA9B5FD68A3C8915965A7184EA62A5D611523356166537
- 403
+ 64424256E1CE56594FB38D0630858B8947191827CFC57771E8727A6A56F7620745466591750566
@@ -15428,7 +15461,7 @@
- -58
+ -37
@@ -15456,7 +15489,7 @@
- -36
+ -18
@@ -15480,31 +15513,7 @@
- -13
-
-
-
-
-
-
- 1
- D6841F0363736F4F8554C35ADD6A9D160C4C49AF6F64FD9E259BC154F779866F
- 1169632142
- 9204
- 323
-
-
-
-
-
- 0
- ../../../../boost/exception/exception.hpp
- 0
- 0
-
-
-
- -78
+ -25
@@ -15512,27 +15521,27 @@
2
- D6841F0363736F4F8554C35ADD6A9D160C4C49AF6F64FD9E259BC154F779866F
- 1169632142
- 9204
- 323
- 17E691632123EB67BA67D590B49EB8094F462F5A10A66A1C5438E1867EF1478E
- 765399792
- 77
- 5929
+ C54D0581EB7AF805BD91520EEA0138DF2EAAA07BA1D3E61D07F2F715765FE76F
+ 3159045543
+ 12169
+ 828
+ 6B3B617AC518A2177BDB89656E726B4E4D79577E289130493A61BAE24FB64838
+ 3173127726
+ 1101
+ 21930
- ../../../../boost/exception/exception.hpp
+ ../../../../boost/exception/detail/exception_ptr.hpp00
- -28
+ -46
@@ -15540,27 +15549,27 @@
2
- D6841F0363736F4F8554C35ADD6A9D160C4C49AF6F64FD9E259BC154F779866F
- 1169632142
- 9204
- 323
- DF9EA87B0140AACF4422F1B76F6A6A409C15F32858BBBA85A35981A824C56BA9
- 1137981799
- 192
- 9006
+ C54D0581EB7AF805BD91520EEA0138DF2EAAA07BA1D3E61D07F2F715765FE76F
+ 3159045543
+ 12169
+ 828
+ E23085202D084CBB50F289988A6A592F06D923B77D0AB25D7A98A7188DF5BE3B
+ 1414247481
+ 766
+ 101030
- ../../../../boost/exception/exception.hpp
+ ../../../../boost/exception/detail/exception_ptr.hpp00
- -37
+ -71
@@ -15568,27 +15577,27 @@
2
- D6841F0363736F4F8554C35ADD6A9D160C4C49AF6F64FD9E259BC154F779866F
- 1169632142
- 9204
- 323
- F3FB15CD82336271C6E875BC620385322777D16F0B7C233300783CE35710CCBF
- 3292878997
- 282
- 7317
+ C54D0581EB7AF805BD91520EEA0138DF2EAAA07BA1D3E61D07F2F715765FE76F
+ 3159045543
+ 12169
+ 828
+ 2690D4D40C3953A637A3F52F8B18714BAE63A13D7D1CB0C91ED00D73EDDDE358
+ 475315732
+ 1762
+ 4290
- ../../../../boost/exception/exception.hpp
+ ../../../../boost/exception/detail/exception_ptr.hpp00
- -74
+ -79
@@ -15596,59 +15605,83 @@
2
- D6841F0363736F4F8554C35ADD6A9D160C4C49AF6F64FD9E259BC154F779866F
- 1169632142
- 9204
- 323
- E8F75513DDED11FD99209774D96C52882C530DC63A1B0527156DF56901DAF5C7
- 1386049295
- 2209
- 3718
+ C54D0581EB7AF805BD91520EEA0138DF2EAAA07BA1D3E61D07F2F715765FE76F
+ 3159045543
+ 12169
+ 828
+ 1516D0B7E11CBEB60CE4222565ACCAFF2E9857A8A505C1C26E2AE90087250581
+ 3624753243
+ 279
+ 260
- ../../../../boost/exception/exception.hpp
+ ../../../../boost/exception/detail/exception_ptr.hpp00
- -17
+ -54
- 3
- D6841F0363736F4F8554C35ADD6A9D160C4C49AF6F64FD9E259BC154F779866F
- 1169632142
- 9204
- 323
- E8F75513DDED11FD99209774D96C52882C530DC63A1B0527156DF56901DAF5C7
- 1386049295
- 2209
- 3718
- DA154372D8C23BD9EDC30005CA7959CE686D198891097A837D006B5222F04DE9
- 2768248809
- 143
- 60
+ 2
+ C54D0581EB7AF805BD91520EEA0138DF2EAAA07BA1D3E61D07F2F715765FE76F
+ 3159045543
+ 12169
+ 828
+ 0066D4E6E6B189906E6DE04F08509F3737511701A1B1355B37511EC18E8371F4
+ 2078296250
+ 305
+ 108710
- ../../../../boost/exception/exception.hpp
+ ../../../../boost/exception/detail/exception_ptr.hpp00
- -77
+ -35
+
+
+
+
+
+
+ 2
+ C54D0581EB7AF805BD91520EEA0138DF2EAAA07BA1D3E61D07F2F715765FE76F
+ 3159045543
+ 12169
+ 828
+ 4B6ED02EA5B5A3B326838794C37ED01C5DC3E8D89FA78E62B9F7A0C78D4DB6FD
+ 2715164371
+ 116
+ 11178
+
+
+
+
+
+ 0
+ ../../../../boost/exception/detail/exception_ptr.hpp
+ 0
+ 0
+
+
+
+ -15
@@ -15672,7 +15705,7 @@
- -73
+ -66
@@ -15700,7 +15733,7 @@
- -60
+ -74
@@ -15724,31 +15757,7 @@
- -54
-
-
-
-
-
-
- 1
- A14B5595A6DD87562792D402B48500AAD71FA1ABD75C14EDF089FCC7318CBB9B
- 3469762901
- 468
- 227
-
-
-
-
-
- 0
- ../../../../boost/exception/current_exception_cast.hpp
- 0
- 0
-
-
-
- -35
+ -77
@@ -15759,7 +15768,7 @@
D58AD357499A5A09FB5D12397CFFC2FFD412AC8A307ABB59C9BC53ACCA3B959D22094145532926
- 504
+ 60949F40FF20D66B205C908A8F10BC61DE1BC571E4917A5BD0B4115E3F7FE3923FA6387766892894
@@ -15776,7 +15785,31 @@
- -63
+ -72
+
+
+
+
+
+
+ 1
+ 8875EEF219AFA740DB131CAB3D8488C477FFAEC04421FD0EE67A6B70A354C9A3
+ 2210100285
+ 4297
+ 323
+
+
+
+
+
+ 0
+ ../../../../boost/exception/info.hpp
+ 0
+ 0
+
+
+
+ -29
@@ -15800,7 +15833,7 @@
- -50
+ -47
@@ -15824,7 +15857,7 @@
- -16
+ -27
@@ -15832,9 +15865,9 @@
1
- 5AD376A17B373BF62FE491E6E7883756836612C74138FFFA15FFF54E7CDBADAA
- 20822643
- 5426
+ A1E3F9582095C930245FF6DBA455C6C973F4F025AD6C1D0C3BC7E9494070BAA7
+ 293414988
+ 113323
@@ -15842,13 +15875,13 @@
0
- ../../../../boost/exception/diagnostic_information.hpp
+ ../../../../boost/exception.hpp00
- -51
+ -50
@@ -15859,7 +15892,7 @@
DA1CAA5F6BAB712AD89E8A0B7D83961FCE4AF9FD198791C9F6EA299800A64FAC3553871704612
- 1496
+ 1525154AC930BD1FDCADE24CDB07DBD3163CA26378AF4F1D428C34B67D1F68A6089150905072586
@@ -15876,7 +15909,7 @@
- -11
+ -63
@@ -15887,7 +15920,7 @@
DA1CAA5F6BAB712AD89E8A0B7D83961FCE4AF9FD198791C9F6EA299800A64FAC3553871704612
- 1496
+ 1525154AC930BD1FDCADE24CDB07DBD3163CA26378AF4F1D428C34B67D1F68A6089150905072586
@@ -15908,7 +15941,7 @@
- -71
+ -45
@@ -15932,31 +15965,63 @@
- -39
+ -55
- 1
- A95165313334B684C85659D05D3D8EB17F4AF552EDCB3C180AC1F85D18C99CBF
- 115507474
- 2037
- 91
+ 2
+ 8E1ECF1D3D1C141962DD6E7B2070D6415DC3A1C9D35F9981F70DF84A6CCE67C8
+ 3306947758
+ 3968
+ 652
+ 6E325144EF4F41FA3A225EB30729101382C4E99B3D6160E307311E4B4E641010
+ 1097215175
+ 161
+ 2400
- ../../../../boost/throw_exception.hpp
+ ../../../../boost/exception/info.hpp00
- -46
+ -57
+
+
+
+
+
+
+ 2
+ 8E1ECF1D3D1C141962DD6E7B2070D6415DC3A1C9D35F9981F70DF84A6CCE67C8
+ 3306947758
+ 3968
+ 652
+ B494F545ED1BD0502F8699D7059DC882495CC0D93A23CFA306E5F39BB14E4A97
+ 259300739
+ 523
+ 3439
+
+
+
+
+
+ 0
+ ../../../../boost/exception/info.hpp
+ 0
+ 0
+
+
+
+ -80
@@ -15967,7 +16032,7 @@
04DDC793002AFCF4F4166D250C67D09B6FE8B86224318ED7847AD6EC423B70CA922651615433
- 1061
+ 1090
@@ -15980,7 +16045,7 @@
- -61
+ -75
@@ -15991,7 +16056,7 @@
9A6D5598D65F1C1B5F913007D1CD1A814F3CDAD07D4AF8C468A0716059B2F7CC35529950871405
- 323
+ 428
@@ -16004,7 +16069,7 @@
- -69
+ -43
@@ -16032,91 +16097,31 @@
- -10
+ -64
- 2
- 46AE88799BE7F14F1E2B48F0077193517F25AFFD4AE13C30489247555042EEE3
- 1975649535
- 3970
- 518
- 6E325144EF4F41FA3A225EB30729101382C4E99B3D6160E307311E4B4E641010
- 1097215175
- 161
- 240
+ 1
+ E70915ABD618D3F08CC9462BAA94A7193FB536524713AD463EC455A4025049E8
+ 1170049804
+ 2066
+ 910
- ../../../../boost/exception/info.hpp
+ ../../../../boost/throw_exception.hpp00
- -47
-
-
-
-
-
-
- 2
- 46AE88799BE7F14F1E2B48F0077193517F25AFFD4AE13C30489247555042EEE3
- 1975649535
- 3970
- 518
- D31BCE814DF5B8B718E7EB67A194AD08EF716A26D422E436596ABA1F145007D8
- 4055211476
- 525
- 3439
-
-
-
-
-
- 0
- ../../../../boost/exception/info.hpp
- 0
- 0
-
-
-
- -42
-
-
-
-
-
-
- 2
- E08150343DD1B942E2AC7DDB8EE52852BF2E03476430238FCFF49CD2C09E55E6
- 1796675348
- 978
- 4763
- 36688510914673386A7870D1D4970B7D74CF9A4B7226F9E225A5607DCBFB12C4
- 2314308857
- 446
- 110
-
-
-
-
-
- 0
- ../../../../boost/exception/diagnostic_information.hpp
- 0
- 0
-
-
-
- -14
+ -19
@@ -16140,7 +16145,7 @@
- -9
+ -22
@@ -16168,7 +16173,7 @@
- -70
+ -44
@@ -16179,7 +16184,7 @@
F7633FDCF6615C0199645701EE6E7ACE5CBCD7A7CF6838573791E91ABB3C09F216684353951332
- 396
+ 501A1F443AF571973A12005D2F7D4AE09A32AAF686FEEAE272EC21512A65EB943E838790936591300
@@ -16196,7 +16201,35 @@
- -76
+ -5
+
+
+
+
+
+
+ 2
+ 964F6A1CDF157430B6F65ABDD6A590CFA6AE83EAED66B5B59BA829DB07DF97F2
+ 3653363251
+ 731
+ 636
+ 36688510914673386A7870D1D4970B7D74CF9A4B7226F9E225A5607DCBFB12C4
+ 2314308857
+ 446
+ 279
+
+
+
+
+
+ 0
+ ../../../../boost/exception/diagnostic_information.hpp
+ 0
+ 0
+
+
+
+ -53
@@ -16220,7 +16253,7 @@
- -45
+ -26
@@ -16248,31 +16281,7 @@
- -24
-
-
-
-
-
-
- 1
- F39D869016327CDFEA720920B2743F47989202BF5814B6556EC54A1B0FE562F8
- 3703518029
- 147
- 323
-
-
-
-
-
- 0
- ../../../../boost/exception.hpp
- 0
- 0
-
-
-
- -65
+ -49
@@ -16303,44 +16312,80 @@
-5
- tutorial
+ error_info free function0
- -10
-
-
- error_info_instance noalso type
-
-
-
- 0
-
- -11
-
-
- free function
-
-
-
- 0
-
- -13
-
-
- noalso noindex tutorial
-
-
-
- 0
-
- -14
+ -6function
+
+
+ 0
+
+ -7
+
+
+
+
+
+
+ 0
+
+ -8
+
+
+ noindex tutorial
+
+
+
+ 0
+
+ -9
+
+
+ exception_ptr free function
+
+
+
+ 0
+
+ -10
+
+
+ type
+
+
+
+ 0
+
+ -11
+
+
+
+
+
+
+ 0
+
+ -12
+
+
+ error_info_instance noalso type
+
+
+
+ 0
+
+ -15
+
+
+ exception_ptr free function
+ 0
@@ -16348,7 +16393,7 @@
-16
- noalso noindex tutorial
+ noindex
@@ -16366,7 +16411,7 @@
-18
-
+ error_info_instance noalso type
@@ -16375,42 +16420,6 @@
-19
- noindex tutorial
-
-
-
- 0
-
- -20
-
-
- error_info
-
-
-
- 0
-
- -21
-
-
-
-
-
-
- 0
-
- -22
-
-
- noindex
-
-
-
- 0
-
- -23
-
-
@@ -16420,7 +16429,16 @@
-24
- error_info_instance noalso type
+ tutorial
+
+
+
+ 0
+
+ -22
+
+
+ tutorial
@@ -16429,16 +16447,7 @@
-25
- function member
-
-
-
- 0
-
- -26
-
-
- error_info_instance noalso type
+ noalso noindex tutorial
@@ -16447,16 +16456,7 @@
-27
- tutorial
-
-
-
- 0
-
- -28
-
-
- function
+ noalso noindex tutorial
@@ -16465,7 +16465,7 @@
-29
- type
+
@@ -16474,7 +16474,7 @@
-30
- exception_ptr free function
+ exception_ptr
@@ -16483,7 +16483,7 @@
-31
- type
+ error_info_instance noalso type
@@ -16492,7 +16492,16 @@
-32
- diagnostic_information tutorial
+ function
+
+
+
+ 0
+
+ -33
+
+
+ error_info_instance noalso type
@@ -16501,7 +16510,7 @@
-35
-
+ exception_ptr free function
@@ -16510,7 +16519,7 @@
-36
- error_info_instance noalso type
+ free function
@@ -16519,17 +16528,35 @@
-37
- exception_ptr free function
+ error_info_instance noalso type0
- -40
+ -38
+
+
+
+
+
+
+ 0
+
+ -39noalso noindex tutorial
+
+
+ 0
+
+ -40
+
+
+
+ 0
@@ -16537,7 +16564,16 @@
-42
- error_info free function
+ diagnostic_information tutorial
+
+
+
+ 0
+
+ -43
+
+
+
@@ -16546,7 +16582,7 @@
-44
- type
+
@@ -16555,16 +16591,7 @@
-46
-
-
-
-
- 0
-
- -47
-
-
- function member
+ exception_ptr type
@@ -16573,7 +16600,7 @@
-48
- exception_ptr free function
+ error_info
@@ -16582,121 +16609,13 @@
-49
- error_info
-
-
-
- 0
-
- -51
-
-
-
-
-
-
- 0
-
- -52
-
- error_info_instance noalso type0
- -55
-
-
- exception_ptr
-
-
-
- 0
-
- -56
-
-
- error_info_instance noalso type
-
-
-
- 0
-
- -57
-
-
- free function
-
-
-
- 0
-
- -58
-
-
- error_info_instance noalso type
-
-
-
- 0
-
- -59
-
-
- exception_ptr type
-
-
-
- 0
-
- -60
-
-
- error_info_instance noalso type
-
-
-
- 0
-
- -61
-
-
- macro
-
-
-
- 0
-
- -62
-
-
- exception_ptr free function
-
-
-
- 0
-
- -63
-
-
- error_info free function
-
-
-
- 0
-
- -64
-
-
- function
-
-
-
- 0
-
- -65
+ -50noindex
@@ -16705,7 +16624,7 @@
0
- -66
+ -51diagnostic_information free function
@@ -16714,61 +16633,7 @@
0
- -69
-
-
-
-
-
-
- 0
-
- -70
-
-
-
-
-
-
- 0
-
- -9
-
-
- tutorial
-
-
-
- 0
-
- -72
-
-
- tutorial
-
-
-
- 0
-
- -74
-
-
- error_info free function
-
-
-
- 0
-
- -76
-
-
- error_info free function
-
-
-
- 0
-
- -77
+ -53function
@@ -16777,7 +16642,34 @@
0
- -78
+ -54
+
+
+ type
+
+
+
+ 0
+
+ -56
+
+
+ error_info
+
+
+
+ 0
+
+ -57
+
+
+ function member
+
+
+
+ 0
+
+ -60
@@ -16786,7 +16678,61 @@
0
- -79
+ -61
+
+
+ function member
+
+
+
+ 0
+
+ -62
+
+
+ type
+
+
+
+ 0
+
+ -63
+
+
+ free function
+
+
+
+ 0
+
+ -64
+
+
+ error_info_instance noalso type
+
+
+
+ 0
+
+ -65
+
+
+ tutorial
+
+
+
+ 0
+
+ -67
+
+
+ error_info free function
+
+
+
+ 0
+
+ -69noindex tutorial
@@ -16795,11 +16741,74 @@
0
- -80
+ -70
+
+
+ tutorial
+
+
+
+ 0
+
+ -71
+
+
+ exception_ptr free function
+
+
+
+ 0
+
+ -72
+
+
+ error_info free function
+
+
+
+ 0
+
+ -73
+
+
+ function
+
+
+
+ 0
+
+ -74
+
+
+ error_info_instance noalso type
+
+
+
+ 0
+
+ -75
+
+
+ macro
+
+
+
+ 0
+
+ -79type
+
+
+ 0
+
+ -80
+
+
+ error_info free function
+
diff --git a/include/boost/exception/detail/exception_ptr.hpp b/include/boost/exception/detail/exception_ptr.hpp
index 2e5febe..b9d7360 100644
--- a/include/boost/exception/detail/exception_ptr.hpp
+++ b/include/boost/exception/detail/exception_ptr.hpp
@@ -42,8 +42,7 @@ boost
void rethrow_exception( exception_ptr const & );
class
- exception_ptr:
- public exception_detail::exception_ptr_base
+ exception_ptr
{
typedef bool exception_ptr::*unspecified_bool_type;
friend exception_ptr current_exception();
@@ -72,7 +71,7 @@ boost
}
void
- _rethrow() const
+ rethrow() const
{
BOOST_ASSERT(*this);
if( bad_alloc_ )
@@ -82,7 +81,7 @@ boost
}
bool
- _empty() const
+ empty() const
{
return !bad_alloc_ && !c_;
}
@@ -100,7 +99,7 @@ boost
operator unspecified_bool_type() const
{
- return _empty() ? 0 : &exception_ptr::bad_alloc_;
+ return empty() ? 0 : &exception_ptr::bad_alloc_;
}
friend
@@ -443,7 +442,24 @@ boost
void
rethrow_exception( exception_ptr const & p )
{
- p._rethrow();
+ p.rethrow();
+ }
+
+ inline
+ std::string
+ diagnostic_information( exception_ptr const & p )
+ {
+ if( p )
+ try
+ {
+ rethrow_exception(p);
+ }
+ catch(
+ ... )
+ {
+ return current_exception_diagnostic_information();
+ }
+ return "";
}
inline
diff --git a/include/boost/exception/detail/exception_ptr_base.hpp b/include/boost/exception/detail/exception_ptr_base.hpp
deleted file mode 100644
index f605fb3..0000000
--- a/include/boost/exception/detail/exception_ptr_base.hpp
+++ /dev/null
@@ -1,36 +0,0 @@
-//Copyright (c) 2006-2009 Emil Dotchevski and Reverge Studios, Inc.
-
-//Distributed under the Boost Software License, Version 1.0. (See accompanying
-//file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
-
-#ifndef UUID_DC4208C6417811DEBF11E1EC55D89593
-#define UUID_DC4208C6417811DEBF11E1EC55D89593
-
-#if defined(__GNUC__) && !defined(BOOST_EXCEPTION_ENABLE_WARNINGS)
-#pragma GCC system_header
-#endif
-
-namespace
-boost
- {
- namespace
- exception_detail
- {
- class
- exception_ptr_base
- {
- public:
-
- virtual void _rethrow() const=0;
- virtual bool _empty() const=0;
-
- protected:
-
- ~exception_ptr_base() throw()
- {
- }
- };
- }
- }
-
-#endif
diff --git a/include/boost/exception/diagnostic_information.hpp b/include/boost/exception/diagnostic_information.hpp
index a88c368..0023f85 100644
--- a/include/boost/exception/diagnostic_information.hpp
+++ b/include/boost/exception/diagnostic_information.hpp
@@ -12,13 +12,37 @@
#include
#include
-#include
#include
#include
#include
#include
#include
+#ifndef BOOST_NO_EXCEPTIONS
+#include
+namespace
+boost
+ {
+ namespace
+ exception_detail
+ {
+ std::string diagnostic_information_impl( boost::exception const *, std::exception const *, bool );
+ }
+
+ inline
+ std::string
+ current_exception_diagnostic_information()
+ {
+ boost::exception const * be=current_exception_cast();
+ std::exception const * se=current_exception_cast();
+ if( be || se )
+ return exception_detail::diagnostic_information_impl(be,se,true);
+ else
+ return "No diagnostic information available.";
+ }
+ }
+#endif
+
namespace
boost
{
@@ -27,7 +51,7 @@ boost
{
template
struct
- enable_boost_exception_overload
+ is_convertible_to_boost_exception
{
struct yes { char q[100]; };
typedef char no;
@@ -38,13 +62,13 @@ boost
template
struct
- enable_std_exception_overload
+ is_convertible_to_std_exception
{
struct yes { char q[100]; };
typedef char no;
static yes check(std::exception const *);
static no check(...);
- enum e { value = !enable_boost_exception_overload::value && sizeof(check((T*)0))==sizeof(yes) };
+ enum e { value = sizeof(check((T*)0))==sizeof(yes) };
};
inline
@@ -70,12 +94,13 @@ boost
std::string
diagnostic_information_impl( boost::exception const * be, std::exception const * se, bool with_what )
{
- BOOST_ASSERT(be||se);
+ if( !be && !se )
+ return "Unknown exception.";
#ifndef BOOST_NO_RTTI
- if( !se )
- se = dynamic_cast(be);
if( !be )
- be = dynamic_cast(se);
+ be=dynamic_cast(se);
+ if( !se )
+ se=dynamic_cast(be);
#endif
char const * wh=0;
if( with_what && se )
@@ -115,19 +140,12 @@ boost
}
template
- inline
- typename enable_if,std::string>::type
+ std::string
diagnostic_information( T const & e )
{
- return exception_detail::diagnostic_information_impl(&e,0,true);
- }
-
- template
- inline
- typename enable_if,std::string>::type
- diagnostic_information( T const & e )
- {
- return exception_detail::diagnostic_information_impl(0,&e,true);
+ boost::exception const * be=exception_detail::is_convertible_to_boost_exception::value?((boost::exception const *)&e):0;
+ std::exception const * se=exception_detail::is_convertible_to_std_exception::value?((std::exception const *)&e):0;
+ return exception_detail::diagnostic_information_impl(be,se,true);
}
inline
@@ -152,40 +170,4 @@ boost
}
}
-#ifndef BOOST_NO_EXCEPTIONS
-#include
-namespace
-boost
- {
- inline
- std::string
- current_exception_diagnostic_information()
- {
- boost::exception const * be=current_exception_cast();
- std::exception const * se=current_exception_cast();
- if( be || se )
- return exception_detail::diagnostic_information_impl(be,se,true);
- else
- return "No diagnostic information available.";
- }
-
- inline
- std::string
- diagnostic_information( exception_detail::exception_ptr_base const & p )
- {
- if( !p._empty() )
- try
- {
- p._rethrow();
- }
- catch(
- ... )
- {
- return current_exception_diagnostic_information();
- }
- return "";
- }
- }
-#endif
-
#endif
diff --git a/test/no_exceptions_test.cpp b/test/no_exceptions_test.cpp
index ecdb03f..568a003 100644
--- a/test/no_exceptions_test.cpp
+++ b/test/no_exceptions_test.cpp
@@ -11,7 +11,18 @@
#include
#include
-struct my_exception: boost::exception, std::exception { };
+struct
+my_exception:
+ boost::exception,
+ std::exception
+ {
+ char const *
+ what() const throw()
+ {
+ return "my_exception";
+ }
+ };
+
typedef boost::error_info my_int;
bool called=false;