diff --git a/doc/boost-exception.html b/doc/boost-exception.html index eb578fd..fbd1269 100644 --- a/doc/boost-exception.html +++ b/doc/boost-exception.html @@ -146,12 +146,16 @@ boost #define BOOST_THROW_EXCEPTION(x) ::boost::throw_exception(x) #endif +namespace +boost + { #ifdef BOOST_NO_EXCEPTIONS void throw_exception( std::exception const & e ); // user defined #else template <class E> void throw_exception( E const & e ); -#endif +#endif + }

Class exception

exception

@@ -172,24 +176,7 @@ boost

Class boost::exception is designed to be used as a universal base for user-defined exception types.

An object of any type deriving from boost::exception can store data of arbitrary types, using the error_info wrapper and operator<<.

To retrieve data from a boost::exception object, use the get_error_info function template.

-

exception::exception

-
-
exception();
-exception( exception const & x );
-

Effects:

-
-

Throws:

-

Nothing.

-

exception::~exception

-
-
~exception();
-

Effects:

-

Frees all resources associated with a boost::exception object.

-

Throws:

-

Nothing.

-

Transporting of Arbitrary Data to the Catch Site

+

Transporting of Arbitrary Data to the Catch Site

error_info

#include <boost/exception/info.hpp>

@@ -428,12 +415,12 @@ boost
namespace
 boost
     {
-    #ifdef BOOST_NO_EXCEPTIONS
-        void throw_exception( std::exception const & e ); // user defined
-    #else
-        template <class E>
-        void throw_exception( E const & e );
-    #endif
+#ifdef BOOST_NO_EXCEPTIONS
+    void throw_exception( std::exception const & e ); // user defined
+#else
+    template <class E>
+    void throw_exception( E const & e );
+#endif
     }

Requirements:

E must derive publicly from std::exception.

diff --git a/doc/exception.html b/doc/exception.html index 45eb6d2..a252f8f 100644 --- a/doc/exception.html +++ b/doc/exception.html @@ -38,24 +38,7 @@ boost

Class boost::exception is designed to be used as a universal base for user-defined exception types.

An object of any type deriving from boost::exception can store data of arbitrary types, using the error_info wrapper and operator<<.

To retrieve data from a boost::exception object, use the get_error_info function template.

-

exception::exception

-
-
exception();
-exception( exception const & x );
-

Effects:

-
-

Throws:

-

Nothing.

-

exception::~exception

-
-
~exception();
-

Effects:

-

Frees all resources associated with a boost::exception object.

-

Throws:

-

Nothing.

-

+

See Also:

Boost Exception
boost/exception/diagnostic_information.hpp
diff --git a/doc/exception_hpp.html b/doc/exception_hpp.html index 5b6485a..7bebc63 100644 --- a/doc/exception_hpp.html +++ b/doc/exception_hpp.html @@ -28,8 +28,7 @@ #include <
boost/exception/get_error_info.hpp> #include <boost/exception/info.hpp> #include <boost/exception/info_tuple.hpp> -#include <boost/exception_ptr.hpp> -#include <boost/throw_exception.hpp> +#include <boost/exception_ptr.hpp>

See Also:

Boost Exception
diff --git a/doc/source/boost-exception.reno b/doc/source/boost-exception.reno index 3c8bb9b..3927f07 100644 --- a/doc/source/boost-exception.reno +++ b/doc/source/boost-exception.reno @@ -48,49 +48,6 @@ reno_context - - - - - - 1 - FC684D0DD5A9732B4130F2AB3DB6E0491D0F523E14B7FB738B2019EA2C7F8717 - 2229778754 - 631 - 319 - - - - - - 0 - ../../example/cloning_2.cpp - 0 - 0 - - - - - <string>cloning and re-throwing an exception</string> - - - cloning_and_rethrowing - - - - - - 0 - - - - - 0 - - 6 - - reno_context - @@ -132,6 +89,49 @@ (:include include:) (:auto also:) + + + 0 + + 6 + + reno_context + + + + + + + 1 + FC684D0DD5A9732B4130F2AB3DB6E0491D0F523E14B7FB738B2019EA2C7F8717 + 2229778754 + 631 + 319 + + + + + + 0 + ../../example/cloning_2.cpp + 0 + 0 + + + + + <string>cloning and re-throwing an exception</string> + + + cloning_and_rethrowing + + + + + + 0 + + 0 @@ -140,6 +140,55 @@ reno_context + + + + + + 2 + 86E1196533E771AEFD141DA43FCD980AE3D7689A45EDD54A2DF28B1943E0E7DB + 941210061 + 8706 + 487 + 0066D4E6E6B189906E6DE04F08509F3737511701A1B1355B37511EC18E8371F4 + 2078296250 + 305 + 8138 + + + + + + 0 + ../../../../boost/exception_ptr.hpp + 0 + 0 + + + + + <string>copy_exception</string> + + + + + + + + + 1 + 2 + (:include include:) (:auto also:) + + + + + 0 + + 8 + + reno_context + @@ -185,7 +234,56 @@ 0 - 8 + 9 + + reno_context + + + + + + + 2 + 50E48ABD58B427E16B2EFA345D5FE67159057CB90F19AA1AD52C11991FD8500E + 4076172629 + 8577 + 323 + DF9EA87B0140AACF4422F1B76F6A6A409C15F32858BBBA85A35981A824C56BA9 + 1137981799 + 192 + 8379 + + + + + + 0 + ../../../../boost/exception/exception.hpp + 0 + 0 + + + + + <string>enable_current_exception</string> + + + + + + + + + 1 + 2 + (:include include:) (:auto also:) + + + + + 0 + + 10 reno_context @@ -234,7 +332,7 @@ 0 - 9 + 11 reno_context @@ -279,7 +377,7 @@ 0 - 10 + 12 reno_context @@ -328,7 +426,7 @@ 0 - 11 + 13 reno_context @@ -373,7 +471,52 @@ 0 - 12 + 14 + + reno_context + + + + + + + 1 + 67D64FAD0AB7CA6B2173A14F363D19B27F59EEBDB5C1076F8BCCA1B54D4CCD7D + 2241687287 + 303 + 323 + + + + + + 0 + ../../../../boost/exception.hpp + 0 + 0 + + + + + <string>boost/exception.hpp</string> + + + exception_hpp + + + + + + 1 + 2 + (:include include:) (:auto also:) + + + + + 0 + + 15 reno_context @@ -422,7 +565,7 @@ 0 - 13 + 16 reno_context @@ -471,7 +614,7 @@ 0 - 14 + 17 reno_context @@ -520,7 +663,56 @@ 0 - 15 + 18 + + reno_context + + + + + + + 2 + 86E1196533E771AEFD141DA43FCD980AE3D7689A45EDD54A2DF28B1943E0E7DB + 941210061 + 8706 + 487 + E23085202D084CBB50F289988A6A592F06D923B77D0AB25D7A98A7188DF5BE3B + 1414247481 + 766 + 7370 + + + + + + 0 + ../../../../boost/exception_ptr.hpp + 0 + 0 + + + + + <string>current_exception</string> + + + + + + + + + 1 + 2 + (:include include:) (:auto also:) + + + + + 0 + + 19 reno_context @@ -569,7 +761,7 @@ 0 - 16 + 20 reno_context @@ -607,7 +799,7 @@ 0 - 17 + 21 reno_context @@ -656,7 +848,7 @@ 0 - 18 + 22 reno_context @@ -709,7 +901,7 @@ 0 - 19 + 23 reno_context @@ -754,7 +946,7 @@ 0 - 20 + 24 reno_context @@ -797,7 +989,7 @@ 0 - 21 + 25 reno_context @@ -846,7 +1038,7 @@ 0 - 22 + 26 reno_context @@ -891,56 +1083,7 @@ 0 - 23 - - reno_context - - - - - - - 2 - 86E1196533E771AEFD141DA43FCD980AE3D7689A45EDD54A2DF28B1943E0E7DB - 941210061 - 8706 - 487 - E23085202D084CBB50F289988A6A592F06D923B77D0AB25D7A98A7188DF5BE3B - 1414247481 - 766 - 7370 - - - - - - 0 - ../../../../boost/exception_ptr.hpp - 0 - 0 - - - - - <string>current_exception</string> - - - - - - - - - 1 - 2 - (:include include:) (:auto also:) - - - - - 0 - - 24 + 27 reno_context @@ -989,7 +1132,7 @@ 0 - 25 + 28 reno_context @@ -1032,7 +1175,7 @@ 0 - 26 + 29 reno_context @@ -1077,7 +1220,7 @@ 0 - 27 + 30 reno_context @@ -1120,56 +1263,7 @@ 0 - 28 - - reno_context - - - - - - - 2 - 86E1196533E771AEFD141DA43FCD980AE3D7689A45EDD54A2DF28B1943E0E7DB - 941210061 - 8706 - 487 - 0066D4E6E6B189906E6DE04F08509F3737511701A1B1355B37511EC18E8371F4 - 2078296250 - 305 - 8138 - - - - - - 0 - ../../../../boost/exception_ptr.hpp - 0 - 0 - - - - - <string>copy_exception</string> - - - - - - - - - 1 - 2 - (:include include:) (:auto also:) - - - - - 0 - - 29 + 31 reno_context @@ -1214,56 +1308,7 @@ 0 - 30 - - reno_context - - - - - - - 2 - 50E48ABD58B427E16B2EFA345D5FE67159057CB90F19AA1AD52C11991FD8500E - 4076172629 - 8577 - 323 - DF9EA87B0140AACF4422F1B76F6A6A409C15F32858BBBA85A35981A824C56BA9 - 1137981799 - 192 - 8379 - - - - - - 0 - ../../../../boost/exception/exception.hpp - 0 - 0 - - - - - <string>enable_current_exception</string> - - - - - - - - - 1 - 2 - (:include include:) (:auto also:) - - - - - 0 - - 31 + 32 reno_context @@ -1299,7 +1344,7 @@ 0 - 32 + 33 reno_context @@ -1333,7 +1378,7 @@ 0 - 33 + 34 reno_context @@ -1378,7 +1423,7 @@ 0 - -16 + -20 2 @@ -1387,7 +1432,7 @@ 0 - -19 + -23 2 @@ -1396,7 +1441,7 @@ 0 - -32 + -33 2 @@ -1405,7 +1450,7 @@ 0 - 34 + 35 reno_context @@ -1446,12 +1491,57 @@ 0 - -8 + -10 2 :) ##Transporting of Arbitrary Data to the Catch Site ###(:link 1 + + 0 + + -21 + + + 2 + :) ###(:link + 1 + + 0 + + -27 + + + 2 + :) ###(:link + 1 + + 0 + + -15 + + + 2 + :) ###(:link + 1 + + 0 + + -25 + + + 2 + :) ###(:link + 1 + + 0 + + -19 + + + 2 + :) ##(:link http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2179.html|N2179:) Transporting of Exceptions between Threads ###(:link + 1 0 @@ -1464,7 +1554,25 @@ 0 - -24 + -9 + + + 2 + :) ###(:link + 1 + + 0 + + -18 + + + 2 + :) ###(:link + 1 + + 0 + + -7 2 @@ -1482,20 +1590,38 @@ 0 - -21 + -16 2 - :) ###(:link + :) ##(:link 1 0 - -15 + -8 2 - :) ##(:link http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2179.html|N2179:) Transporting of Exceptions between Threads ###(:link + :) ##(:link + 1 + + 0 + + -34 + + + 2 + :), (:link + 1 + + 0 + + -11 + + + 2 + :) ##Headers ###(:link 1 0 @@ -1509,7 +1635,7 @@ 0 - -30 + -31 2 @@ -1518,25 +1644,7 @@ 0 - -23 - - - 2 - :) ###(:link - 1 - - 0 - - -28 - - - 2 - :) ###(:link - 1 - - 0 - - -10 + -5 2 @@ -1549,101 +1657,6 @@ 2 - :) ##(:link - 1 - - 0 - - -7 - - - 2 - :) ##(:link - 1 - - 0 - - -33 - - - 2 - :), (:link - 1 - - 0 - - -9 - - - 2 - :) ##Headers ###(:link - 1 - - 0 - - 35 - - reno_context - - - - - - - 1 - 6AF18E00A3BB3D35F83A4F81619F7BD079E08E2BF3F4CE6F218045A2DF9701FA - 348421341 - 341 - 323 - - - - - - 0 - ../../../../boost/exception.hpp - 0 - 0 - - - - - <string>boost/exception.hpp</string> - - - exception_hpp - - - - - 2 - :) ###(:link - 1 - - 0 - - -29 - - - 2 - :) ###(:link - 1 - - 0 - - -6 - - - 2 - :) ###(:link - 1 - - 0 - - -11 - - - 2 :) ###(:link 1 @@ -1731,7 +1744,7 @@ 0 - -26 + -29 2 @@ -1740,7 +1753,7 @@ 0 - -22 + -26 2 @@ -1824,7 +1837,7 @@ 0 - -35 + -14 2 @@ -1833,7 +1846,7 @@ 0 - -11 + -13 2 @@ -1848,15 +1861,6 @@ 2 api pre_indent="4":) (:include 1 - - 0 - - -26 - - - 2 - api pre_indent="4":) (:include - 1 0 @@ -1869,7 +1873,16 @@ 0 - -22 + -31 + + + 2 + api pre_indent="4":) (:include + 1 + + 0 + + -26 2 @@ -1896,12 +1909,57 @@ 0 - -8 + -10 2 :) !!Transporting of Arbitrary Data to the Catch Site (:include 1 + + 0 + + -21 + + + 2 + :) (:include + 1 + + 0 + + -27 + + + 2 + :) (:include + 1 + + 0 + + -15 + + + 2 + :) (:include + 1 + + 0 + + -25 + + + 2 + :) (:include + 1 + + 0 + + -19 + + + 2 + :) !!Transporting of Exceptions between Threads (:include + 1 0 @@ -1914,7 +1972,25 @@ 0 - -24 + -9 + + + 2 + :) (:include + 1 + + 0 + + -18 + + + 2 + :) (:include + 1 + + 0 + + -7 2 @@ -1932,70 +2008,7 @@ 0 - -21 - - - 2 - :) (:include - 1 - - 0 - - -15 - - - 2 - :) !!Transporting of Exceptions between Threads (:include - 1 - - 0 - - -14 - - - 2 - :) (:include - 1 - - 0 - - -30 - - - 2 - :) (:include - 1 - - 0 - - -23 - - - 2 - :) (:include - 1 - - 0 - - -28 - - - 2 - :) (:include - 1 - - 0 - - -10 - - - 2 - :) (:include - 1 - - 0 - - -13 + -16 2 @@ -2004,7 +2017,7 @@ 0 - -7 + -8 2 @@ -2013,26 +2026,13 @@ 0 - -33 + -34 2 :) !!Acknowledgements Peter Dimov has been continuously influencing the design and evolution of Boost Exception. Also thanks to Tobias Schwinger, Tom Brinkman, Pavel Vozenilek and everyone who participated in the review process. - - - 0 - - -32 - - - - 1 - 2 - (:include include:) (:auto also:) - - 0 @@ -2271,36 +2271,7 @@ - 7 - 2 - [@class (:link - 1 - - 0 - - -8 - - - 2 - :) { protected: (:include - 1 - - 0 - - -18 - - - 2 - decl pre_indent="4":) (:include - 1 - - 0 - - -40 - - - 2 - decl pre_indent="4":) };@] + 0 @@ -2322,7 +2293,36 @@ - 0 + 7 + 2 + [@class (:link + 1 + + 0 + + -10 + + + 2 + :) { protected: (:include + 1 + + 0 + + -22 + + + 2 + decl pre_indent="4":) (:include + 1 + + 0 + + -40 + + + 2 + decl pre_indent="4":) };@] @@ -2399,18 +2399,7 @@ - 3 - 2 - [@template <class Tag,class T> class (:link - 1 - - 0 - - -17 - - - 2 - :) { public: typedef T value_type; error_info( value_type const & ); };@] + 0 @@ -2454,7 +2443,18 @@ - 0 + 3 + 2 + [@template <class Tag,class T> class (:link + 1 + + 0 + + -21 + + + 2 + :) { public: typedef T value_type; error_info( value_type const & ); };@] @@ -2699,7 +2699,18 @@ - 0 + 3 + 2 + [@(:include + 1 + + 0 + + -21 + + + 2 + decl:)@] @@ -2710,18 +2721,7 @@ - 3 - 2 - [@(:include - 1 - - 0 - - -17 - - - 2 - decl:)@] + 0 @@ -2776,72 +2776,7 @@ - 15 - 2 - [@(:include - 1 - - 0 - - -8 - - - 2 - def:) (:include - 1 - - 0 - - -17 - - - 2 - decl:) typedef (:link - 1 - - 0 - - -17 - - - 2 - :)<struct tag_throw_function,char const *> throw_function; typedef (:link - 1 - - 0 - - -17 - - - 2 - :)<struct tag_throw_file,char const *> throw_file; typedef (:link - 1 - - 0 - - -17 - - - 2 - :)<struct tag_throw_line,int> throw_line; (:include - 1 - - 0 - - -15 - - - 2 - decl:) (:include - 1 - - 0 - - -30 - - - 2 - decl:)@] + 0 @@ -2863,7 +2798,72 @@ - 0 + 15 + 2 + [@(:include + 1 + + 0 + + -10 + + + 2 + def:) (:include + 1 + + 0 + + -21 + + + 2 + decl:) typedef (:link + 1 + + 0 + + -21 + + + 2 + :)<struct tag_throw_function,char const *> throw_function; typedef (:link + 1 + + 0 + + -21 + + + 2 + :)<struct tag_throw_file,char const *> throw_file; typedef (:link + 1 + + 0 + + -21 + + + 2 + :)<struct tag_throw_line,int> throw_line; (:include + 1 + + 0 + + -19 + + + 2 + decl:) (:include + 1 + + 0 + + -9 + + + 2 + decl:)@] @@ -2874,7 +2874,72 @@ - 0 + 15 + 2 + [@#include <(:link + 1 + + 0 + + -31 + + + 2 + :)> #include <(:link + 1 + + 0 + + -5 + + + 2 + :)> #include <(:link + 1 + + 0 + + -13 + + + 2 + :)> #include <(:link + 1 + + 0 + + -36 + + + 2 + :)> #include <(:link + 1 + + 0 + + -37 + + + 2 + :)> #include <(:link + 1 + + 0 + + -29 + + + 2 + :)> #include <(:link + 1 + + 0 + + -26 + + + 2 + :)>@] @@ -2962,54 +3027,7 @@ - 11 - 2 - [@(:include - 1 - - 0 - - -13 - - - 2 - decl:) (:include - 1 - - 0 - - -14 - - - 2 - decl:) (:include - 1 - - 0 - - -28 - - - 2 - decl:) (:include - 1 - - 0 - - -23 - - - 2 - decl:) (:include - 1 - - 0 - - -10 - - - 2 - decl:)@] + 0 @@ -3053,10 +3071,46 @@ - 3 + 11 2 [@(:include 1 + + 0 + + -16 + + + 2 + decl:) (:include + 1 + + 0 + + -17 + + + 2 + decl:) (:include + 1 + + 0 + + -7 + + + 2 + decl:) (:include + 1 + + 0 + + -18 + + + 2 + decl:) (:include + 1 0 @@ -3097,23 +3151,14 @@ - 5 + 3 2 [@(:include 1 0 - -8 - - - 2 - decl:) (:include - 1 - - 0 - - -7 + -15 2 @@ -3139,7 +3184,27 @@ - 0 + 5 + 2 + [@(:include + 1 + + 0 + + -10 + + + 2 + decl:) (:include + 1 + + 0 + + -8 + + + 2 + decl:)@] @@ -3183,81 +3248,7 @@ - 17 - 2 - [@#include <(:link - 1 - - 0 - - -29 - - - 2 - :)> #include <(:link - 1 - - 0 - - -6 - - - 2 - :)> #include <(:link - 1 - - 0 - - -11 - - - 2 - :)> #include <(:link - 1 - - 0 - - -36 - - - 2 - :)> #include <(:link - 1 - - 0 - - -37 - - - 2 - :)> #include <(:link - 1 - - 0 - - -26 - - - 2 - :)> #include <(:link - 1 - - 0 - - -22 - - - 2 - :)> #include <(:link - 1 - - 0 - - -38 - - - 2 - :)>@] + 0 @@ -3275,7 +3266,7 @@ 0 - -21 + -25 2 @@ -3297,7 +3288,7 @@ 0 - -17 + -21 2 @@ -3306,7 +3297,7 @@ 0 - -24 + -27 2 @@ -3328,20 +3319,20 @@ 0 - -9 + -11 2 - decl:) (:include + decl:) namespace boost { (:include 1 0 - -33 + -34 2 - decl:)@] + decl:) }@] @@ -3423,7 +3414,16 @@ 5 2 - [@std::string (:link + [@template <class T> (:link + 1 + + 0 + + -17 + + + 2 + :) (:link 1 0 @@ -3432,16 +3432,7 @@ 2 - :)( boost:: - 1 - - 0 - - -8 - - - 2 - const & x );@] + :)( T const & e );@] @@ -3452,9 +3443,9 @@ - 3 + 5 2 - [@class (:link + [@std::string (:link 1 0 @@ -3463,7 +3454,16 @@ 2 - :);@] + :)( boost:: + 1 + + 0 + + -10 + + + 2 + const & x );@] @@ -3474,18 +3474,9 @@ - 19 + 3 2 - [@#if !defined( BOOST_NO_EXCEPTIONS ) && !defined( BOOST_EXCEPTION_DISABLE ) #include < - 1 - - 0 - - -11 - - - 2 - > #include <boost/current_function.hpp> #define + [@template <class T> ---unspecified--- (:link 1 0 @@ -3494,70 +3485,7 @@ 2 - (x)\ ::boost:: - 1 - - 0 - - -33 - - - 2 - ( ::boost:: - 1 - - 0 - - -15 - - - 2 - (x) <<\ ::boost::(:link - 1 - - 0 - - -11 - - - 2 - |throw_function:)(BOOST_CURRENT_FUNCTION) <<\ ::boost::(:link - 1 - - 0 - - -11 - - - 2 - |throw_file:)(__FILE__) <<\ ::boost::(:link - 1 - - 0 - - -11 - - - 2 - |throw_line:)((int)__LINE__) ) #else #define - 1 - - 0 - - -9 - - - 2 - (x) ::boost:: - 1 - - 0 - - -33 - - - 2 - (x) #endif@] + :)( T const & e );@] @@ -3568,9 +3496,9 @@ - 5 + 3 2 - [@void (:link + [@class (:link 1 0 @@ -3579,122 +3507,156 @@ 2 - :)( (:link - 1 - - 0 - - -14 - - - 2 - :) const & ep ); - - - - - 0 - - -11 - - - - 0 - - - - - 0 - - -12 - - - - 7 - 2 - [@template <class E, class Tag1, class T1, ..., class TagN, class TN> E const & (:link - 1 - - 0 - - -12 - - - 2 - |operator<<:)( E const & x, (:link http://www.boost.org/libs/tuple/doc/tuple_users_guide.html|tuple:)< (:link - 1 - - 0 - - -17 - - - 2 - :)<Tag1,T1>, ..., (:link - 1 - - 0 - - -17 - - - 2 - :)<TagN,TN> > const & v );@] - - - - - 0 - - -13 - - - - 5 - 2 - [@class (:link - 1 - - 0 - - -13 - - - 2 - :): public std::exception public boost:: - 1 - - 0 - - -8 - - - 2 - { ---unspecified--- };@] - - - - - 0 - - -14 - - - - 3 - 2 - [@typedef ---unspecified--- (:link - 1 - - 0 - - -14 - - - 2 :);@] + + + 0 + + -11 + + + + 19 + 2 + [@#if !defined( BOOST_NO_EXCEPTIONS ) && !defined( BOOST_EXCEPTION_DISABLE ) #include < + 1 + + 0 + + -13 + + + 2 + > #include <boost/current_function.hpp> #define + 1 + + 0 + + -11 + + + 2 + (x)\ ::boost:: + 1 + + 0 + + -34 + + + 2 + ( ::boost:: + 1 + + 0 + + -19 + + + 2 + (x) <<\ ::boost::(:link + 1 + + 0 + + -13 + + + 2 + |throw_function:)(BOOST_CURRENT_FUNCTION) <<\ ::boost::(:link + 1 + + 0 + + -13 + + + 2 + |throw_file:)(__FILE__) <<\ ::boost::(:link + 1 + + 0 + + -13 + + + 2 + |throw_line:)((int)__LINE__) ) #else #define + 1 + + 0 + + -11 + + + 2 + (x) ::boost:: + 1 + + 0 + + -34 + + + 2 + (x) #endif@] + + + + + 0 + + -12 + + + + 5 + 2 + [@void (:link + 1 + + 0 + + -12 + + + 2 + :)( (:link + 1 + + 0 + + -17 + + + 2 + :) const & ep ); + + + + + 0 + + -13 + + + + 0 + + + + + 0 + + -14 + + + + 0 + + 0 @@ -3703,9 +3665,9 @@ - 3 + 7 2 - [@template <class T> ---unspecified--- (:link + [@template <class E, class Tag1, class T1, ..., class TagN, class TN> E const & (:link 1 0 @@ -3714,7 +3676,25 @@ 2 - :)( T const & x );@] + |operator<<:)( E const & x, (:link http://www.boost.org/libs/tuple/doc/tuple_users_guide.html|tuple:)< (:link + 1 + + 0 + + -21 + + + 2 + :)<Tag1,T1>, ..., (:link + 1 + + 0 + + -21 + + + 2 + :)<TagN,TN> > const & v );@] @@ -3725,7 +3705,27 @@ - 0 + 5 + 2 + [@class (:link + 1 + + 0 + + -16 + + + 2 + :): public std::exception public boost:: + 1 + + 0 + + -10 + + + 2 + { ---unspecified--- };@] @@ -3738,7 +3738,7 @@ 3 2 - [@template <class Tag,class T> class (:link + [@typedef ---unspecified--- (:link 1 0 @@ -3758,18 +3758,18 @@ - 7 + 5 2 [@(:link 1 0 - -18 + -17 2 - mod="m":)(); (:link + :) (:link 1 0 @@ -3778,16 +3778,7 @@ 2 - mod="m":)( (:link - 1 - - 0 - - -8 - - - 2 - :) const & x );@] + :)();@] @@ -3798,7 +3789,18 @@ - 0 + 3 + 2 + [@template <class T> ---unspecified--- (:link + 1 + + 0 + + -19 + + + 2 + :)( T const & x );@] @@ -3822,7 +3824,7 @@ 3 2 - [@template <class ErrorInfo,class E> (:link http://www.boost.org/libs/smart_ptr/shared_ptr.htm|shared_ptr:)<typename ErrorInfo::value_type const> (:link + [@template <class Tag,class T> class (:link 1 0 @@ -3831,7 +3833,7 @@ 2 - :)( E const & x );@] + :);@] @@ -3842,7 +3844,36 @@ - 0 + 7 + 2 + [@(:link + 1 + + 0 + + -22 + + + 2 + mod="m":)(); (:link + 1 + + 0 + + -22 + + + 2 + mod="m":)( (:link + 1 + + 0 + + -10 + + + 2 + :) const & x );@] @@ -3853,27 +3884,7 @@ - 5 - 2 - [@(:link - 1 - - 0 - - -14 - - - 2 - :) (:link - 1 - - 0 - - -23 - - - 2 - :)();@] + 0 @@ -3884,27 +3895,7 @@ - 5 - 2 - [@template <class E, class Tag, class T> E const & (:link - 1 - - 0 - - -24 - - - 2 - |operator<<:)( E const & x, (:link - 1 - - 0 - - -17 - - - 2 - :)<Tag,T> const & v );@] + 0 @@ -3915,7 +3906,18 @@ - 0 + 3 + 2 + [@template <class ErrorInfo,class E> (:link http://www.boost.org/libs/smart_ptr/shared_ptr.htm|shared_ptr:)<typename ErrorInfo::value_type const> (:link + 1 + + 0 + + -25 + + + 2 + :)( E const & x );@] @@ -3937,7 +3939,27 @@ - 0 + 5 + 2 + [@template <class E, class Tag, class T> E const & (:link + 1 + + 0 + + -27 + + + 2 + |operator<<:)( E const & x, (:link + 1 + + 0 + + -21 + + + 2 + :)<Tag,T> const & v );@] @@ -3948,27 +3970,7 @@ - 5 - 2 - [@template <class T> (:link - 1 - - 0 - - -14 - - - 2 - :) (:link - 1 - - 0 - - -28 - - - 2 - :)( T const & e );@] + 0 @@ -3990,18 +3992,7 @@ - 3 - 2 - [@template <class T> ---unspecified--- (:link - 1 - - 0 - - -30 - - - 2 - :)( T const & e );@] + 0 @@ -4034,27 +4025,7 @@ - 5 - 2 - [@#ifdef BOOST_NO_EXCEPTIONS void (:link - 1 - - 0 - - -33 - - - 2 - :)( std::exception const & e ); // user defined #else template <class E> void (:link - 1 - - 0 - - -33 - - - 2 - :)( E const & e ); #endif@] + 0 @@ -4065,7 +4036,27 @@ - 0 + 5 + 2 + [@#ifdef BOOST_NO_EXCEPTIONS void (:link + 1 + + 0 + + -34 + + + 2 + :)( std::exception const & e ); // user defined #else template <class E> void (:link + 1 + + 0 + + -34 + + + 2 + :)( E const & e ); #endif@] @@ -4178,171 +4169,9 @@ - 37 + 1 2 - (:auto !!!:) When you catch an exception, you can call (:link - 1 - - 0 - - -23 - - - 2 - :) to get an (:link - 1 - - 0 - - -14 - - - 2 - :) object: [@#include <(:link - 1 - - 0 - - -22 - - - 2 - :)> #include <boost/thread.hpp> #include <boost/bind.hpp> void do_work(); //throws cloning-enabled boost::(:link - 1 - - 0 - - -8 - - - 2 - :)s void worker_thread( boost::(:link - 1 - - 0 - - -14 - - - 2 - :) & error ) { try { do_work(); error = boost::(:link - 1 - - 0 - - -14 - - - 2 - :)(); } catch( ... ) { error = boost::(:link - 1 - - 0 - - -23 - - - 2 - :)(); } }@] In the above example, note that (:link - 1 - - 0 - - -23 - - - 2 - :) captures the original type of the exception object. The exception can be thrown again using the (:link - 1 - - 0 - - -10 - - - 2 - :) function: [@// ...continued void work() { boost::(:link - 1 - - 0 - - -14 - - - 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 - - -10 - - - 2 - :)(error); }@] Note that (:link - 1 - - 0 - - -23 - - - 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 - - -14 - - - 2 - :) points to an instance of std::bad_alloc, or * if (:link - 1 - - 0 - - -30 - - - 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 - - -14 - - - 2 - :) points to an instance of (:link - 1 - - 0 - - -13 - - - 2 - :). Regardless, the use of (:link - 1 - - 0 - - -23 - - - 2 - :) and (:link - 1 - - 0 - - -10 - - - 2 - :) in the above examples is well-formed. + (:auto !!:) !!!Synopsis (:include synopsis:) @@ -4353,9 +4182,171 @@ - 1 + 37 2 - (:auto !!:) !!!Synopsis (:include synopsis:) + (:auto !!!:) When you catch an exception, you can call (:link + 1 + + 0 + + -18 + + + 2 + :) to get an (:link + 1 + + 0 + + -17 + + + 2 + :) object: [@#include <(:link + 1 + + 0 + + -26 + + + 2 + :)> #include <boost/thread.hpp> #include <boost/bind.hpp> void do_work(); //throws cloning-enabled boost::(:link + 1 + + 0 + + -10 + + + 2 + :)s void worker_thread( boost::(:link + 1 + + 0 + + -17 + + + 2 + :) & error ) { try { do_work(); error = boost::(:link + 1 + + 0 + + -17 + + + 2 + :)(); } catch( ... ) { error = boost::(:link + 1 + + 0 + + -18 + + + 2 + :)(); } }@] In the above example, note that (:link + 1 + + 0 + + -18 + + + 2 + :) captures the original type of the exception object. The exception can be thrown again using the (:link + 1 + + 0 + + -12 + + + 2 + :) function: [@// ...continued void work() { boost::(:link + 1 + + 0 + + -17 + + + 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 + + -12 + + + 2 + :)(error); }@] Note that (:link + 1 + + 0 + + -18 + + + 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 + + -17 + + + 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 + + -17 + + + 2 + :) points to an instance of (:link + 1 + + 0 + + -16 + + + 2 + :). Regardless, the use of (:link + 1 + + 0 + + -18 + + + 2 + :) and (:link + 1 + + 0 + + -12 + + + 2 + :) in the above examples is well-formed. @@ -4366,36 +4357,27 @@ - 7 + 5 2 - (:auto !!!:) (:include synopsis:) !!!!Returns: This function iterates over all data objects stored in the boost::(:link + (:auto !!!:) (:include synopsis:) !!!!Effects: As if [@try { throw 1 0 - -8 + -9 2 - :) through (:link + (e); } catch(...) { return (:link 1 0 - -24 + -18 2 - |operator<<:). The returned string is constructed by converting each data object to string and then concatenating these strings together. When the (:link - 1 - - 0 - - -17 - - - 2 - :)<Tag,T> template is instantiated, the system attempts overload resolution for an unqualified call to to_string(x), where x is of type T. If this is successful, the to_string overload is expected to return std::string and is used to convert objects of type T to string. Otherwise, the system attempts overload resolution for s << x, where s is a std::ostringstream and x is of type T. If this is successful, the operator<< overload is used to convert objects of type T to string. Otherwise the system is unable to convert objects of type T to string, and an unspecified stub string value is used without issuing a compile error. !!!!Notes: *The format of the returned string is unspecified. *The returned string is ''not'' user-friendly. *If dynamic_cast<std::exception const *>(&x) is not null, the returned string includes the output from std::exception::what. *The returned string may include additional platform-specific diagnostic information. + :)(); }@] @@ -4406,54 +4388,27 @@ - 17 + 7 2 - (:auto !!!:) (:include synopsis:) Class boost::(:link + (:auto !!!:) (:include synopsis:) !!!!Returns: This function iterates over all data objects stored in the boost::(:link 1 0 - -8 + -10 2 - :) is designed to be used as a universal base for user-defined exception types. An object of any type deriving from boost::(:link + :) through (:link 1 0 - -8 + -27 2 - :) can store data of arbitrary types, using the (:link - 1 - - 0 - - -17 - - - 2 - :) wrapper and (:link - 1 - - 0 - - -24 - - - 2 - |operator<<:). To retrieve data from a boost::(:link - 1 - - 0 - - -8 - - - 2 - :) object, use the (:link + |operator<<:). The returned string is constructed by converting each data object to string and then concatenating these strings together. When the (:link 1 0 @@ -4462,25 +4417,7 @@ 2 - :) function template. (:include - 1 - - 0 - - -18 - - - 2 - :) (:include - 1 - - 0 - - -40 - - - 2 - :) + :)<Tag,T> template is instantiated, the system attempts overload resolution for an unqualified call to to_string(x), where x is of type T. If this is successful, the to_string overload is expected to return std::string and is used to convert objects of type T to string. Otherwise, the system attempts overload resolution for s << x, where s is a std::ostringstream and x is of type T. If this is successful, the operator<< overload is used to convert objects of type T to string. Otherwise the system is unable to convert objects of type T to string, and an unspecified stub string value is used without issuing a compile error. !!!!Notes: *The format of the returned string is unspecified. *The returned string is ''not'' user-friendly. *If dynamic_cast<std::exception const *>(&x) is not null, the returned string includes the output from std::exception::what. *The returned string may include additional platform-specific diagnostic information. @@ -4491,18 +4428,130 @@ - 7 + 21 2 - (:auto !!!:) (:include synopsis:) This macro takes an exception object, records BOOST_CURRENT_FUNCTION, __FILE__ and __LINE__ in it, and forwards it to + (:auto !!!:) (:include synopsis:) !!!!Requirements: T must be a class with an accessible no-throw copy constructor. !!!!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 - -33 + -17 2 - . To recover this information at the catch site, use + :) 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 + + -18 + + + 2 + :) may return an (:link + 1 + + 0 + + -17 + + + 2 + :) which refers to an instance of (:link + 1 + + 0 + + -16 + + + 2 + :). See (:link + 1 + + 0 + + -18 + + + 2 + :) for details. !!!!Note: Instead of using the throw keyword directly, it is preferable to call boost::(:link + 1 + + 0 + + -34 + + + 2 + :). This is guaranteed to throw an exception that derives from boost::(:link + 1 + + 0 + + -10 + + + 2 + :) and supports the (:link + 1 + + 0 + + -17 + + + 2 + :) functionality. + + + + + 0 + + -10 + + + + 13 + 2 + (:auto !!!:) (:include synopsis:) Class boost::(:link + 1 + + 0 + + -10 + + + 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 + + -10 + + + 2 + :) can store data of arbitrary types, using the (:link 1 0 @@ -4511,12 +4560,70 @@ 2 + :) wrapper and (:link + 1 + + 0 + + -27 + + + 2 + |operator<<:). To retrieve data from a boost::(:link + 1 + + 0 + + -10 + + + 2 + :) object, use the (:link + 1 + + 0 + + -25 + + + 2 + :) function template. + + + + + 0 + + -11 + + + + 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 + + -34 + + + 2 + . To recover this information at the catch site, use + 1 + + 0 + + -25 + + + 2 ; the information is also included in the message returned by 1 0 - -7 + -8 2 @@ -4527,7 +4634,7 @@ 0 - -10 + -12 @@ -4540,7 +4647,7 @@ 0 - -11 + -13 @@ -4549,68 +4656,6 @@ (:auto !!:) !!!Synopsis (:include synopsis:) - - - 0 - - -12 - - - - 5 - 2 - (:auto !!!:) (:include synopsis:) !!!!Requirements: E must be boost::(:link - 1 - - 0 - - -8 - - - 2 - :), or a type that derives (indirectly) from boost::(:link - 1 - - 0 - - -8 - - - 2 - :). !!!!Effects: Equivalent to x << v.(:link http://www.boost.org/libs/tuple/doc/tuple_users_guide.html#accessing_elements|get:)<0>() << ... << v.(:link http://www.boost.org/libs/tuple/doc/tuple_users_guide.html#accessing_elements|get:)<N>(). !!!!Returns: x. (:include throws:) - - - - - 0 - - -13 - - - - 5 - 2 - (:auto !!!:) (:include synopsis:) This type is used by the (:link - 1 - - 0 - - -14 - - - 2 - :) support in Boost Exception. Please see (:link - 1 - - 0 - - -23 - - - 2 - :). - - 0 @@ -4619,81 +4664,9 @@ - 17 + 1 2 - (:auto !!!:) (:include synopsis:) The (:link - 1 - - 0 - - -14 - - - 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 - - -14 - - - 2 - :)'s operations do not throw. Two instances of (:link - 1 - - 0 - - -14 - - - 2 - :) are equivalent and compare equal if and only if they refer to the same exception. The default constructor of (:link - 1 - - 0 - - -14 - - - 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 - - -14 - - - 2 - :) references to the same exception object. * It is illegal for multiple threads to modify the same (:link - 1 - - 0 - - -14 - - - 2 - :) object concurrently. * While calling - 1 - - 0 - - -23 - - - 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 - 1 - - 0 - - -10 - - - 2 - to throw the same exception object concurrently into multiple threads. + (:auto !!:) !!!Synopsis (:include synopsis:) @@ -4706,25 +4679,25 @@ 5 2 - (:auto !!!:) (:include synopsis:) !!!!Requirements: T must be a class with an accessible no-throw copy constructor as per (15.5.1). !!!!Returns: * If T derives from boost::(:link + (:auto !!!:) (:include synopsis:) !!!!Requirements: E must be boost::(:link 1 0 - -8 + -10 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 + :), or a type that derives (indirectly) from boost::(:link 1 0 - -8 + -10 2 - :). The T sub-object is initialized from x by the T copy constructor. !!!!Throws: Nothing. + :). !!!!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:) @@ -4734,6 +4707,292 @@ -16 + + 5 + 2 + (:auto !!!:) (:include synopsis:) This type is used by the (:link + 1 + + 0 + + -17 + + + 2 + :) support in Boost Exception. Please see (:link + 1 + + 0 + + -18 + + + 2 + :). + + + + + 0 + + -17 + + + + 17 + 2 + (:auto !!!:) (:include synopsis:) The (:link + 1 + + 0 + + -17 + + + 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 + + -17 + + + 2 + :)'s operations do not throw. Two instances of (:link + 1 + + 0 + + -17 + + + 2 + :) are equivalent and compare equal if and only if they refer to the same exception. The default constructor of (:link + 1 + + 0 + + -17 + + + 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 + + -17 + + + 2 + :) references to the same exception object. * It is illegal for multiple threads to modify the same (:link + 1 + + 0 + + -17 + + + 2 + :) object concurrently. * While calling + 1 + + 0 + + -18 + + + 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 + 1 + + 0 + + -12 + + + 2 + to throw the same exception object concurrently into multiple threads. + + + + + 0 + + -18 + + + + 29 + 2 + (:auto !!!:) (:include synopsis:) !!!!Requirements: The (:link + 1 + + 0 + + -18 + + + 2 + :) function must not be called outside of a catch block. !!!!Returns: * An (:link + 1 + + 0 + + -17 + + + 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 + + -17 + + + 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 + + -18 + + + 2 + :) refer to the same exception object. * Correct implementation of (:link + 1 + + 0 + + -18 + + + 2 + :) may require compiler support, unless (:link + 1 + + 0 + + -9 + + + 2 + :) was used at the time the currently handled exception object was passed to throw. If (:link + 1 + + 0 + + -9 + + + 2 + :) was not used, and if the compiler does not provide the necessary support, then (:link + 1 + + 0 + + -18 + + + 2 + :) may return an (:link + 1 + + 0 + + -17 + + + 2 + :) that refers to an instance of (:link + 1 + + 0 + + -16 + + + 2 + :). In this case, if the original exception object derives from boost::(:link + 1 + + 0 + + -10 + + + 2 + :), then the boost::(:link + 1 + + 0 + + -10 + + + 2 + :) sub-object of the (:link + 1 + + 0 + + -16 + + + 2 + :) object is initialized by the boost::(:link + 1 + + 0 + + -10 + + + 2 + :) copy constructor. + + + + + 0 + + -19 + + + + 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 + + -10 + + + 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 + + -10 + + + 2 + :). The T sub-object is initialized from x by the T copy constructor. !!!!Throws: Nothing. + + + + + 0 + + -20 + + 11 2 @@ -4742,7 +5001,7 @@ 0 - -8 + -10 2 @@ -4751,7 +5010,7 @@ 0 - -8 + -10 2 @@ -4760,7 +5019,7 @@ 0 - -25 + -28 2 @@ -4769,7 +5028,7 @@ 0 - -20 + -24 2 @@ -4789,7 +5048,7 @@ 0 - -17 + -21 @@ -4800,7 +5059,7 @@ 0 - -17 + -21 2 @@ -4809,7 +5068,7 @@ 0 - -24 + -27 2 @@ -4818,7 +5077,7 @@ 0 - -8 + -10 2 @@ -4827,7 +5086,7 @@ 0 - -6 + -5 2 @@ -4836,7 +5095,7 @@ 0 - -17 + -21 2 @@ -4845,7 +5104,7 @@ 0 - -6 + -5 2 @@ -4854,7 +5113,7 @@ 0 - -17 + -21 2 @@ -4863,7 +5122,7 @@ 0 - -17 + -21 2 @@ -4872,7 +5131,7 @@ 0 - -8 + -10 2 @@ -4881,7 +5140,7 @@ 0 - -24 + -27 2 @@ -4890,7 +5149,7 @@ 0 - -21 + -25 2 @@ -4910,7 +5169,7 @@ 0 - -18 + -22 @@ -4921,7 +5180,7 @@ 0 - -8 + -10 2 @@ -4930,7 +5189,7 @@ 0 - -8 + -10 2 @@ -4939,7 +5198,7 @@ 0 - -24 + -27 2 @@ -4950,7 +5209,7 @@ 0 - -19 + -23 @@ -4961,7 +5220,7 @@ 0 - -8 + -10 2 @@ -4970,7 +5229,7 @@ 0 - -15 + -19 2 @@ -4979,7 +5238,7 @@ 0 - -8 + -10 2 @@ -4988,7 +5247,7 @@ 0 - -35 + -14 2 @@ -4997,7 +5256,7 @@ 0 - -17 + -21 2 @@ -5006,7 +5265,7 @@ 0 - -17 + -21 2 @@ -5015,7 +5274,7 @@ 0 - -17 + -21 2 @@ -5024,7 +5283,7 @@ 0 - -15 + -19 2 @@ -5033,7 +5292,7 @@ 0 - -15 + -19 2 @@ -5042,7 +5301,7 @@ 0 - -8 + -10 2 @@ -5051,7 +5310,7 @@ 0 - -24 + -27 2 @@ -5060,7 +5319,7 @@ 0 - -8 + -10 2 @@ -5069,7 +5328,7 @@ 0 - -16 + -20 2 @@ -5080,7 +5339,7 @@ 0 - -20 + -24 @@ -5091,7 +5350,7 @@ 0 - -8 + -10 2 @@ -5100,7 +5359,7 @@ 0 - -35 + -14 2 @@ -5109,7 +5368,7 @@ 0 - -17 + -21 2 @@ -5118,7 +5377,7 @@ 0 - -8 + -10 2 @@ -5127,7 +5386,7 @@ 0 - -35 + -14 2 @@ -5136,7 +5395,7 @@ 0 - -17 + -21 2 @@ -5145,7 +5404,7 @@ 0 - -8 + -10 2 @@ -5154,7 +5413,7 @@ 0 - -8 + -10 2 @@ -5163,7 +5422,7 @@ 0 - -8 + -10 2 @@ -5172,7 +5431,7 @@ 0 - -21 + -25 2 @@ -5183,7 +5442,7 @@ 0 - -21 + -25 @@ -5194,7 +5453,7 @@ 0 - -17 + -21 2 @@ -5203,7 +5462,7 @@ 0 - -21 + -25 2 @@ -5212,7 +5471,7 @@ 0 - -8 + -10 2 @@ -5221,290 +5480,13 @@ 0 - -24 + -27 2 |operator<<:) to store values in exception objects.) The shared_ptr is valid even after x has been destroyed. !!!!Throws: Nothing. - - - 0 - - -22 - - - - 1 - 2 - (:auto !!:) !!!Synopsis (:include synopsis:) - - - - - 0 - - -23 - - - - 29 - 2 - (:auto !!!:) (:include synopsis:) !!!!Requirements: The (:link - 1 - - 0 - - -23 - - - 2 - :) function must not be called outside of a catch block. !!!!Returns: * An (:link - 1 - - 0 - - -14 - - - 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 - - -14 - - - 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 - - -23 - - - 2 - :) refer to the same exception object. * Correct implementation of (:link - 1 - - 0 - - -23 - - - 2 - :) may require compiler support, unless (:link - 1 - - 0 - - -30 - - - 2 - :) was used at the time the currently handled exception object was passed to throw. If (:link - 1 - - 0 - - -30 - - - 2 - :) was not used, and if the compiler does not provide the necessary support, then (:link - 1 - - 0 - - -23 - - - 2 - :) may return an (:link - 1 - - 0 - - -14 - - - 2 - :) that refers to an instance of (:link - 1 - - 0 - - -13 - - - 2 - :). In this case, if the original exception object derives from boost::(:link - 1 - - 0 - - -8 - - - 2 - :), then the boost::(:link - 1 - - 0 - - -8 - - - 2 - :) sub-object of the (:link - 1 - - 0 - - -13 - - - 2 - :) object is initialized by the boost::(:link - 1 - - 0 - - -8 - - - 2 - :) copy constructor. - - - - - 0 - - -24 - - - - 7 - 2 - (:auto !!!:) (:include synopsis:) !!!!Requirements: E must be boost::(:link - 1 - - 0 - - -8 - - - 2 - :), or a type that derives (indirectly) from boost::(:link - 1 - - 0 - - -8 - - - 2 - :). !!!!Effects: Stores a copy of v into x. If x already contains data of type (:link - 1 - - 0 - - -17 - - - 2 - :)<Tag,T>, that data is overwritten. !!!!Returns: x. (:include throws:) - - - - - 0 - - -25 - - - - 17 - 2 - (:auto !!!:) The following example demonstrates how errno can be stored in exception objects using Boost Exception: [@#include <(:link - 1 - - 0 - - -35 - - - 2 - :)> #include <errno.h> #include <iostream> typedef boost::(:link - 1 - - 0 - - -17 - - - 2 - :)<struct tag_errno,int> errno_info; //(1) class my_error: public boost::(:link - 1 - - 0 - - -8 - - - 2 - :), public std::exception { }; //(2) void f() { throw my_error() << errno_info(errno); //(3) } @] First, we instantiate the (:link - 1 - - 0 - - -17 - - - 2 - :) template using a unique identifier -- tag_errno, and the type of the info it identifies -- int. This provides compile-time type safety for the various values stored in exception objects. Second, we define class my_error, which derives from boost::(:link - 1 - - 0 - - -8 - - - 2 - :). Finally, (3) illustrates how the typedef from (1) can be used with (:link - 1 - - 0 - - -24 - - - 2 - |operator<<:) to store values in exception objects at the point of the throw. The stored errno value can be recovered at a later time like this: [@// ...continued void g() { try { f(); } catch( my_error & x ) { if( boost::shared_ptr<int const> err=boost::(:link - 1 - - 0 - - -21 - - - 2 - :)<errno_info>(x) ) std::cerr << "Error code: " << *err; } }@] The (:link - 1 - - 0 - - -21 - - - 2 - :) function template is instantiated with the typedef from (1), and is passed an exception object of a polymorphic type. If the exception object contains the requested value, the returned (:link http://www.boost.org/libs/smart_ptr/shared_ptr.htm|shared_ptr:) will point to it; otherwise an empty (:link http://www.boost.org/libs/smart_ptr/shared_ptr.htm|shared_ptr:) is returned. - - 0 @@ -5526,54 +5508,36 @@ - 11 + 7 2 - (:auto !!!:) Here is how cloning can be enabled in a throw-expression (15.1): [@#include <(:link + (:auto !!!:) (:include synopsis:) !!!!Requirements: E must be boost::(:link 1 0 - -37 + -10 2 - :)> #include <stdio.h> #include <errno.h> typedef boost::error_info<struct tag_errno,int> errno_info; class file_read_error: public boost::(:link + :), or a type that derives (indirectly) from boost::(:link 1 0 - -8 + -10 2 - :) { }; void file_read( FILE * f, void * buffer, size_t size ) { if( size!=fread(buffer,1,size,f) ) throw boost::(:link + :). !!!!Effects: Stores a copy of v into x. If x already contains data of type (:link 1 0 - -30 + -21 2 - :)(file_read_error()) << errno_info(errno); }@] Of course, (:link - 1 - - 0 - - -30 - - - 2 - :) may be used with any exception type; there is no requirement that it should derive from boost::(:link - 1 - - 0 - - -8 - - - 2 - :). + :)<Tag,T>, that data is overwritten. !!!!Returns: x. (:include throws:) @@ -5584,27 +5548,81 @@ - 5 + 17 2 - (:auto !!!:) (:include synopsis:) !!!!Effects: As if [@try { throw + (:auto !!!:) The following example demonstrates how errno can be stored in exception objects using Boost Exception: [@#include <(:link 1 0 - -30 + -14 2 - (e); } catch(...) { return (:link + :)> #include <errno.h> #include <iostream> typedef boost::(:link 1 0 - -23 + -21 2 - :)(); }@] + :)<struct tag_errno,int> errno_info; //(1) class my_error: public boost::(:link + 1 + + 0 + + -10 + + + 2 + :), public std::exception { }; //(2) void f() { throw my_error() << errno_info(errno); //(3) } @] First, we instantiate the (:link + 1 + + 0 + + -21 + + + 2 + :) template using a unique identifier -- tag_errno, and the type of the info it identifies -- int. This provides compile-time type safety for the various values stored in exception objects. Second, we define class my_error, which derives from boost::(:link + 1 + + 0 + + -10 + + + 2 + :). Finally, (3) illustrates how the typedef from (1) can be used with (:link + 1 + + 0 + + -27 + + + 2 + |operator<<:) to store values in exception objects at the point of the throw. The stored errno value can be recovered at a later time like this: [@// ...continued void g() { try { f(); } catch( my_error & x ) { if( boost::shared_ptr<int const> err=boost::(:link + 1 + + 0 + + -25 + + + 2 + :)<errno_info>(x) ) std::cerr << "Error code: " << *err; } }@] The (:link + 1 + + 0 + + -25 + + + 2 + :) function template is instantiated with the typedef from (1), and is passed an exception object of a polymorphic type. If the exception object contains the requested value, the returned (:link http://www.boost.org/libs/smart_ptr/shared_ptr.htm|shared_ptr:) will point to it; otherwise an empty (:link http://www.boost.org/libs/smart_ptr/shared_ptr.htm|shared_ptr:) is returned. @@ -5628,99 +5646,54 @@ - 21 + 11 2 - (:auto !!!:) (:include synopsis:) !!!!Requirements: T must be a class with an accessible no-throw copy constructor. !!!!Returns: An object of ''unspecified'' type which derives publicly from T. That is, the returned object can be intercepted by a catch(T &). !!!!Description: This function is designed to be used directly in a throw-expression to enable the (:link + (:auto !!!:) Here is how cloning can be enabled in a throw-expression (15.1): [@#include <(:link 1 0 - -14 + -37 2 - :) support in Boost Exception. For example: [@class my_exception: public std::exception { }; .... throw boost::(:link + :)> #include <stdio.h> #include <errno.h> typedef boost::error_info<struct tag_errno,int> errno_info; class file_read_error: public boost::(:link 1 0 - -30 + -10 2 - :)(my_exception());@] Unless (:link + :) { }; void file_read( FILE * f, void * buffer, size_t size ) { if( size!=fread(buffer,1,size,f) ) throw boost::(:link 1 0 - -30 + -9 2 - :) is called at the time an exception object is used in a throw-expression, an attempt to copy it using (:link + :)(file_read_error()) << errno_info(errno); }@] Of course, (:link 1 0 - -23 + -9 2 - :) may return an (:link + :) may be used with any exception type; there is no requirement that it should derive from boost::(:link 1 0 - -14 + -10 2 - :) which refers to an instance of (:link - 1 - - 0 - - -13 - - - 2 - :). See (:link - 1 - - 0 - - -23 - - - 2 - :) for details. !!!!Note: Instead of using the throw keyword directly, it is preferable to call boost::(:link - 1 - - 0 - - -33 - - - 2 - :). This is guaranteed to throw an exception that derives from boost::(:link - 1 - - 0 - - -8 - - - 2 - :) and supports the (:link - 1 - - 0 - - -14 - - - 2 - :) functionality. + :). @@ -5731,7 +5704,9 @@ - 0 + 1 + 2 + (:auto !!:) !!!Synopsis (:include synopsis:) @@ -5742,54 +5717,7 @@ - 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 - - -30 - - - 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 - - -33 - - - 2 - :) are guaranteed to derive from boost::(:link - 1 - - 0 - - -8 - - - 2 - :) and to support cloning. (:include - 1 - - 0 - - -27 - - - 2 - :) (:include - 1 - - 0 - - -5 - - - 2 - :) + 0 @@ -5800,18 +5728,36 @@ - 13 + 11 2 - (:auto !!!:) (:include synopsis:) !!!!Requirements: E must derive publicly from std::exception. !!!!Effects: * If BOOST_NO_EXCEPTIONS is not defined, 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 1 0 - -33 + -9 2 - :)(e) is equivalent to throw boost::(:link + :) at the time of the throw is required in order to use cloning. !!!!Note: All exceptions emitted by the familiar function boost::(:link + 1 + + 0 + + -34 + + + 2 + :) are guaranteed to derive from boost::(:link + 1 + + 0 + + -10 + + + 2 + :) and to support cloning. (:include 1 0 @@ -5820,43 +5766,16 @@ 2 - :)(boost::(:link + :) (:include 1 0 - -15 + -6 2 - :)(e)), unless BOOST_EXCEPTION_DISABLE is defined, in which case boost::(:link - 1 - - 0 - - -33 - - - 2 - :)(e) is equivalent to throw e; * If BOOST_NO_EXCEPTIONS is defined, the function is left undefined, and the user is expected to supply an appropriate definition. Callers of - 1 - - 0 - - -33 - - - 2 - are allowed to assume that the function never returns; therefore, if the user-defined - 1 - - 0 - - -33 - - - 2 - returns, the behavior is undefined. + :) @@ -5867,81 +5786,63 @@ - 17 + 13 2 - (:auto !!:) Boost Exception provides a namespace-scope function (:link + (:auto !!!:) (:include synopsis:) !!!!Requirements: E must derive publicly from std::exception. !!!!Effects: * If BOOST_NO_EXCEPTIONS is not defined, boost::(:link 1 0 - -7 + -34 2 - :) which takes a boost::(:link + :)(e) is equivalent to throw boost::(:link 1 0 - -8 + -9 2 - :). The returned string contains: *the string representation of all data objects added to the boost::(:link + :)(boost::(:link 1 0 - -8 + -19 2 - :) through (:link + :)(e)), unless BOOST_EXCEPTION_DISABLE is defined, in which case boost::(:link 1 0 - -24 + -34 2 - |operator<<:); *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 + :)(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 - -35 + -34 2 - :)> #include <iostream> void f(); //throws unknown types that derive from boost::(:link + :) are allowed to assume that the function never returns; therefore, if the user-defined (:link 1 0 - -8 + -34 2 - :). void g() { try { f(); } catch( boost::(:link - 1 - - 0 - - -8 - - - 2 - :) & e ) { std::cerr << (:link - 1 - - 0 - - -7 - - - 2 - :)(e); } }@] + :) returns, the behavior is undefined. @@ -5952,9 +5853,81 @@ - 1 + 17 2 - (:auto !!:) !!!Synopsis (:include synopsis:) + (:auto !!:) Boost Exception provides a namespace-scope function (:link + 1 + + 0 + + -8 + + + 2 + :) which takes a boost::(:link + 1 + + 0 + + -10 + + + 2 + :). The returned string contains: *the string representation of all data objects added to the boost::(:link + 1 + + 0 + + -10 + + + 2 + :) through (:link + 1 + + 0 + + -27 + + + 2 + |operator<<:); *the output from std::exception::what; *additional platform-specific diagnostic information. The returned string is not presentable as a friendly user message, but because it is generated automatically, it is useful for debugging or logging purposes. Here is an example: [@#include <(:link + 1 + + 0 + + -14 + + + 2 + :)> #include <iostream> void f(); //throws unknown types that derive from boost::(:link + 1 + + 0 + + -10 + + + 2 + :). void g() { try { f(); } catch( boost::(:link + 1 + + 0 + + -10 + + + 2 + :) & e ) { std::cerr << (:link + 1 + + 0 + + -8 + + + 2 + :)(e); } }@] @@ -6022,7 +5995,7 @@ 0 - -8 + -10 2 @@ -6044,7 +6017,7 @@ 0 - -26 + -29 2 @@ -6053,7 +6026,7 @@ 0 - -17 + -21 2 @@ -6062,7 +6035,7 @@ 0 - -17 + -21 2 @@ -6071,7 +6044,7 @@ 0 - -17 + -21 2 @@ -6080,7 +6053,7 @@ 0 - -8 + -10 2 @@ -6089,7 +6062,7 @@ 0 - -21 + -25 2 @@ -6195,9 +6168,7 @@ - 1 - 2 - !!!!Throws: std::bad_alloc, or any exception emitted by T1..TN copy constructor. + 0 @@ -6230,7 +6201,9 @@ - 0 + 1 + 2 + !!!!Throws: std::bad_alloc, or any exception emitted by T1..TN copy constructor. @@ -6329,9 +6302,7 @@ - 1 - 2 - !!!!Throws: std::bad_alloc, or any exception emitted by the T copy constructor. + 0 @@ -6364,7 +6335,9 @@ - 0 + 1 + 2 + !!!!Throws: std::bad_alloc, or any exception emitted by the T copy constructor. @@ -6543,7 +6516,9 @@ - 0 + 1 + 2 + [@namespace boost { (:include api pre_indent="4":) }@] @@ -6554,9 +6529,7 @@ - 1 - 2 - [@namespace boost { (:include api pre_indent="4":) }@] + 0 @@ -6574,11 +6547,11 @@ 0 - -29 + -26 2 - :)>\\ [@namespace boost { (:include decl pre_indent="4":) }@] + :)> [@namespace boost { (:include decl pre_indent="4":) }@] @@ -6596,7 +6569,51 @@ 0 - -11 + -31 + + + 2 + :)>\\ [@namespace boost { (:include decl pre_indent="4":) }@] + + + + + 0 + + -9 + + + + 3 + 2 + `#include < + 1 + + 0 + + -13 + + + 2 + > [@namespace boost { (:include decl pre_indent="4":) }@] + + + + + 0 + + -10 + + + + 3 + 2 + `#include <(:link + 1 + + 0 + + -13 2 @@ -6607,7 +6624,7 @@ 0 - -9 + -11 @@ -6629,7 +6646,7 @@ 0 - -10 + -12 @@ -6640,7 +6657,7 @@ 0 - -22 + -26 2 @@ -6651,7 +6668,7 @@ 0 - -11 + -13 @@ -6660,59 +6677,6 @@ [@namespace boost { (:include api pre_indent="4":) }@] - - - 0 - - -12 - - - - 5 - 2 - `#include <(:link - 1 - - 0 - - -26 - - - 2 - :)> [@namespace boost { (:include - 1 - - 0 - - -12 - - - 2 - decl pre_indent="4":) }@] - - - - - 0 - - -13 - - - - 3 - 2 - `#include <(:link - 1 - - 0 - - -22 - - - 2 - :)> [@namespace boost { (:include decl pre_indent="4":) }@] - - 0 @@ -6721,18 +6685,9 @@ - 3 + 1 2 - `#include <(:link - 1 - - 0 - - -22 - - - 2 - :)> [@namespace boost { (:include decl pre_indent="4":) }@] + [@(:include api:)@] @@ -6743,18 +6698,27 @@ - 3 + 5 2 - `#include < + `#include <(:link 1 0 - -11 + -29 2 - > [@namespace boost { (:include decl pre_indent="4":) }@] + :)> [@namespace boost { (:include + 1 + + 0 + + -15 + + + 2 + decl pre_indent="4":) }@] @@ -6765,7 +6729,18 @@ - 0 + 3 + 2 + `#include <(:link + 1 + + 0 + + -26 + + + 2 + :)> [@namespace boost { (:include decl pre_indent="4":) }@] @@ -6783,11 +6758,11 @@ 0 - -37 + -26 2 - :)> [@namespace boost { (:include def pre_indent="4":) }@] + :)> [@namespace boost { (:include decl pre_indent="4":) }@] @@ -6798,7 +6773,18 @@ - 0 + 3 + 2 + `#include <(:link + 1 + + 0 + + -26 + + + 2 + :)> [@namespace boost { (:include decl pre_indent="4":) }@] @@ -6809,7 +6795,18 @@ - 0 + 3 + 2 + `#include < + 1 + + 0 + + -13 + + + 2 + > [@namespace boost { (:include decl pre_indent="4":) }@] @@ -6830,6 +6827,61 @@ -21 + + 3 + 2 + `#include <(:link + 1 + + 0 + + -37 + + + 2 + :)> [@namespace boost { (:include def pre_indent="4":) }@] + + + + + 0 + + -22 + + + + 0 + + + + + 0 + + -23 + + + + 0 + + + + + 0 + + -24 + + + + 0 + + + + + 0 + + -25 + + 3 2 @@ -6849,7 +6901,7 @@ 0 - -22 + -26 @@ -6860,7 +6912,7 @@ 0 - -11 + -13 2 @@ -6871,29 +6923,7 @@ 0 - -23 - - - - 3 - 2 - `#include <(:link - 1 - - 0 - - -22 - - - 2 - :)> [@namespace boost { (:include decl pre_indent="4":) }@] - - - - - 0 - - -24 + -27 @@ -6911,41 +6941,6 @@ :)>\\ [@namespace boost { (:include decl pre_indent="4":) }@] - - - 0 - - -25 - - - - 0 - - - - - 0 - - -26 - - - - 1 - 2 - [@#include <boost/tuple/tuple.hpp> namespace boost { (:include api pre_indent="4":) }@] - - - - - 0 - - -27 - - - - 0 - - 0 @@ -6954,18 +6949,7 @@ - 3 - 2 - `#include <(:link - 1 - - 0 - - -22 - - - 2 - :)> [@namespace boost { (:include decl pre_indent="4":) }@] + 0 @@ -6978,7 +6962,7 @@ 1 2 - [@#include <exception> #include <string> namespace boost { (:include api pre_indent="4":) }@] + [@#include <boost/tuple/tuple.hpp> namespace boost { (:include api pre_indent="4":) }@] @@ -6989,18 +6973,7 @@ - 3 - 2 - `#include < - 1 - - 0 - - -11 - - - 2 - > [@namespace boost { (:include decl pre_indent="4":) }@] + 0 @@ -7011,7 +6984,9 @@ - 0 + 1 + 2 + [@#include <exception> #include <string> namespace boost { (:include api pre_indent="4":) }@] @@ -7032,6 +7007,17 @@ -33 + + 0 + + + + + 0 + + -34 + + 3 2 @@ -7044,18 +7030,7 @@ 2 - :)> [@namespace boost { (:include decl pre_indent="4":) }@] - - - - - 0 - - -34 - - - - 0 + :)> [@namespace boost { (:include decl:) }@] @@ -7066,9 +7041,7 @@ - 1 - 2 - [@(:include api:)@] + 0 @@ -7099,7 +7072,7 @@ 0 - -11 + -13 2 @@ -7286,23 +7259,6 @@ 37 - - - - - 0 - - - - - - 1 - - - - -31 - - @@ -7334,7 +7290,24 @@ - -16 + -33 + + + + + + + 0 + + + + + + 1 + + + + -20 @@ -7375,7 +7348,7 @@ - -11 + -13 @@ -7403,7 +7376,7 @@ - -8 + -10 @@ -7435,7 +7408,7 @@ - -18 + -22 @@ -7491,7 +7464,7 @@ - -30 + -9 @@ -7519,7 +7492,7 @@ - -15 + -19 @@ -7543,7 +7516,7 @@ - -5 + -6 @@ -7591,7 +7564,7 @@ - -29 + -31 @@ -7615,7 +7588,7 @@ - -19 + -23 @@ -7643,7 +7616,7 @@ - -7 + -8 @@ -7667,7 +7640,7 @@ - -9 + -11 @@ -7691,7 +7664,31 @@ - -34 + -35 + + + + + + + 1 + 67D64FAD0AB7CA6B2173A14F363D19B27F59EEBDB5C1076F8BCCA1B54D4CCD7D + 2241687287 + 303 + 323 + + + + + + 0 + ../../../../boost/exception.hpp + 0 + 0 + + + + -14 @@ -7719,7 +7716,7 @@ - -17 + -21 @@ -7747,7 +7744,7 @@ - -24 + -27 @@ -7775,7 +7772,7 @@ - -33 + -34 @@ -7803,7 +7800,7 @@ - -21 + -25 @@ -7851,7 +7848,7 @@ - -26 + -29 @@ -7875,7 +7872,7 @@ - -27 + -30 @@ -7899,7 +7896,7 @@ - -22 + -26 @@ -7923,7 +7920,7 @@ - -20 + -24 @@ -7951,7 +7948,7 @@ - -23 + -18 @@ -7979,7 +7976,7 @@ - -14 + -17 @@ -8007,7 +8004,7 @@ - -13 + -16 @@ -8035,7 +8032,7 @@ - -10 + -12 @@ -8063,7 +8060,7 @@ - -28 + -7 @@ -8115,7 +8112,7 @@ - -6 + -5 @@ -8143,7 +8140,7 @@ - -12 + -15 @@ -8167,7 +8164,7 @@ - -25 + -28 @@ -8194,30 +8191,6 @@ -41 - - - - - 1 - 6AF18E00A3BB3D35F83A4F81619F7BD079E08E2BF3F4CE6F218045A2DF9701FA - 348421341 - 341 - 323 - - - - - - 0 - ../../../../boost/exception.hpp - 0 - 0 - - - - -35 - - @@ -8246,7 +8219,7 @@ -5 - noalso noindex tutorial + @@ -8255,7 +8228,7 @@ -6 - + noalso noindex tutorial @@ -8264,7 +8237,7 @@ -7 - diagnostic_information free function + exception_ptr free function @@ -8273,7 +8246,7 @@ -8 - type + diagnostic_information free function @@ -8282,7 +8255,7 @@ -9 - + exception_ptr free function @@ -8291,7 +8264,7 @@ -10 - exception_ptr free function + type @@ -8309,7 +8282,7 @@ -12 - error_info free function + exception_ptr free function @@ -8318,7 +8291,7 @@ -13 - exception_ptr type + @@ -8327,7 +8300,7 @@ -14 - type + @@ -8345,7 +8318,7 @@ -16 - tutorial + exception_ptr type @@ -8363,7 +8336,7 @@ -18 - function + exception_ptr free function @@ -8372,7 +8345,7 @@ -19 - tutorial + error_info free function @@ -8381,7 +8354,7 @@ -20 - noalso noindex tutorial + tutorial @@ -8390,7 +8363,7 @@ -21 - error_info free function + type @@ -8399,7 +8372,7 @@ -22 - + function @@ -8408,7 +8381,7 @@ -23 - exception_ptr free function + tutorial @@ -8417,7 +8390,7 @@ -24 - error_info free function + noalso noindex tutorial @@ -8426,7 +8399,7 @@ -25 - noalso noindex tutorial + error_info free function @@ -8444,7 +8417,7 @@ -27 - noalso noindex tutorial + error_info free function @@ -8453,7 +8426,7 @@ -28 - exception_ptr free function + noalso noindex tutorial @@ -8471,7 +8444,7 @@ -30 - exception_ptr free function + noalso noindex tutorial @@ -8480,7 +8453,7 @@ -31 - noindex + @@ -8489,7 +8462,7 @@ -32 - tutorial + noindex @@ -8498,7 +8471,7 @@ -33 - free function + tutorial @@ -8507,7 +8480,7 @@ -34 - diagnostic_information tutorial + free function @@ -8516,7 +8489,7 @@ -35 - + diagnostic_information tutorial diff --git a/doc/throw_exception.html b/doc/throw_exception.html index d9eee8f..ab789e9 100644 --- a/doc/throw_exception.html +++ b/doc/throw_exception.html @@ -25,12 +25,12 @@
namespace
 boost
     {
-    #ifdef BOOST_NO_EXCEPTIONS
-        void throw_exception( std::exception const & e ); // user defined
-    #else
-        template <class E>
-        void throw_exception( E const & e );
-    #endif
+#ifdef BOOST_NO_EXCEPTIONS
+    void throw_exception( std::exception const & e ); // user defined
+#else
+    template <class E>
+    void throw_exception( E const & e );
+#endif
     }

Requirements:

E must derive publicly from std::exception.

diff --git a/doc/throw_exception_hpp.html b/doc/throw_exception_hpp.html index 462b3e1..659f4cd 100644 --- a/doc/throw_exception_hpp.html +++ b/doc/throw_exception_hpp.html @@ -34,17 +34,20 @@ #define BOOST_THROW_EXCEPTION(x) ::boost::throw_exception(x) #endif +namespace +boost + { #ifdef BOOST_NO_EXCEPTIONS void throw_exception( std::exception const & e ); // user defined #else template <class E> void throw_exception( E const & e ); -#endif +#endif + }