Files
openmethod/doc/basic_error_output.adoc
Jean-Louis Leroy 5e0fa8ee4b inception
2025-03-08 15:31:25 -05:00

35 lines
667 B
Plaintext

## basic_error_output
### Synopsis
Defined in <boost/openmethod/policies/basic_error_output.hpp>.
```c++
namespace boost::openmethod::policies {
template<class Policy, typename Stream = /*unspecified*/>
struct basic_error_output : virtual error_output {
static Stream error_stream;
};
}
```
### Description
`basic_error_output` is an implementation of `error_output` that writes error
messages to a `RestrictedOutputStream`.
### Members
#### error_stream
```c++
Stream error_stream;
```
Initialized by the default constructor of `Stream`. It is the responsibility of
the program to initializate it if needed, e.g., for a `std::ofstream`, to open
it.