raulmur / ORB_SLAM2

Real-Time SLAM for Monocular, Stereo and RGB-D Cameras, with Loop Detection and Relocalization Capabilities
Other
9.44k stars 4.69k forks source link

error: static assertion failed: std::map must have the same value_type as its allocator on Ubuntu 20.04 #978

Open nedo99 opened 3 years ago

nedo99 commented 3 years ago

Hi,

I am trying to build the library on Ubuntu 20.04, G++ 9.3.0 and I am fetting following error: src/LoopClosing.cc:438:21: required from here /usr/include/c++/9/bits/stl_map.h:122:71: error: static assertion failed: std::map must have the same value_type as its allocator 122 | static_assert(is_same<typename _Alloc::value_type, value_type>::value, |

Several other files are reporting the same issue.

Is this going to be addressed any time soon?

Regards, Nedim

nedo99 commented 3 years ago

Fix is already there https://github.com/raulmur/ORB_SLAM2/pull/585/commits.