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
1 changed files with 12 additions and 2 deletions

View File

@ -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 );