Read-only mirrors. Development, issues and pull requests are on GitHub.

summaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorPhil Nash2011-08-09 08:18:27 +0100
committerPhil Nash2011-08-09 08:18:27 +0100
commit4d0a8d96e63663a36a212ee51ff3011c03fda718 (patch)
tree3e7dd1ead493b637ff5dc9cfe179851ea85cff4d /include
parent4021d65f6401e9765e37f2cc1059ccd698fdfc98 (diff)
downloadcatch3-4d0a8d96e63663a36a212ee51ff3011c03fda718.tar.gz
Fixed issue with evaluating static bools
Diffstat (limited to 'include')
-rw-r--r--include/internal/catch_capture.hpp28
1 files changed, 28 insertions, 0 deletions
diff --git a/include/internal/catch_capture.hpp b/include/internal/catch_capture.hpp
index 6ae888c5..e049d7f5 100644
--- a/include/internal/catch_capture.hpp
+++ b/include/internal/catch_capture.hpp
@@ -435,6 +435,24 @@ public:
}
///////////////////////////////////////////////////////////////////////////
+ MutableResultInfo& operator ==
+ (
+ bool rhs
+ )
+ {
+ return m_result.captureExpression<Internal::IsEqualTo>( m_lhs, rhs );
+ }
+
+ ///////////////////////////////////////////////////////////////////////////
+ MutableResultInfo& operator !=
+ (
+ bool rhs
+ )
+ {
+ return m_result.captureExpression<Internal::IsNotEqualTo>( m_lhs, rhs );
+ }
+
+ ///////////////////////////////////////////////////////////////////////////
operator MutableResultInfo&
()
{
@@ -592,6 +610,16 @@ public:
}
///////////////////////////////////////////////////////////////////////////
+ Expression<bool> operator->*
+ (
+ bool value
+ )
+ {
+ Expression<bool> expr( m_result, value );
+ return expr;
+ }
+
+ ///////////////////////////////////////////////////////////////////////////
template<typename T>
ResultBuilder& operator <<
(