In file included from /usr/include/boost/property_map/property_map.hpp:18:0, from /usr/include/boost/graph/properties.hpp:19, from /usr/include/boost/graph/named_function_params.hpp:21, from /usr/include/boost/graph/astar_search.hpp:21, from code.cpp:7: /usr/include/boost/concept_check.hpp: In destructor boost::Convertible::~Convertible() [with X = boost::readable_property_map_tag, Y = boost::read_write_property_map_tag]: /usr/include/boost/concept_check.hpp:209:1: instantiated from static void boost::concepts::requirement::failed() [with Model = boost::ConvertibleConcept] /usr/include/boost/concept_check.hpp:45:1: instantiated from void boost::function_requires(Model*) [with Model = boost::ConvertibleConcept] /usr/include/boost/property_map/property_map.hpp:258:7: instantiated from void boost::ReadWritePropertyMapConcept::constraints() [with PMap = vertexindexasdmap, Key = gridgraph > >::vertex_descriptor] /usr/include/boost/concept/detail/has_constraints.hpp:42:5: instantiated from const bool boost::concepts::not_satisfied > >::vertex_descriptor> >::value /usr/include/boost/concept/detail/has_constraints.hpp:45:31: instantiated from boost::concepts::not_satisfied > >::vertex_descriptor> > /usr/include/boost/mpl/if.hpp:67:11: instantiated from boost::mpl::if_ > >::vertex_descriptor> >, boost::concepts::constraint > >::vertex_descriptor> >, boost::concepts::requirement > >::vertex_descriptor>::************> > /usr/include/boost/concept/detail/general.hpp:50:8: instantiated from boost::concepts::requirement_ > >::vertex_descriptor>)> /usr/include/boost/graph/breadth_first_search.hpp:68:1: instantiated from void boost::breadth_first_visit(const IncidenceGraph&, typename boost::graph_traits::vertex_descriptor, Buffer&, BFSVisitor, ColorMap) [with IncidenceGraph = gridgraph > >, Buffer = boost::d_ary_heap_indirect > >::vertex_descriptor, 4ul, boost::vector_property_map >, boost::shared_array_property_map, std::less, std::vector > >::vertex_descriptor, std::allocator > >::vertex_descriptor> > >, BFSVisitor = boost::detail::astar_bfs_visitor > >, float>, grid_visitor > >::vertex_descriptor>, boost::d_ary_heap_indirect > >::vertex_descriptor, 4ul, boost::vector_property_map >, boost::shared_array_property_map, std::less, std::vector > >::vertex_descriptor, std::allocator > >::vertex_descriptor> > >, boost::dummy_property_map, boost::shared_array_property_map, boost::shared_array_property_map, edge_weight_map, vertexindexasdmap, boost::closed_plus, std::less >, ColorMap = vertexindexasdmap, typename boost::graph_traits::vertex_descriptor = gridgraph > >::vertex_descriptor] /usr/include/boost/graph/astar_search.hpp:260:5: instantiated from void boost::astar_search_no_init(const VertexListGraph&, typename boost::graph_traits::vertex_descriptor, AStarHeuristic, AStarVisitor, PredecessorMap, CostMap, DistanceMap, WeightMap, ColorMap, VertexIndexMap, CompareFunction, CombineFunction, CostInf, CostZero) [with VertexListGraph = gridgraph > >, AStarHeuristic = grid_heuristic > >, float>, AStarVisitor = grid_visitor > >::vertex_descriptor>, PredecessorMap = boost::dummy_property_map, CostMap = boost::shared_array_property_map, DistanceMap = boost::shared_array_property_map, WeightMap = edge_weight_map, ColorMap = vertexindexasdmap, VertexIndexMap = boost::shared_array_property_map, CompareFunction = std::less, CombineFunction = boost::closed_plus, CostInf = double, CostZero = double, typename boost::graph_traits::vertex_descriptor = gridgraph > >::vertex_descriptor] /usr/include/boost/graph/astar_search.hpp:363:5: instantiated from void boost::astar_search_no_init(const VertexListGraph&, typename boost::graph_traits::vertex_descriptor, AStarHeuristic, const boost::bgl_named_params&) [with VertexListGraph = gridgraph > >, AStarHeuristic = grid_heuristic > >, float>, P = grid_visitor > >::vertex_descriptor>, T = boost::graph_visitor_t, R = boost::no_property, typename boost::graph_traits::vertex_descriptor = gridgraph > >::vertex_descriptor] code.cpp:288:67: instantiated from here /usr/include/boost/concept_check.hpp:212:13: error: conversion from boost::readable_property_map_tag to non-scalar type boost::read_write_property_map_tag requested /usr/include/boost/concept_check.hpp: In destructor boost::Convertible::~Convertible() [with X = boost::readable_property_map_tag, Y = boost::writable_property_map_tag]: /usr/include/boost/concept_check.hpp:209:1: instantiated from static void boost::concepts::requirement::failed() [with Model = boost::ConvertibleConcept] /usr/include/boost/concept_check.hpp:45:1: instantiated from void boost::function_requires(Model*) [with Model = boost::ConvertibleConcept] /usr/include/boost/property_map/property_map.hpp:230:7: instantiated from void boost::WritablePropertyMapConcept::constraints() [with PMap = vertexindexasdmap, Key = gridgraph > >::vertex_descriptor] /usr/include/boost/concept/detail/has_constraints.hpp:42:5: instantiated from const bool boost::concepts::not_satisfied > >::vertex_descriptor> >::value /usr/include/boost/concept/detail/has_constraints.hpp:45:31: instantiated from boost::concepts::not_satisfied > >::vertex_descriptor> > /usr/include/boost/mpl/if.hpp:67:11: [ skipping 6 instantiation contexts ] /usr/include/boost/mpl/if.hpp:67:11: instantiated from boost::mpl::if_ > >::vertex_descriptor> >, boost::concepts::constraint > >::vertex_descriptor> >, boost::concepts::requirement > >::vertex_descriptor>::************> > /usr/include/boost/concept/detail/general.hpp:50:8: instantiated from boost::concepts::requirement_ > >::vertex_descriptor>)> /usr/include/boost/graph/breadth_first_search.hpp:68:1: instantiated from void boost::breadth_first_visit(const IncidenceGraph&, typename boost::graph_traits::vertex_descriptor, Buffer&, BFSVisitor, ColorMap) [with IncidenceGraph = gridgraph > >, Buffer = boost::d_ary_heap_indirect > >::vertex_descriptor, 4ul, boost::vector_property_map >, boost::shared_array_property_map, std::less, std::vector > >::vertex_descriptor, std::allocator > >::vertex_descriptor> > >, BFSVisitor = boost::detail::astar_bfs_visitor > >, float>, grid_visitor > >::vertex_descriptor>, boost::d_ary_heap_indirect > >::vertex_descriptor, 4ul, boost::vector_property_map >, boost::shared_array_property_map, std::less, std::vector > >::vertex_descriptor, std::allocator > >::vertex_descriptor> > >, boost::dummy_property_map, boost::shared_array_property_map, boost::shared_array_property_map, edge_weight_map, vertexindexasdmap, boost::closed_plus, std::less >, ColorMap = vertexindexasdmap, typename boost::graph_traits::vertex_descriptor = gridgraph > >::vertex_descriptor] /usr/include/boost/graph/astar_search.hpp:260:5: instantiated from void boost::astar_search_no_init(const VertexListGraph&, typename boost::graph_traits::vertex_descriptor, AStarHeuristic, AStarVisitor, PredecessorMap, CostMap, DistanceMap, WeightMap, ColorMap, VertexIndexMap, CompareFunction, CombineFunction, CostInf, CostZero) [with VertexListGraph = gridgraph > >, AStarHeuristic = grid_heuristic > >, float>, AStarVisitor = grid_visitor > >::vertex_descriptor>, PredecessorMap = boost::dummy_property_map, CostMap = boost::shared_array_property_map, DistanceMap = boost::shared_array_property_map, WeightMap = edge_weight_map, ColorMap = vertexindexasdmap, VertexIndexMap = boost::shared_array_property_map, CompareFunction = std::less, CombineFunction = boost::closed_plus, CostInf = double, CostZero = double, typename boost::graph_traits::vertex_descriptor = gridgraph > >::vertex_descriptor] /usr/include/boost/graph/astar_search.hpp:363:5: instantiated from void boost::astar_search_no_init(const VertexListGraph&, typename boost::graph_traits::vertex_descriptor, AStarHeuristic, const boost::bgl_named_params&) [with VertexListGraph = gridgraph > >, AStarHeuristic = grid_heuristic > >, float>, P = grid_visitor > >::vertex_descriptor>, T = boost::graph_visitor_t, R = boost::no_property, typename boost::graph_traits::vertex_descriptor = gridgraph > >::vertex_descriptor] code.cpp:288:67: instantiated from here /usr/include/boost/concept_check.hpp:212:13: error: conversion from boost::readable_property_map_tag to non-scalar type boost::writable_property_map_tag requested make: *** [a.out] Error 1