mirror of
https://github.com/catchorg/Catch2.git
synced 2025-06-03 18:37:56 +00:00
Use <= operator instead of ->* for decomposer
Allows more complex LHS expressions - and works around an Eclipse bug. See Issues #359, #393 and #247 for details
This commit is contained in:
parent
c51e86819d
commit
8cc1108f2b
3 changed files with 7 additions and 5 deletions
|
@ -33,7 +33,7 @@
|
|||
do { \
|
||||
Catch::ResultBuilder __catchResult( macroName, CATCH_INTERNAL_LINEINFO, #expr, resultDisposition ); \
|
||||
try { \
|
||||
( __catchResult->*expr ).endExpression(); \
|
||||
( __catchResult <= expr ).endExpression(); \
|
||||
} \
|
||||
catch( ... ) { \
|
||||
__catchResult.useActiveException( Catch::ResultDisposition::Normal ); \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue