You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Catch Classic used to provide a fairly helpful error message when && or || was used in an assertion, as the compilation failed inside a type whose name explained the error. For Catch2, the error message looks like this
test1.cpp(6): error C2676: binary '&&': 'Catch::ExprLhs<int *const &>' does not define this operator or a conversion to a type acceptable to the predefined operator
which is not exactly helpful.
Extra information
This was changed during the rewrite of capture layer, likely as an oversight.
Catch version: v2.x.x
The text was updated successfully, but these errors were encountered:
As explained in issue #1273, `operator&&` and `operator||` should give
a proper compile time error on use instead of the compiler complaining
about them not being defined. This commit adds an `always_false` type in
`catch_meta.hpp` used for implementing a nice `static_assert` for both
of the abovementioned operators.
Closes#1273
Description
Catch Classic used to provide a fairly helpful error message when
&&
or||
was used in an assertion, as the compilation failed inside a type whose name explained the error. For Catch2, the error message looks like thiswhich is not exactly helpful.
Extra information
This was changed during the rewrite of capture layer, likely as an oversight.
The text was updated successfully, but these errors were encountered: