Opened 9 years ago

Last modified 9 years ago

#9549 new Patches

[graph][BGL][PBGL] Dynamic_properties class does not allow distributed property_maps

Reported by: anonymous Owned by: Jeremiah Willcock
Milestone: To Be Determined Component: graph
Version: Boost Development Trunk Severity: Problem
Keywords: Cc: bminyano@…

Description

I am working with parallel graphs and distributed property maps. I found a problem compiling the code when I intended to add a distributed property map to the dynamic_property variable. The error was a casting problem: error: inicialización inválida de una referencia que no es constante de tipo ‘boost::default_property_traits<boost::parallel::distributed_property_map<boost::graph::distributed::mpi_process_group, boost::detail::parallel::global_descriptor_property_map<long unsigned int>, boost::vec_adj_list_vertex_property_map<boost::adjacency_list<boost::vecS, boost::vecS, boost::directedS, boost::property<boost::vertex_in_edges_t, std::list<boost::detail::parallel::stored_in_edge<boost::detail::edge_desc_impl<boost::directed_tag, long unsigned int> >, std::allocator<boost::detail::parallel::stored_in_edge<boost::detail::edge_desc_impl<boost::directed_tag, long unsigned int> > > >, VertexProperties>, boost::property<boost::edge_target_processor_id_t, short int, EdgeProperties>, boost::no_property, boost::listS>, boost::adjacency_list<boost::vecS, boost::vecS, boost::directedS, boost::property<boost::vertex_in_edges_t, std::list<boost::detail::parallel::stored_in_edge<boost::detail::edge_desc_impl<boost::directed_tag, long unsigned int> >, std::allocator<boost::detail::parallel::stored_in_edge<boost::detail::edge_desc_impl<boost::directed_tag, long unsigned int> > > >, VertexProperties>, boost::property<boost::edge_target_processor_id_t, short int, EdgeProperties>, boost::no_property, boost::listS>*, double, double&, double VertexProperties::*> > >::reference {aka double&}’ desde un r-valor de tipo ‘boost::parallel::distributed_property_map<boost::graph::distributed::mpi_process_group, boost::detail::parallel::global_descriptor_property_map<long unsigned int>, boost::vec_adj_list_vertex_property_map<boost::adjacency_list<boost::vecS, boost::vecS, boost::directedS, boost::property<boost::vertex_in_edges_t, std::list<boost::detail::parallel::stored_in_edge<boost::detail::edge_desc_impl<boost::directed_tag, long unsigned int> >, std::allocator<boost::detail::parallel::stored_in_edge<boost::detail::edge_desc_impl<boost::directed_tag, long unsigned int> > > >, VertexProperties>, boost::property<boost::edge_target_processor_id_t, short int, EdgeProperties>, boost::no_property, boost::listS>, boost::adjacency_list<boost::vecS, boost::vecS, boost::directedS, boost::property<boost::vertex_in_edges_t, std::list<boost::detail::parallel::stored_in_edge<boost::detail::edge_desc_impl<boost::directed_tag, long unsigned int> >, std::allocator<boost::detail::parallel::stored_in_edge<boost::detail::edge_desc_impl<boost::directed_tag, long unsigned int> > > >, VertexProperties>, boost::property<boost::edge_target_processor_id_t, short int, EdgeProperties>, boost::no_property, boost::listS>*, double, double&, double VertexProperties::*> >::value_type {aka double}’

I also want to propose a patch to solve this problem.

Attachments (1)

dynamic_properties.patch (1.3 KB ) - added by anonymous 9 years ago.

Download all attachments as: .zip

Change History (2)

by anonymous, 9 years ago

Attachment: dynamic_properties.patch added

comment:1 by Borja Miñano <bminyano@…>, 9 years ago

Cc: bminyano@… added

Sorry for the ugly description, I cannot modify it now.

Note: See TracTickets for help on using tickets.