Update documentation

This commit is contained in:
Peter Dimov
2021-09-19 15:53:13 +03:00
parent abb13e707d
commit b39f239b3d
2 changed files with 17 additions and 2 deletions

View File

@ -11,7 +11,7 @@ https://www.boost.org/LICENSE_1_0.txt
## Changes in Boost 1.78
* Added support for source locations to `error_code`.
* Added `error_code::to_string`.
* Added `error_code::to_string`, `error_condition::to_string`.
* `system_error::what()` now contains the source location, if present.
* Added `result<T, E = error_code>`, a class holding either a value or an
error, defined in `<boost/system/result.hpp>`.

View File

@ -1096,6 +1096,10 @@ public:
operator std::error_condition() const;
// to_string
std::string to_string() const;
// stream insertion
template <class charT, class traits>
@ -1284,6 +1288,17 @@ operator std::error_condition() const;
Returns: ::
`std::error_condition( value(), category() )`.
#### to_string
```
std::string to_string() const;
```
[none]
* {blank}
+
Returns: :: The concatenation of `"cond:"`, `category().name()`, `':'`,
and the string representation of `value()`.
#### Stream Insertion
```
@ -1294,7 +1309,7 @@ template <class charT, class traits>
[none]
* {blank}
+
Effects: :: `os << "cond:" << en.category().name() << ':' << en.value()`.
Effects: :: `os << en.to_string()`.
Returns: ::
`os`.