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

summaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorPhil Nash2011-06-29 19:22:56 +0100
committerPhil Nash2011-06-29 19:22:56 +0100
commit1adebefb50d33569d792daed16c541949358b7cd (patch)
treea9e94e0bfab9fbc9296c7624d0847e743ce0176d /include
parentb5fabcb26b3aa02bf6ca0946060f0e5976715b95 (diff)
downloadcatch3-1adebefb50d33569d792daed16c541949358b7cd.tar.gz
Fixed tests with string literal on lhs
Diffstat (limited to 'include')
-rw-r--r--include/catch.hpp2
-rw-r--r--include/internal/catch_capture.hpp11
2 files changed, 12 insertions, 1 deletions
diff --git a/include/catch.hpp b/include/catch.hpp
index 4925e334..5a297ede 100644
--- a/include/catch.hpp
+++ b/include/catch.hpp
@@ -15,7 +15,7 @@
Next:
Later:
- Finish command line parser (list as xml, specify FP tolerance)
+ Finish command line parser (list as xml)
Tags?
Finish macros, listed here, later (just CHECK_NOFAIL now)
*/
diff --git a/include/internal/catch_capture.hpp b/include/internal/catch_capture.hpp
index 705e4ff7..f9bb54fe 100644
--- a/include/internal/catch_capture.hpp
+++ b/include/internal/catch_capture.hpp
@@ -547,6 +547,17 @@ public:
}
///////////////////////////////////////////////////////////////////////////
+ Expression<const char*> operator->*
+ (
+ const char* operand
+ )
+ {
+ Expression<const char*> expr( m_result, operand );
+
+ return expr;
+ }
+
+ ///////////////////////////////////////////////////////////////////////////
template<typename T>
PtrExpression<T> operator->*
(