mirror of
https://github.com/boostorg/system.git
synced 2025-07-30 12:37:13 +02:00
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`, `error_condition::to_string`.
|
* Added `error_code::to_string`, `error_condition::to_string`, `error_code::what`.
|
||||||
* `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>`.
|
||||||
|
@ -668,6 +668,10 @@ public:
|
|||||||
template<class charT, class traits>
|
template<class charT, class traits>
|
||||||
friend std::basic_ostream<charT, traits>&
|
friend std::basic_ostream<charT, traits>&
|
||||||
operator<<( basic_ostream<charT, traits>& os, const error_code & ec );
|
operator<<( basic_ostream<charT, traits>& os, const error_code & ec );
|
||||||
|
|
||||||
|
// what
|
||||||
|
|
||||||
|
std::string what() const;
|
||||||
};
|
};
|
||||||
|
|
||||||
// non-member functions
|
// non-member functions
|
||||||
@ -1054,6 +1058,18 @@ template <class charT, class traits>
|
|||||||
Effects: :: `os << to_string()`.
|
Effects: :: `os << to_string()`.
|
||||||
Returns: :: `os`.
|
Returns: :: `os`.
|
||||||
|
|
||||||
|
#### what
|
||||||
|
|
||||||
|
```
|
||||||
|
std::string what() const;
|
||||||
|
```
|
||||||
|
[none]
|
||||||
|
* {blank}
|
||||||
|
+
|
||||||
|
Returns: :: A string representation of `*this`, suitable for logging and
|
||||||
|
diagnostic output. Typically incorporates `message()`, `to_string()`, and
|
||||||
|
`location().to_string()` (if available.)
|
||||||
|
|
||||||
#### Nonmembers
|
#### Nonmembers
|
||||||
|
|
||||||
```
|
```
|
||||||
|
Reference in New Issue
Block a user