Expression has its own result builder - not passed in from expression builder
This commit is contained in:
parent
e3b111a39a
commit
f2d5f1b3e4
2 changed files with 11 additions and 20 deletions
|
@ -16,24 +16,14 @@ namespace Catch {
|
|||
class ExpressionBuilder {
|
||||
public:
|
||||
|
||||
ExpressionBuilder( bool isFalse = false )
|
||||
{
|
||||
m_result.setIsFalse( isFalse );
|
||||
}
|
||||
|
||||
template<typename T>
|
||||
Expression<const T&> operator->* ( const T & operand ) {
|
||||
Expression<const T&> expr( m_result, operand );
|
||||
return expr;
|
||||
return Expression<const T&>( operand );
|
||||
}
|
||||
|
||||
Expression<bool> operator->* ( bool value ) {
|
||||
Expression<bool> expr( m_result, value );
|
||||
return expr;
|
||||
return Expression<bool>( value );
|
||||
}
|
||||
|
||||
private:
|
||||
AssertionResultBuilder m_result;
|
||||
};
|
||||
|
||||
} // end namespace Catch
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue