Skip to content

'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

Description

@fzuwill
                                              ^

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions