From 3723b527f53527b06cba93010d6a1dbbc5014668 Mon Sep 17 00:00:00 2001 From: Phil Nash Date: Fri, 15 Jul 2011 08:07:44 +0100 Subject: [PATCH] Some fixes for string literals on LHS --- include/internal/catch_capture.hpp | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) 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 );