forked from boostorg/system
Update documentation
This commit is contained in:
@ -11,7 +11,7 @@ https://www.boost.org/LICENSE_1_0.txt
|
|||||||
## Changes in Boost 1.78
|
## Changes in Boost 1.78
|
||||||
|
|
||||||
* Added support for source locations to `error_code`.
|
* 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.
|
* `system_error::what()` now contains the source location, if present.
|
||||||
* Added `result<T, E = error_code>`, a class holding either a value or an
|
* Added `result<T, E = error_code>`, a class holding either a value or an
|
||||||
error, defined in `<boost/system/result.hpp>`.
|
error, defined in `<boost/system/result.hpp>`.
|
||||||
|
@ -1096,6 +1096,10 @@ public:
|
|||||||
|
|
||||||
operator std::error_condition() const;
|
operator std::error_condition() const;
|
||||||
|
|
||||||
|
// to_string
|
||||||
|
|
||||||
|
std::string to_string() const;
|
||||||
|
|
||||||
// stream insertion
|
// stream insertion
|
||||||
|
|
||||||
template <class charT, class traits>
|
template <class charT, class traits>
|
||||||
@ -1284,6 +1288,17 @@ operator std::error_condition() const;
|
|||||||
Returns: ::
|
Returns: ::
|
||||||
`std::error_condition( value(), category() )`.
|
`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
|
#### Stream Insertion
|
||||||
|
|
||||||
```
|
```
|
||||||
@ -1294,7 +1309,7 @@ template <class charT, class traits>
|
|||||||
[none]
|
[none]
|
||||||
* {blank}
|
* {blank}
|
||||||
+
|
+
|
||||||
Effects: :: `os << "cond:" << en.category().name() << ':' << en.value()`.
|
Effects: :: `os << en.to_string()`.
|
||||||
Returns: ::
|
Returns: ::
|
||||||
`os`.
|
`os`.
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user