diff --git a/include/internal/catch_capture.hpp b/include/internal/catch_capture.hpp index f9bb54fe..6ae888c5 100644 --- a/include/internal/catch_capture.hpp +++ b/include/internal/catch_capture.hpp @@ -344,7 +344,17 @@ private: m_op = Internal::OperatorTraits::getName(); return *this; } - + + /////////////////////////////////////////////////////////////////////////// + template + MutableResultInfo& captureExpression + ( + const T* lhs, + int rhs + ) + { + return captureExpression( lhs, reinterpret_cast( rhs ) ); + } }; template @@ -549,7 +559,7 @@ public: /////////////////////////////////////////////////////////////////////////// Expression operator->* ( - const char* operand + const char* const& operand ) { Expression expr( m_result, operand );