-
Alessandro Di Federico authored
`StreamWrapper` is a class that wraps a stream of any type. It has a `flush` method, that, when called with a `std::stringstream` copies all of its content in the wrapped stream. The main reason for having `StreamWrapper` is being able to have a `dumpInternal` method in a `.cpp` file while preserving a stream-agnostic `dump` method in the header.
Alessandro Di Federico authored`StreamWrapper` is a class that wraps a stream of any type. It has a `flush` method, that, when called with a `std::stringstream` copies all of its content in the wrapped stream. The main reason for having `StreamWrapper` is being able to have a `dumpInternal` method in a `.cpp` file while preserving a stream-agnostic `dump` method in the header.
Loading