"test" expression using !! instead of static_cast to bool.

This addresses #657 while (hopefully) maintaining fix for #574
This commit is contained in:
Phil Nash 2016-05-12 19:17:55 +01:00
parent ebf9f3bb9d
commit 7940d58a2f
1 changed files with 1 additions and 1 deletions

View File

@ -40,7 +40,7 @@
__catchResult.useActiveException( Catch::ResultDisposition::Normal ); \
} \
INTERNAL_CATCH_REACT( __catchResult ) \
} while( Catch::isTrue( false && static_cast<bool>(expr) ) ) // expr here is never evaluated at runtime but it forces the compiler to give it a look
} while( Catch::isTrue( false && !!(expr) ) ) // expr here is never evaluated at runtime but it forces the compiler to give it a look
///////////////////////////////////////////////////////////////////////////////
#define INTERNAL_CATCH_IF( expr, resultDisposition, macroName ) \