mirror of
				https://github.com/catchorg/Catch2.git
				synced 2025-10-31 20:27:11 +01:00 
			
		
		
		
	Some fixes for string literals on LHS
This commit is contained in:
		| @@ -344,7 +344,17 @@ private: | ||||
|         m_op = Internal::OperatorTraits<Op>::getName(); | ||||
|         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> | ||||
| @@ -549,7 +559,7 @@ public: | ||||
|     /////////////////////////////////////////////////////////////////////////// | ||||
|     Expression<const char*> operator->* | ||||
|     ( | ||||
|         const char* operand | ||||
|         const char* const& operand | ||||
|      ) | ||||
|     { | ||||
|         Expression<const char*> expr( m_result, operand ); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Phil Nash
					Phil Nash