diff --git a/src/catch2/reporters/catch_reporter_cumulative_base.cpp b/src/catch2/reporters/catch_reporter_cumulative_base.cpp index 67154d95..5a25ab9b 100644 --- a/src/catch2/reporters/catch_reporter_cumulative_base.cpp +++ b/src/catch2/reporters/catch_reporter_cumulative_base.cpp @@ -57,7 +57,7 @@ namespace Catch { } m_deepestSection = node.get(); - m_sectionStack.push_back( std::move(node) ); + m_sectionStack.push_back( node.get() ); } bool CumulativeReporterBase::assertionEnded( diff --git a/src/catch2/reporters/catch_reporter_cumulative_base.hpp b/src/catch2/reporters/catch_reporter_cumulative_base.hpp index 94b4c589..7f228420 100644 --- a/src/catch2/reporters/catch_reporter_cumulative_base.hpp +++ b/src/catch2/reporters/catch_reporter_cumulative_base.hpp @@ -80,7 +80,7 @@ namespace Catch { std::shared_ptr m_rootSection; SectionNode* m_deepestSection = nullptr; - std::vector> m_sectionStack; + std::vector m_sectionStack; }; } // end namespace Catch