Some fixes for string literals on LHS

This commit is contained in:
Phil Nash 2011-07-15 08:07:44 +01:00
parent d6566f9d2f
commit 3723b527f5

View File

@ -344,7 +344,17 @@ private:
m_op = Internal::OperatorTraits<Op>::getName(); m_op = Internal::OperatorTraits<Op>::getName();
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 );