-
Notifications
You must be signed in to change notification settings - Fork 89
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
Equality check does not work on Windows #111
Conversation
Hm, I'd have thought that I think what happens here is that Have you tried changing the
? |
Error in VisualStudio:
So it seems to me it cannot decide between turning Adding the <Types...> to the operator == didn't seem to help. Changing |
Hm,
That just compares two integers. I agree this is not what we want to test here because we already test it in the line above that. |
@jmjatlanta is this still required or was it resolved in one of your other PRs? Feel free to merge. |
Unfortunately, it is still required. The good news is that if this equality check is used, the build will break. That is also the bad news. |
Part of /bitshares/bitshares-core/issues/1593
Compiling on Windows causes an error. It seems the compiler cannot determine which equality operator to use given the arguments. As a "fix", the preprocessor removes this test line from Windows builds.
"E:\bitshares-core-hardfork\install.vcxproj" (default target) (1) ->
"E:\bitshares-core-hardfork\ALL_BUILD.vcxproj" (default target) (3) ->
"E:\bitshares-core-hardfork\libraries\fc\tests\all_tests.vcxproj" (default target) (4) ->
(ClCompile target) ->
E:\bitshares-core-hardfork\libraries\fc\tests\variant_test.cpp(73): error C2666: 'fc::test::operator ==': 6 overloads have similar conversions [E:\bitshares-core-hardfork\libraries\fc\tests\all_tests.vcxproj]
I do not like this fix, as it is not testing a feature that could be used elsewhere (which I assume would also fail to compile). It looks as if the way equality is done here is broken (on Windows), and needs to be fixed. Input from others would be appreciated.