vcpkg/ports/octomap/fix-compilation.patch
JonLiu1993 4cfabe769e
[octomap] fix c++20 compilation error (#33851)
* fix c++20 compilation error

* update version

---------

Co-authored-by: Zhao Liu <v-zhli17@microsoft.com>
2023-09-19 09:54:29 -07:00

23 lines
759 B
Diff

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) ) );
}