Skip to content
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

ScanGraph.h - fix c++20 compilation error #398

Merged

Conversation

eladm-ultrawis
Copy link
Contributor

This fixes the following error on latest msvc compiler:

error C2666: 'octomap::ScanNode::operator ==': overloaded functions have similar conversions
message : could be 'bool octomap::ScanNode::operator ==(const octomap::ScanNode &)'
message : or 'bool octomap::ScanNode::operator ==(const octomap::ScanNode &)' [synthesized expression 'y == x']
message : while trying to match the argument list '(octomap::ScanNode, octomap::ScanNode)'

This fixes the following error on latest msvc compiler:

error C2666: 'octomap::ScanNode::operator ==': overloaded functions have similar conversions
message : could be 'bool octomap::ScanNode::operator ==(const octomap::ScanNode &)'
message : or 'bool octomap::ScanNode::operator ==(const octomap::ScanNode &)' [synthesized expression 'y == x']
message : while trying to match the argument list '(octomap::ScanNode, octomap::ScanNode)'
@ahornung ahornung merged commit 5a54ff4 into OctoMap:devel May 21, 2023
@ahornung
Copy link
Member

Thanks for your contribution!

c-andy-martin pushed a commit to BadgerTechnologies/octomap that referenced this pull request May 31, 2024
This fixes the following error on latest msvc compiler:

error C2666: 'octomap::ScanNode::operator ==': overloaded functions have similar conversions
message : could be 'bool octomap::ScanNode::operator ==(const octomap::ScanNode &)'
message : or 'bool octomap::ScanNode::operator ==(const octomap::ScanNode &)' [synthesized expression 'y == x']
message : while trying to match the argument list '(octomap::ScanNode, octomap::ScanNode)'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants