kentsangkm 9b3189fce0 Resolved #359
Eclipse indexer did not handle the ->* operator correctly and display
error in the editor, whereas it actually is not a bug. Changing the
operator from operator->* to operator+ can resolve this problem.

Proof of concept:
Prority 3   operator+       Right-to-left
Prority 4   operator->*     Left-to-right

where:
__catchResult+expr

Supported operator in expr:
Prority 3   +
Prority 3   -
Prority 3   /
Prority 3   *
Prority 13   &&
*STATIC_ASSERT_Expression_Too_Complex_Please_Rewrite_As_Binary_Comparison
Prority 14   ||
*STATIC_ASSERT_Expression_Too_Complex_Please_Rewrite_As_Binary_Comparison

__catchResult + _1Obj   operand1 _2Obj .... _NObj
=> (__catchResult + _1Obj) operand1 _2Obj .... _NObj
=> ExpressionLhs<T>        operand1 _2Obj .... _NObj
Hence, the change is OK
2015-03-26 19:50:54 +08:00
2015-03-26 19:50:54 +08:00
2015-03-26 19:50:54 +08:00
2014-04-17 07:38:10 +01:00
2013-03-21 19:12:21 +00:00
2013-11-07 13:05:29 +01:00

catch logo

v1.0 build 53 (master branch)

Build status (on Travis CI) Build Status

Please see this page if you are updating from a version before 1.0

What's the Catch?

Catch stands for C++ Automated Test Cases in Headers and is a multi-paradigm automated test framework for C++ and Objective-C (and, maybe, C). It is implemented entirely in a set of header files, but is packaged up as a single header for extra convenience.

How to use it

This documentation comprises these three parts:

The documentation will continue until morale improves

More

Description
A modern, C++-native, test framework for unit-tests, TDD and BDD - using C++14, C++17 and later (C++11 support is in v2.x branch, and C++03 on the Catch1.x branch)
Readme 65 MiB
Languages
C++ 90.2%
CMake 5.4%
Python 3.2%
Meson 0.7%
Starlark 0.3%