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

'g2o::HyperGraph::VertexIDMap {aka std::unordered_map<int, g2o::HyperGraph::Vertex*>}' is not derived from 'const std::tr1::unordered_map<KEY, std::tr1::shared_ptr<_Tp1>, H, P, A>' #49

Open
fzuwill opened this issue May 27, 2017 · 0 comments

Comments

@fzuwill
Copy link

fzuwill commented May 27, 2017

                                              ^

In file included from /home/will/SLAM/strasdat/ScaVisionSLAM/ScaViSLAM/scavislam/slam_graph.cpp:27:0,
from /home/will/SLAM/strasdat/ScaVisionSLAM/ScaViSLAM/scavislam/slam_graph-impl.cpp:18:
/home/will/svslocal/include/visiontools/accessor_macros.h:111:14: note: candidate: template<class KEY, class VAL, class H, class P, class A> const VAL& VisionTools::GET_MAP_ELEM(const KEY&, const std::tr1::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>&)
const VAL & GET_MAP_ELEM(const KEY & key,
^
/home/will/svslocal/include/visiontools/accessor_macros.h:111:14: note: template argument deduction/substitution failed:
/home/will/SLAM/strasdat/ScaVisionSLAM/ScaViSLAM/scavislam/slam_graph-impl.cpp:112:54: note: 'g2o::HyperGraph::VertexIDMap {aka std::unordered_map<int, g2o::HyperGraph::Vertex*>}' is not derived from 'const std::tr1::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>'
= GET_MAP_ELEM(pose_id_1, optimizer->vertices());
^
In file included from /home/will/SLAM/strasdat/ScaVisionSLAM/ScaViSLAM/scavislam/slam_graph.cpp:27:0,
from /home/will/SLAM/strasdat/ScaVisionSLAM/ScaViSLAM/scavislam/slam_graph-impl.cpp:18:
/home/will/svslocal/include/visiontools/accessor_macros.h:121:14: note: candidate: template<class KEY, class VAL, class C, class A> const VAL& VisionTools::GET_MAP_ELEM(const KEY&, const std::map<KEY, std::tr1::shared_ptr<_Tp1>, C, A>&)
const VAL & GET_MAP_ELEM(const KEY & key,
^
/home/will/svslocal/include/visiontools/accessor_macros.h:121:14: note: template argument deduction/substitution failed:
/home/will/SLAM/strasdat/ScaVisionSLAM/ScaViSLAM/scavislam/slam_graph-impl.cpp:112:54: note: 'g2o::HyperGraph::VertexIDMap {aka std::unordered_map<int, g2o::HyperGraph::Vertex*>}' is not derived from 'const std::map<KEY, std::tr1::shared_ptr<_Tp1>, C, A>'
= GET_MAP_ELEM(pose_id_1, optimizer->vertices());
^
In file included from /home/will/SLAM/strasdat/ScaVisionSLAM/ScaViSLAM/scavislam/slam_graph.cpp:27:0,
from /home/will/SLAM/strasdat/ScaVisionSLAM/ScaViSLAM/scavislam/slam_graph-impl.cpp:18:
/home/will/svslocal/include/visiontools/accessor_macros.h:130:14: note: candidate: template<class KEY, class VAL, class C, class A> const VAL& VisionTools::GET_MAP_ELEM(const KEY&, const std::map<_Key, _Tp, _Compare, _Alloc>&)
const VAL & GET_MAP_ELEM(const KEY & key,
^
/home/will/svslocal/include/visiontools/accessor_macros.h:130:14: note: template argument deduction/substitution failed:
/home/will/SLAM/strasdat/ScaVisionSLAM/ScaViSLAM/scavislam/slam_graph-impl.cpp:112:54: note: 'g2o::HyperGraph::VertexIDMap {aka std::unordered_map<int, g2o::HyperGraph::Vertex*>}' is not derived from 'const std::map<_Key, _Tp, _Compare, _Alloc>'
= GET_MAP_ELEM(pose_id_1, optimizer->vertices());
^
/home/will/SLAM/strasdat/ScaVisionSLAM/ScaViSLAM/scavislam/slam_graph-impl.cpp:117:56: error: expected ')' before ';' token
= GET_MAP_ELEM(pose_id_2, (optimizer->vertices());
^
CMakeFiles/ScaViSLAM.dir/build.make:497: recipe for target 'CMakeFiles/ScaViSLAM.dir/scavislam/slam_graph-impl.cpp.o' failed
make[2]: Leaving directory '/home/will/SLAM/strasdat/ScaVisionSLAM/build-ScaViSLAM-unknown-Default'
make[2]: *** [CMakeFiles/ScaViSLAM.dir/scavislam/slam_graph-impl.cpp.o] Error 1
make[1]: *** [CMakeFiles/ScaViSLAM.dir/all] Error 2
make: *** [all] Error 2

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