From 88f7c2bf530b31e5acd6f9b93b7ddf38aeea94e5 Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Sun, 13 Jun 2021 04:47:19 +0300 Subject: [PATCH] Revert "Update documentation" This reverts commit 8962c9101a62f8c1b2d1471bdcb3e1c1d8d3a709. --- doc/system/reference.adoc | 51 ++++++++++++++------------------------- 1 file changed, 18 insertions(+), 33 deletions(-) diff --git a/doc/system/reference.adoc b/doc/system/reference.adoc index ca164b6..5dbf889 100644 --- a/doc/system/reference.adoc +++ b/doc/system/reference.adoc @@ -670,16 +670,13 @@ namespace boost { constexpr const error_category & category() const noexcept; std::string message() const; + char const * message( char * buffer, std::size_t len ) const noexcept; + constexpr bool failed() const noexcept; constexpr explicit operator bool() const noexcept; operator std::error_condition() const; - // deprecated members; do not use - - char const * message( char * buffer, std::size_t len ) const noexcept; - constexpr bool failed() const noexcept; - private: // exposition only int val_; @@ -774,25 +771,6 @@ std::string message() const; + Returns: :: `cat_\->message( val_ )`. -``` -constexpr explicit operator bool() const noexcept; -``` -[none] -* {blank} -+ -Returns: :: `value() != 0`. - -``` -operator std::error_condition() const; -``` -[none] -* {blank} -+ -Returns: :: - `std::error_condition( val_, *cat_ )`. - -#### Deprecated members - ``` char const * message( char * buffer, std::size_t len ) const noexcept; ``` @@ -801,11 +779,6 @@ char const * message( char * buffer, std::size_t len ) const noexcept; + Returns: :: `cat_\->message( val_, buffer, len )`. -WARNING: This member function is deprecated and will be removed. This is done - for compatibility with `std::error_condition` as the next release is - expected to improve interoperability with `` even further. - _Note that this does not affect_ `error_code::message`. - ``` constexpr bool failed() const noexcept; ``` @@ -814,10 +787,22 @@ constexpr bool failed() const noexcept; + Returns: :: `cat_\->failed( val_ )`. -WARNING: This member function is deprecated and will be removed. This is done - for compatibility with `std::error_condition` as the next release is - expected to improve interoperability with `` even further. - _Note that this does not affect_ `error_code::failed`. +``` +constexpr explicit operator bool() const noexcept; +``` +[none] +* {blank} ++ +Returns: :: `failed()`. + +``` +operator std::error_condition() const; +``` +[none] +* {blank} ++ +Returns: :: + `std::error_condition( val_, *cat_ )`. ### Nonmember functions