diff options
| author | Phil Nash | 2015-11-03 17:37:43 +0000 |
|---|---|---|
| committer | Phil Nash | 2015-11-03 17:37:43 +0000 |
| commit | ece529ae7cd5fe15d698986aabdd5faf23e333f8 (patch) | |
| tree | 1c1efae763445cf4444bf8675f1d94cd53b88592 /include | |
| parent | 9e42153fe5eab3ae46c2a7c9e110383bbec5d0ea (diff) | |
| download | catch3-ece529ae7cd5fe15d698986aabdd5faf23e333f8.tar.gz | |
Fixed noexcept destructors issue
Diffstat (limited to 'include')
| -rw-r--r-- | include/internal/catch_impl.hpp | 3 | ||||
| -rw-r--r-- | include/internal/catch_stream.h | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/include/internal/catch_impl.hpp b/include/internal/catch_impl.hpp index baabd7ab..74ac775e 100644 --- a/include/internal/catch_impl.hpp +++ b/include/internal/catch_impl.hpp @@ -49,6 +49,9 @@ namespace Catch { NonCopyable::~NonCopyable() {} IShared::~IShared() {} IStream::~IStream() CATCH_NOEXCEPT {} + FileStream::~FileStream() CATCH_NOEXCEPT {} + CoutStream::~CoutStream() CATCH_NOEXCEPT {} + DebugOutStream::~DebugOutStream() CATCH_NOEXCEPT {} StreamBufBase::~StreamBufBase() CATCH_NOEXCEPT {} IContext::~IContext() {} IResultCapture::~IResultCapture() {} diff --git a/include/internal/catch_stream.h b/include/internal/catch_stream.h index a69c841e..20acaff6 100644 --- a/include/internal/catch_stream.h +++ b/include/internal/catch_stream.h @@ -31,6 +31,7 @@ namespace Catch { mutable std::ofstream m_ofs; public: FileStream( std::string const& filename ); + virtual ~FileStream() CATCH_NOEXCEPT; public: // IStream virtual std::ostream& stream() const CATCH_OVERRIDE; }; @@ -40,6 +41,7 @@ namespace Catch { mutable std::ostream m_os; public: CoutStream(); + virtual ~CoutStream() CATCH_NOEXCEPT; public: // IStream virtual std::ostream& stream() const CATCH_OVERRIDE; @@ -51,6 +53,7 @@ namespace Catch { mutable std::ostream m_os; public: DebugOutStream(); + virtual ~DebugOutStream() CATCH_NOEXCEPT; public: // IStream virtual std::ostream& stream() const CATCH_OVERRIDE; |