Skip to content
  • Alessandro Di Federico's avatar
    8eb532d7
    Introduce `StreamWrapper` · 8eb532d7
    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.
    8eb532d7
    Introduce `StreamWrapper`
    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