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
c165bd15c5017137db38e149c8c8b68f1233fa96- Author
- Martin Hořeňovský ·
- Parents
4f0de7bbadc6
Changes
src/catch2/catch_stream.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/catch2/catch_stream.h b/src/catch2/catch_stream.h index 2b41adbd..999849c9 100644 --- a/src/catch2/catch_stream.h +++ b/src/catch2/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: