Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error: static assertion failed: std::set must have a non-const, non-volatile value_type #26

Open
the1Vane opened this issue Apr 11, 2024 · 0 comments

Comments

@the1Vane
Copy link

作者您好,感谢您的工作。我在运行build.sh,其中到命令最后一部分的编译make -j 2 的时候会报错如题,我尝试搜索了ORB的相关问题,将Loopclosing.h中的
typedef map<KeyFrame*,g2o::Sim3,std::less<KeyFrame*>,
Eigen::aligned_allocator<std::pair<KeyFrame *const, g2o::Sim3> > > KeyFrameAndPose;
更改后还是报错。
具体报错为:
required from here
/usr/include/c++/9/bits/stl_set.h:108:68: error: static assertion failed: std::set must have a non-const, non-volatile value_type
108 | static_assert(is_same<typename remove_cv<_Key>::type, _Key>::value,
| ^~~~~
error

请问应该如何解决呢,求教,望您回复,感谢。

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

No branches or pull requests

1 participant