-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
VectorContains won't compile when combined using && #1092
Comments
Spent some time looking through it, and as far as I can tell, the implementation of Matchers was kinda misguided in regards to its type usage. We made some internal changes that fix this issue going forward and should prevent it from repeating. |
Yeah, looks like that second template arg on |
Fixed in 3537b78 |
v2.1.0 is out with the fix. |
Description
I tried to compose two VectorContains matchers with &&, but I get a compile error - using VS 2015 with the latest updates, currently using the most recent single header. Kinda looks like a template argument mis-deduction (I suspect the comparator type should be a vector of the value type, rather than just the value type - but I'm new to the insides of Catch), but I haven't tried it with GCC or Clang to get a clearer view of the message - I just found a different way to solve my problem for now.
Steps to reproduce
(I actually found this with a user-defined type, but simplified it to
uint16_t
here for the sake of explanation - both show the bug, it's not specific to ints nor to my user types.)In VS 2015, this will produce the error:
Extra information
The text was updated successfully, but these errors were encountered: