boostorg / boostorg/graph

Error C2672: 'equal_range_dispatch': no matching overloaded function found

Open
#229 6 comments 0 reactions 0 assignees View on GitHub
beginner friendly data structure priority: high
Dominant language
C++
Stars
392
Forks
239
Avg merge
1d 11m
Merged PRs (30d)
20

Description

Hello,

I am currently in the process of getting an existing code base which builds fine on linux to build windows and I have ran into an issues with a section of code which leverages boost graph. I have also attached an example file which is almost an exact copy from here [header](https://github.com/ros-industrial-consortium/tesseract/blob/feature/CommandLanguage/tesseract/tesseract_scene_graph/include/tesseract_scene_graph/graph.h) and [source](https://github.com/ros-industrial-consortium/tesseract/blob/feature/CommandLanguage/tesseract/tesseract_scene_graph/src/graph.cpp). I need help understanding why it builds fine on Ubuntu but not on Windows; does anyone have any ideas to what might be the issue?

``` bash
2020-10-15T21:07:17.5155301Z C:\opt\ros\noetic\x64\share\orocos_kdl\..\..\include\boost/pending/container_traits.hpp(684): error C2672: 'equal_range_dispatch': no matching overloaded function found
2020-10-15T21:07:17.5158203Z C:\opt\ros\noetic\x64\share\orocos_kdl\..\..\include\boost/graph/detail/adjacency_list.hpp(1670): note: see reference to function template instantiation 'std::pair>>,std::_List_iterator>>> boost::graph_detail::equal_range>,StoredEdge>(Container &,const Value &)' being compiled
2020-10-15T21:07:17.5159983Z with
2020-10-15T21:07:17.5165372Z [
2020-10-15T21:07:17.5166571Z _Ty=boost::detail::stored_edge_iter>>>,tesseract_scene_graph::EdgeProperty>,
2020-10-15T21:07:17.5169102Z Container=std::list>>>,tesseract_scene_graph::EdgeProperty>,std::allocator>>>,tesseract_scene_graph::EdgeProperty>>>,
2020-10-15T21:07:17.5172043Z Value=StoredEdge
2020-10-15T21:07:17.5174927Z ]
2020-10-15T21:07:17.5176611Z C:\opt\ros\noetic\x64\share\orocos_kdl\..\..\include\boost/graph/detail/adjacency_list.hpp(1245): note: see reference to function template instantiation 'std::pair>>,void *,boost::detail::edge_desc_impl,__int64>,boost::detail::out_edge_iter>>,void *,boost::detail::edge_desc_impl,__int64>> boost::edge_range(void *,void *,const boost::adj_list_helper &)' being compiled
2020-10-15T21:07:17.5178312Z with
2020-10-15T21:07:17.5178518Z [
2020-10-15T21:07:17.5179338Z _Ty=boost::detail::stored_edge_iter>>>,tesseract_scene_graph::EdgeProperty>,
2020-10-15T21:07:17.5182114Z Config=boost::detail::adj_list_gen,boost::listS,boost::listS,boost::bidirectionalS,tesseract_scene_graph::VertexProperty,tesseract_scene_graph::EdgeProperty,tesseract_scene_graph::GraphProperty,boost::listS>::config,
2020-10-15T21:07:17.5186458Z Base=boost::bidirectional_graph_helper_with_property,boost::listS,boost::listS,boost::bidirectionalS,tesseract_scene_graph::VertexProperty,tesseract_scene_graph::EdgeProperty,tesseract_scene_graph::GraphProperty,boost::listS>::config>
2020-10-15T21:07:17.5188989Z ]
2020-10-15T21:07:17.5194902Z C:\opt\ros\noetic\x64\share\orocos_kdl\..\..\include\boost/graph/detail/adjacency_list.hpp(1244): note: while compiling class template member function 'std::pair>>,void *,boost::detail::edge_desc_impl,__int64>,boost::detail::out_edge_iter>>,void *,boost::detail::edge_desc_impl,__int64>> boost::bidirectional_graph_helper_with_property,VertexListS,OutEdgeListS,DirectedS,VertexProperty,EdgeProperty,GraphProperty,EdgeListS>::config>::get_parallel_edge_sublist(boost::detail::edge_desc_impl,const boost::adjacency_list &,boost::hash_setS *)'
2020-10-15T21:07:17.5200790Z with
2020-10-15T21:07:17.5200998Z [
2020-10-15T21:07:17.5201709Z _Ty=boost::detail::stored_edge_iter>>>,tesseract_scene_graph::EdgeProperty>,
2020-10-15T21:07:17.5202476Z VertexListS=boost::listS,
2020-10-15T21:07:17.5202797Z OutEdgeListS=boost::listS,
2020-10-15T21:07:17.5203193Z DirectedS=boost::bidirectionalS,
2020-10-15T21:07:17.5203702Z VertexProperty=tesseract_scene_graph::VertexProperty,
2020-10-15T21:07:17.5204265Z EdgeProperty=tesseract_scene_graph::EdgeProperty,
2020-10-15T21:07:17.5204810Z GraphProperty=tesseract_scene_graph::GraphProperty,
2020-10-15T21:07:17.5205249Z EdgeListS=boost::listS
2020-10-15T21:07:17.5205510Z ]
2020-10-15T21:07:17.5208872Z C:\opt\ros\noetic\x64\share\orocos_kdl\..\..\include\boost/graph/detail/adjacency_list.hpp(1538): note: see reference to class template instantiation 'boost::bidirectional_graph_helper_with_property,VertexListS,OutEdgeListS,DirectedS,VertexProperty,EdgeProperty,GraphProperty,EdgeListS>::config>' being compiled
2020-10-15T21:07:17.5212234Z with
2020-10-15T21:07:17.5212439Z [
2020-10-15T21:07:17.5212711Z VertexListS=boost::listS,
2020-10-15T21:07:17.5213076Z OutEdgeListS=boost::listS,
2020-10-15T21:07:17.5213475Z DirectedS=boost::bidirectionalS,
2020-10-15T21:07:17.5214093Z VertexProperty=tesseract_scene_graph::VertexProperty,
2020-10-15T21:07:17.5214645Z EdgeProperty=tesseract_scene_graph::EdgeProperty,
2020-10-15T21:07:17.5215174Z GraphProperty=tesseract_scene_graph::GraphProperty,
2020-10-15T21:07:17.5215600Z EdgeListS=boost::listS
2020-10-15T21:07:17.5215851Z ]
2020-10-15T21:07:17.5216578Z C:\opt\ros\noetic\x64\share\orocos_kdl\..\..\include\boost/graph/detail/adjacency_list.hpp(1788): note: see reference to class template instantiation 'boost::adj_list_helper' being compiled
2020-10-15T21:07:17.5217469Z with
2020-10-15T21:07:17.5217675Z [
2020-10-15T21:07:17.5219811Z Config=boost::detail::adj_list_gen,boost::listS,boost::listS,boost::bidirectionalS,tesseract_scene_graph::VertexProperty,tesseract_scene_graph::EdgeProperty,tesseract_scene_graph::GraphProperty,boost::listS>::config,
2020-10-15T21:07:17.5224241Z Base=boost::bidirectional_graph_helper_with_property,boost::listS,boost::listS,boost::bidirectionalS,tesseract_scene_graph::VertexProperty,tesseract_scene_graph::EdgeProperty,tesseract_scene_graph::GraphProperty,boost::listS>::config>
2020-10-15T21:07:17.5226174Z ]
2020-10-15T21:07:17.5231445Z C:\opt\ros\noetic\x64\share\orocos_kdl\..\..\include\boost/graph/adjacency_list.hpp(270): note: see reference to class template instantiation 'boost::adj_list_impl::config,boost::bidirectional_graph_helper_with_property::config>>' being compiled
2020-10-15T21:07:17.5236545Z with
2020-10-15T21:07:17.5236767Z [
2020-10-15T21:07:17.5237879Z Graph=boost::adjacency_list,
2020-10-15T21:07:17.5239035Z VertexListS=boost::listS,
2020-10-15T21:07:17.5239400Z OutEdgeListS=boost::listS,
2020-10-15T21:07:17.5239755Z DirectedS=boost::bidirectionalS,
2020-10-15T21:07:17.5240498Z VertexProperty=tesseract_scene_graph::VertexProperty,
2020-10-15T21:07:17.5241083Z EdgeProperty=tesseract_scene_graph::EdgeProperty,
2020-10-15T21:07:17.5241802Z GraphProperty=tesseract_scene_graph::GraphProperty,
2020-10-15T21:07:17.5242245Z EdgeListS=boost::listS
2020-10-15T21:07:17.5242499Z ]
2020-10-15T21:07:17.5245169Z D:\a\tesseract\tesseract\src\tesseract\tesseract\tesseract_scene_graph\include\tesseract_scene_graph/graph.h(99): note: see reference to class template instantiation 'boost::adjacency_list' being compiled
2020-10-15T21:07:17.5249707Z C:\opt\ros\noetic\x64\share\orocos_kdl\..\..\include\boost/pending/container_traits.hpp(685): error C2440: 'initializing': cannot convert from 'boost::graph_detail::list_tag' to 'boost::graph_detail::associative_container_tag'
2020-10-15T21:07:17.5251982Z C:\opt\ros\noetic\x64\share\orocos_kdl\..\..\include\boost/pending/container_traits.hpp(685): note: No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
2020-10-15T21:07:18.1313235Z NMAKE : fatal error U1077: 'C:\PROGRA~2\MICROS~1\2019\ENTERP~1\VC\Tools\MSVC\1427~1.291\bin\Hostx64\x64\cl.exe' : return code '0x2'
2020-10-15T21:07:18.1313715Z Stop.
2020-10-15T21:07:18.1314823Z NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Tools\MSVC\14.27.29110\bin\HostX64\x64\nmake.exe"' : return code '0x2'
2020-10-15T21:07:18.1315608Z Stop.
2020-10-15T21:07:18.1316230Z NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Tools\MSVC\14.27.29110\bin\HostX64\x64\nmake.exe"' : return code
```

[Compiler Explorer C++ Editor #1 Code (3).txt](https://github.com/boostorg/graph/files/5388861/Compiler.Explorer.C%2B%2B.Editor.1.Code.3.txt)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.