mirror of
https://github.com/catchorg/Catch2.git
synced 2024-11-26 15:26:11 +01:00
Some fixes for string literals on LHS
This commit is contained in:
parent
d6566f9d2f
commit
3723b527f5
@ -345,6 +345,16 @@ private:
|
|||||||
return *this;
|
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>
|
template<typename T>
|
||||||
@ -549,7 +559,7 @@ public:
|
|||||||
///////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////
|
||||||
Expression<const char*> operator->*
|
Expression<const char*> operator->*
|
||||||
(
|
(
|
||||||
const char* operand
|
const char* const& operand
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
Expression<const char*> expr( m_result, operand );
|
Expression<const char*> expr( m_result, operand );
|
||||||
|
Loading…
Reference in New Issue
Block a user