diff --git a/tests/outputcheck.h b/tests/outputcheck.h index 1118dc9..70d99a4 100644 --- a/tests/outputcheck.h +++ b/tests/outputcheck.h @@ -21,7 +21,7 @@ public: OutputCheck(const std::string &expectedOutput, std::ostream &os = std::cout); OutputCheck(std::string &&expectedOutput, std::string &&alternativeOutput, std::ostream &os = std::cout); OutputCheck(std::function &&customCheck, std::ostream &os = std::cout); - ~OutputCheck(); + ~OutputCheck() noexcept(false); private: std::ostream &m_os; @@ -69,7 +69,7 @@ inline OutputCheck::OutputCheck(std::function &&custo /*! * \brief Asserts the buffered standard output and restores the regular behaviour of std::cout. */ -inline OutputCheck::~OutputCheck() +inline OutputCheck::~OutputCheck() noexcept(false) { m_os.rdbuf(m_regularOutputBuffer); if (m_customCheck) {