-
Notifications
You must be signed in to change notification settings - Fork 2.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
compile error: use of overloaded operator '<<' is ambiguous #562
Comments
Mizux
added a commit
to google/or-tools
that referenced
this issue
Aug 10, 2020
Mizux
added a commit
to google/or-tools
that referenced
this issue
Aug 11, 2020
Mizux
added a commit
to google/or-tools
that referenced
this issue
Aug 11, 2020
Mizux
added a commit
to google/or-tools
that referenced
this issue
Aug 11, 2020
Mizux
added a commit
to google/or-tools
that referenced
this issue
Aug 14, 2020
Got this bug on Google OR-Tools too. It may come from the version of the gcc compiler Result I got:
ref: https://github.com/google/or-tools/actions/runs/315808746
ref: https://github.com/google/or-tools/runs/1276111332?check_suite_focus=true |
FYI, a simple workaround, is to replace:
Otherwise you may also cherry pick the PR #342 |
Merged
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm using Ubuntu 18.04.4 LTS (Bionic Beaver), clang version 6.0.0-1ubuntu2 (tags/RELEASE_600/final), cmake version 3.10.2.
I cloned, compiled, installed the project, and trying to use it in my own project.
But once I included the header "glog/logging.h", I got an compile error like:
Did this because the use of the operator is really ambiguous or there's implicit incompatible with some cmake settings I made?
I found it is because that CHECK_NE() is not suitable to estimate a pointer to nullptr.
Try following code:
The text was updated successfully, but these errors were encountered: