VS2019: fixed build

This commit is contained in:
matlabbe
2020-03-11 23:34:55 -04:00
parent 39724e239c
commit 5371f94c8f
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -74,7 +74,7 @@ if(@CONF_WITH_GUI@ AND ${WITH_GUI})
set(RTABMap_LIBRARIES ${RTABMap_LIBRARIES} ${RTABMap_GUI}) set(RTABMap_LIBRARIES ${RTABMap_LIBRARIES} ${RTABMap_GUI})
elseif(${WITH_GUI}) elseif(${WITH_GUI})
MESSAGE(ERROR "Asked for \"gui\" module but RTABMap hasn't been built with gui support.") MESSAGE(WARNING "Asked for \"gui\" module but RTABMap hasn't been built with gui support.")
endif() endif()
# Dependencies # Dependencies
+1 -1
View File
@@ -67,7 +67,7 @@ struct EVComparator{
EVComparator(){ EVComparator(){
mode=CompareLevel; mode=CompareLevel;
} }
inline bool operator() (const E& e1, const E& e2){ inline bool operator() (const E& e1, const E& e2) const {
int o1=0, o2=0; int o1=0, o2=0;
switch (mode){ switch (mode){
case CompareLevel: case CompareLevel: