catch3
Progmasoft Catch3: an independently maintained C++17 test framework with a parallel runner, property checks, snapshots and structured results.
Clonegit clone https://git.progmasoft.com/catch3
Forbid copying ReusableStringStream
- Commit
95bfb331674ffe5abd411ddaceb86896f97dca08- Author
- Martin Hořeňovský ·
- Parents
59d2d08c0fb1
Changes
include/internal/catch_stream.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/internal/catch_stream.h b/include/internal/catch_stream.h index 2b41adbd..999849c9 100644 --- a/include/internal/catch_stream.h +++ b/include/internal/catch_stream.h @@ -9,6 +9,8 @@ #ifndef TWOBLUECUBES_CATCH_STREAM_H_INCLUDED #define TWOBLUECUBES_CATCH_STREAM_H_INCLUDED +#include "catch_common.h" + #include <iosfwd> #include <cstddef> #include <ostream> @@ -28,7 +30,7 @@ namespace Catch { auto makeStream( StringRef const &filename ) -> IStream const*; - class ReusableStringStream { + class ReusableStringStream : NonCopyable { std::size_t m_index; std::ostream* m_oss; public: