forked from microsoft/vcpkg
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[octomap] fix c++20 compilation error (microsoft#33851)
* fix c++20 compilation error * update version --------- Co-authored-by: Zhao Liu <[email protected]>
- Loading branch information
1 parent
7c06f2b
commit 4cfabe7
Showing
5 changed files
with
32 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
diff --git a/octomap/include/octomap/ScanGraph.h b/octomap/include/octomap/ScanGraph.h | ||
index 07c7436..e54eaf5 100644 | ||
--- a/octomap/include/octomap/ScanGraph.h | ||
+++ b/octomap/include/octomap/ScanGraph.h | ||
@@ -60,7 +60,7 @@ namespace octomap { | ||
|
||
~ScanNode(); | ||
|
||
- bool operator == (const ScanNode& other) { | ||
+ bool operator == (const ScanNode& other) const { | ||
return (id == other.id); | ||
} | ||
|
||
@@ -87,7 +87,7 @@ namespace octomap { | ||
: first(_first), second(_second), constraint(_constraint), weight(1.0) { } | ||
ScanEdge() {} | ||
|
||
- bool operator == (const ScanEdge& other) { | ||
+ bool operator == (const ScanEdge& other) const { | ||
return ( (*first == *(other.first) ) && ( *second == *(other.second) ) ); | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters