Skip to content

Fix mnFullBAIdx type in LoopClosing - #1007

Open
Chirag1216 wants to merge 1 commit into
UZ-SLAMLab:masterfrom
Chirag1216:fix-mnfullbaidx-type
Open

Fix mnFullBAIdx type in LoopClosing#1007
Chirag1216 wants to merge 1 commit into
UZ-SLAMLab:masterfrom
Chirag1216:fix-mnfullbaidx-type

Conversation

@Chirag1216

Copy link
Copy Markdown

mnFullBAIdx is declared as bool in LoopClosing.h, but it is used as
an integer counter in LoopClosing.cc and incremented with mnFullBAIdx++.

With C++17, this causes compilation to fail with:

"use of an operand of type 'bool' in 'operator++' is forbidden in C++17"

Change the member type from bool to int so that its declaration
matches its existing usage.

ORB-SLAM3 was successfully rebuilt and the resulting executable
was successfully launched after this change.

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.

1 participant