From cf9d986871fe1b250ea25e156d12818644be4101 Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Thu, 3 Feb 2022 18:47:53 +0200 Subject: [PATCH] Update documentation --- doc/system/changes.adoc | 4 ++++ doc/system/reference.adoc | 10 ++++++++++ 2 files changed, 14 insertions(+) diff --git a/doc/system/changes.adoc b/doc/system/changes.adoc index 3caa1c2..a4fe1d7 100644 --- a/doc/system/changes.adoc +++ b/doc/system/changes.adoc @@ -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`. diff --git a/doc/system/reference.adoc b/doc/system/reference.adoc index d346544..57566bb 100644 --- a/doc/system/reference.adoc +++ b/doc/system/reference.adoc @@ -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 `result` stores either a value of type `T`, or an error of type `E`. `E` defaults