You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
'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
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
The text was updated successfully, but these errors were encountered: