MCPcopy Create free account
hub / github.com/InteractiveComputerGraphics/TriangleMeshDistance / RedirectedStream

Method RedirectedStream

tests/catch.hpp:9562–9568  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9560namespace Catch {
9561
9562 RedirectedStream::RedirectedStream( std::ostream& originalStream, std::ostream& redirectionStream )
9563 : m_originalStream( originalStream ),
9564 m_redirectionStream( redirectionStream ),
9565 m_prevBuf( m_originalStream.rdbuf() )
9566 {
9567 m_originalStream.rdbuf( m_redirectionStream.rdbuf() );
9568 }
9569
9570 RedirectedStream::~RedirectedStream() {
9571 m_originalStream.rdbuf( m_prevBuf );

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected