Update documentation

This commit is contained in:
Peter Dimov
2022-02-03 18:47:53 +02:00
parent a5d68e52e6
commit cf9d986871
2 changed files with 14 additions and 0 deletions

View File

@ -8,6 +8,10 @@ https://www.boost.org/LICENSE_1_0.txt
# Revision History
:idprefix:
## Changes in Boost 1.79
* Added a `throw_exception_from_error` overload for `std::error_code`.
## Changes in Boost 1.78
* Added support for source locations to `error_code`.

View File

@ -1455,6 +1455,7 @@ namespace system {
// throw_exception_from_error
BOOST_NORETURN inline void throw_exception_from_error( error_code const & e );
BOOST_NORETURN inline void throw_exception_from_error( std::error_code const & e );
// in_place_*
@ -1494,6 +1495,15 @@ BOOST_NORETURN inline void throw_exception_from_error( error_code const & e );
Effects: ::
`boost::throw_exception( system_error( e ) )`.
```
BOOST_NORETURN inline void throw_exception_from_error( std::error_code const & e );
```
[none]
* {blank}
+
Effects: ::
`boost::throw_exception( std::system_error( e ) )`.
### result<T, E>
`result<T, E>` stores either a value of type `T`, or an error of type `E`. `E` defaults