Progmasoft Git

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

Use CATCH_AUTO_PTR in DebugOutStream

Commit
5e0db60443e666b02c30728ab275dc52e328d98f
Author
Phil Nash ·
Parents
ce547c179939

Files · Download .tar.gz

Changes

 include/internal/catch_stream.h | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/include/internal/catch_stream.h b/include/internal/catch_stream.h
index 5f22ad67..d8deebab 100644
--- a/include/internal/catch_stream.h
+++ b/include/internal/catch_stream.h
@@ -15,6 +15,7 @@
 #include <streambuf>
 #include <ostream>
 #include <fstream>
+#include <memory>
 
 namespace Catch {
 
@@ -49,7 +50,7 @@ namespace Catch {
 
 
     class DebugOutStream : public IStream {
-        std::auto_ptr<StreamBufBase> m_streamBuf;
+        CATCH_AUTO_PTR( StreamBufBase ) m_streamBuf;
         mutable std::ostream m_os;
     public:
         DebugOutStream();