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

Regenerated single_include

Commit
4021d65f6401e9765e37f2cc1059ccd698fdfc98
Author
Phil Nash ·
Parents
3723b527f535

Files · Download .tar.gz

Changes

 single_include/catch.hpp | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)

diff --git a/single_include/catch.hpp b/single_include/catch.hpp
index 3b487bb2..c905ec6f 100644
--- a/single_include/catch.hpp
+++ b/single_include/catch.hpp
@@ -1508,6 +1508,16 @@ private:
         return *this;
     }
 
+    ///////////////////////////////////////////////////////////////////////////
+    template<Internal::Operator Op, typename T>
+    MutableResultInfo& captureExpression
+    (
+        const T* lhs,
+        int rhs
+    )
+    {
+        return captureExpression<Op>( lhs, reinterpret_cast<const T*>( rhs ) );
+    }
 };
 
 template<typename T>
@@ -1712,7 +1722,7 @@ public:
     ///////////////////////////////////////////////////////////////////////////
     Expression<const char*> operator->*
     (
-        const char* operand
+        const char* const& operand
      )
     {
         Expression<const char*> expr( m_result, operand );